~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/freetype/builds/unix/detect.mk

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# FreeType 2 configuration file to detect a UNIX host platform.
 
3
#
 
4
 
 
5
 
 
6
# Copyright 1996-2000, 2002, 2003, 2004 by
 
7
# David Turner, Robert Wilhelm, and Werner Lemberg.
 
8
#
 
9
# This file is part of the FreeType project, and may only be used, modified,
 
10
# and distributed under the terms of the FreeType project license,
 
11
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
 
12
# indicate that you have read the license and understand and accept it
 
13
# fully.
 
14
 
 
15
.PHONY: setup
 
16
 
 
17
ifeq ($(PLATFORM),ansi)
 
18
 
 
19
  # Note: this test is duplicated in "builds/toplevel.mk".
 
20
  #
 
21
  is_unix := $(strip $(wildcard /sbin/init) \
 
22
                     $(wildcard /usr/sbin/init) \
 
23
                     $(wildcard /hurd/auth))
 
24
  ifneq ($(is_unix),)
 
25
 
 
26
    PLATFORM := unix
 
27
 
 
28
  endif # test is_unix
 
29
endif # test PLATFORM ansi
 
30
 
 
31
ifeq ($(PLATFORM),unix)
 
32
  COPY   := cp
 
33
  DELETE := rm -f
 
34
 
 
35
  # If `devel' is the requested target, we use a special configuration
 
36
  # file named `unix-dev.mk'.  It disables optimization and libtool.
 
37
  #
 
38
  ifneq ($(findstring devel,$(MAKECMDGOALS)),)
 
39
    CONFIG_FILE := unix-dev.mk
 
40
    CC          := gcc
 
41
    devel: setup
 
42
    .PHONY: devel
 
43
  else
 
44
 
 
45
    # If `lcc' is the requested target, we use a special configuration
 
46
    # file named `unix-lcc.mk'.  It disables libtool for LCC.
 
47
    #
 
48
    ifneq ($(findstring lcc,$(MAKECMDGOALS)),)
 
49
      CONFIG_FILE := unix-lcc.mk
 
50
      CC          := lcc
 
51
      lcc: setup
 
52
      .PHONY: lcc
 
53
    else
 
54
 
 
55
      # If a Unix platform is detected, the configure script is called and
 
56
      # `unix-def.mk' together with `unix-cc.mk' is created.
 
57
      #
 
58
      # Arguments to `configure' should be in the CFG variable.  Example:
 
59
      #
 
60
      #   make CFG="--prefix=/usr --disable-static"
 
61
      #
 
62
      # If you need to set CFLAGS or LDFLAGS, do it here also.
 
63
      #
 
64
      # Feel free to add support for other platform specific compilers in
 
65
      # this directory (e.g. solaris.mk + changes here to detect the
 
66
      # platform).
 
67
      #
 
68
      CONFIG_FILE := unix.mk
 
69
      setup: $(BUILD_DIR)/unix-def.mk
 
70
      unix: setup
 
71
      .PHONY: unix
 
72
    endif
 
73
  endif
 
74
 
 
75
  setup: std_setup
 
76
 
 
77
  have_mk := $(strip $(wildcard $(OBJ_DIR)/Makefile))
 
78
  ifneq ($(have_mk),)
 
79
    # we are building FT2 not in the src tree
 
80
    $(BUILD_DIR)/unix-def.mk: $(TOP_DIR)/builds/unix/unix-def.in
 
81
            $(TOP_DIR)/builds/unix/configure $(CFG)
 
82
  else
 
83
    $(BUILD_DIR)/unix-def.mk: $(TOP_DIR)/builds/unix/unix-def.in
 
84
            cd builds/unix; ./configure $(CFG)
 
85
  endif
 
86
 
 
87
endif   # test PLATFORM unix
 
88
 
 
89
 
 
90
# EOF