This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / subsys / win32k / freetype / builds / unix / detect.mk
1 #
2 # FreeType 2 configuration file to detect a UNIX host platform.
3 #
4
5
6 # Copyright 1996-2000 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
16 ifeq ($(PLATFORM),ansi)
17
18   has_init := $(strip $(wildcard /sbin/init))
19   ifneq ($(has_init),)
20
21     PLATFORM := unix
22     COPY     := cp
23     DELETE   := rm -f
24
25     # If a Unix platform is detected, the configure script is called and
26     # `unix.mk' is created.
27     #
28     # Arguments to `configure' should be in the CFG variable.  Example:
29     #
30     #   make CFG="--prefix=/usr --disable-static"
31     #
32     # If you need to set CFLAGS or LDFLAGS, do it here also.
33     #
34     # Feel free to add support for other platform specific compilers in this
35     # directory (e.g. solaris.mk + changes here to detect the platform).
36     #
37     CONFIG_FILE := unix.mk
38     setup: unix.mk
39     unix: setup
40
41     # If `devel' is the requested target, use `-g -O0' as the default value
42     # for CFLAGS if CFLAGS isn't set.
43     #
44     ifneq ($(findstring devel,$(MAKECMDGOALS)),)
45       ifndef CFLAGS
46         USE_CFLAGS := CFLAGS="-g -O0"
47       endif
48       devel: setup
49     endif
50
51     setup: std_setup
52
53     unix.mk: builds/unix/unix.in
54             cd builds/unix; $(USE_CFLAGS) ./configure $(CFG)
55
56   endif # test Unix
57 endif   # test PLATFORM
58
59 # EOF