2
# FreeType 2 configuration file to detect a UNIX host platform.
6
# Copyright 1996-2000, 2002, 2003, 2004, 2006 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
17
ifeq ($(PLATFORM),ansi)
19
# Note: this test is duplicated in "builds/toplevel.mk".
21
is_unix := $(strip $(wildcard /sbin/init) \
22
$(wildcard /usr/sbin/init) \
23
$(wildcard /hurd/auth))
29
endif # test PLATFORM ansi
31
ifeq ($(PLATFORM),unix)
36
# If `devel' is the requested target, we use a special configuration
37
# file named `unix-dev.mk'. It disables optimization and libtool.
39
ifneq ($(findstring devel,$(MAKECMDGOALS)),)
40
CONFIG_FILE := unix-dev.mk
46
# If `lcc' is the requested target, we use a special configuration
47
# file named `unix-lcc.mk'. It disables libtool for LCC.
49
ifneq ($(findstring lcc,$(MAKECMDGOALS)),)
50
CONFIG_FILE := unix-lcc.mk
56
# If a Unix platform is detected, the configure script is called and
57
# `unix-def.mk' together with `unix-cc.mk' is created.
59
# Arguments to `configure' should be in the CFG variable. Example:
61
# make CFG="--prefix=/usr --disable-static"
63
# If you need to set CFLAGS or LDFLAGS, do it here also.
65
# Feel free to add support for other platform specific compilers in
66
# this directory (e.g. solaris.mk + changes here to detect the
69
CONFIG_FILE := unix.mk
76
have_Makefile := $(wildcard $(OBJ_DIR)/Makefile)
80
ifneq ($(have_Makefile),)
81
# we are building FT2 not in the src tree
82
$(TOP_DIR)/builds/unix/configure $(value CFG)
84
cd builds/unix; ./configure $(value CFG)
88
endif # test PLATFORM unix