2 # FreeType 2 configuration file to detect a UNIX host platform.
6 # Copyright 1996-2000 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
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
16 ifeq ($(PLATFORM),ansi)
18 has_init := $(strip $(wildcard /sbin/init))
25 # If a Unix platform is detected, the configure script is called and
26 # `unix.mk' is created.
28 # Arguments to `configure' should be in the CFG variable. Example:
30 # make CFG="--prefix=/usr --disable-static"
32 # If you need to set CFLAGS or LDFLAGS, do it here also.
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).
37 CONFIG_FILE := unix.mk
41 # If `devel' is the requested target, use `-g -O0' as the default value
42 # for CFLAGS if CFLAGS isn't set.
44 ifneq ($(findstring devel,$(MAKECMDGOALS)),)
46 USE_CFLAGS := CFLAGS="-g -O0"
53 unix.mk: builds/unix/unix.in
54 cd builds/unix; $(USE_CFLAGS) ./configure $(CFG)