2
# FreeType 2 configuration file to detect a UNIX host platform.
6
# Copyright 1996-2000, 2002, 2003, 2004 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)
35
# If `devel' is the requested target, we use a special configuration
36
# file named `unix-dev.mk'. It disables optimization and libtool.
38
ifneq ($(findstring devel,$(MAKECMDGOALS)),)
39
CONFIG_FILE := unix-dev.mk
45
# If `lcc' is the requested target, we use a special configuration
46
# file named `unix-lcc.mk'. It disables libtool for LCC.
48
ifneq ($(findstring lcc,$(MAKECMDGOALS)),)
49
CONFIG_FILE := unix-lcc.mk
55
# If a Unix platform is detected, the configure script is called and
56
# `unix-def.mk' together with `unix-cc.mk' is created.
58
# Arguments to `configure' should be in the CFG variable. Example:
60
# make CFG="--prefix=/usr --disable-static"
62
# If you need to set CFLAGS or LDFLAGS, do it here also.
64
# Feel free to add support for other platform specific compilers in
65
# this directory (e.g. solaris.mk + changes here to detect the
68
CONFIG_FILE := unix.mk
69
setup: $(BUILD_DIR)/unix-def.mk
77
have_mk := $(strip $(wildcard $(OBJ_DIR)/Makefile))
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)
83
$(BUILD_DIR)/unix-def.mk: $(TOP_DIR)/builds/unix/unix-def.in
84
cd builds/unix; ./configure $(CFG)
87
endif # test PLATFORM unix