2000-07-08 02:22:20 +02:00
|
|
|
#
|
|
|
|
# FreeType 2 configuration file to detect a UNIX host platform.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright 1996-2000 by
|
|
|
|
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
#
|
|
|
|
# This file is part of the FreeType project, and may only be used, modified,
|
|
|
|
# and distributed under the terms of the FreeType project license,
|
|
|
|
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
|
|
|
# indicate that you have read the license and understand and accept it
|
|
|
|
# fully.
|
|
|
|
|
* INSTALL: Revised.
* builds/compiler/bcc-dev.mk, builds/compiler/visualage.mk,
builds/compiler/bcc.mk, builds/win32/w32-bcc.mk,
builds/win32/w32-bccd.mk: Revised.
* include/freetype/config/ftbuild.h,
include/freetype/internal/internal.h: Revised.
* include/freetype/ftimage.h: Updated to new header inclusion scheme.
* builds/toplevel.mk (.PHONY): Adding `distclean'.
* builds/unix/detect.mk (.PHONY): Adding `devel', `unix', `lcc',
`setup'.
* INSTALL: Slightly updated the quick starter documentation to
include IDE compilation, prevent against BSD Make, and specify "make
setup" instead of a single "make" for build configuration.
* include/config/ftbuild.h, include/internal/internal.h: Added new
configuration files used to determine the location of all public,
configuration, and internal header files for FreeType 2. Modified
all headers under "include/freetype" to reflect this change. Note
that we still need to change the library source files themselves
though.
builds/win32/detect.mk: Added new files to support compilation with
the free Borland C++ command-line compiler. Modified the detection
rules to recognize the new "bcc32" target in "make setup bcc32".
src/truetype/ttobjs.c, src/truetype/ttgload.c,
src/truetype/ttinterp.c: Fixed a few comparisons that Borland C++
didn't really like. Basically, this compiler complains when FT_UInt
is compared to FT_UShort (apparently, it promotes `UShort' to `Int'
in these cases).
2000-12-01 18:25:58 +01:00
|
|
|
.PHONY: devel lcc setup unix
|
2000-07-08 02:22:20 +02:00
|
|
|
|
|
|
|
ifeq ($(PLATFORM),ansi)
|
|
|
|
|
|
|
|
has_init := $(strip $(wildcard /sbin/init))
|
|
|
|
ifneq ($(has_init),)
|
|
|
|
|
|
|
|
PLATFORM := unix
|
|
|
|
COPY := cp
|
|
|
|
DELETE := rm -f
|
|
|
|
|
|
|
|
|
2000-07-27 23:40:22 +02:00
|
|
|
# If `devel' is the requested target, we use a special configuration
|
2000-09-22 23:23:29 +02:00
|
|
|
# file named `unix-dev.mk'. It disables optimization and libtool.
|
2000-07-22 08:59:36 +02:00
|
|
|
#
|
|
|
|
ifneq ($(findstring devel,$(MAKECMDGOALS)),)
|
2000-07-27 23:40:22 +02:00
|
|
|
CONFIG_FILE := unix-dev.mk
|
2000-11-02 08:53:08 +01:00
|
|
|
CC := gcc
|
2000-07-22 08:59:36 +02:00
|
|
|
devel: setup
|
2000-07-27 23:40:22 +02:00
|
|
|
else
|
2000-10-28 09:26:59 +02:00
|
|
|
|
2000-10-30 20:22:09 +01:00
|
|
|
# If `lccl' is the requested target, we use a special configuration
|
|
|
|
# file named `unix-lcc.mk'. It disables libtool for LCC
|
|
|
|
#
|
2000-10-28 09:26:59 +02:00
|
|
|
ifneq ($(findstring lcc,$(MAKECMDGOALS)),)
|
|
|
|
CONFIG_FILE := unix-lcc.mk
|
2000-11-02 08:53:08 +01:00
|
|
|
CC := lcc
|
2000-10-28 09:26:59 +02:00
|
|
|
lcc: setup
|
|
|
|
else
|
|
|
|
# If a Unix platform is detected, the configure script is called and
|
|
|
|
# `unix-def.mk' together with `unix-cc.mk' is created.
|
|
|
|
#
|
|
|
|
# Arguments to `configure' should be in the CFG variable. Example:
|
|
|
|
#
|
|
|
|
# make CFG="--prefix=/usr --disable-static"
|
|
|
|
#
|
|
|
|
# If you need to set CFLAGS or LDFLAGS, do it here also.
|
|
|
|
#
|
2000-11-02 08:53:08 +01:00
|
|
|
# Feel free to add support for other platform specific compilers in
|
|
|
|
# this directory (e.g. solaris.mk + changes here to detect the
|
|
|
|
# platform).
|
2000-10-28 09:26:59 +02:00
|
|
|
#
|
|
|
|
CONFIG_FILE := unix.mk
|
|
|
|
setup: unix-def.mk
|
|
|
|
unix: setup
|
|
|
|
endif
|
2000-07-08 02:22:20 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
setup: std_setup
|
|
|
|
|
2000-11-02 08:53:08 +01:00
|
|
|
unix-def.mk: $(TOP)/builds/unix/unix-def.in
|
2000-07-22 08:59:36 +02:00
|
|
|
cd builds/unix; $(USE_CFLAGS) ./configure $(CFG)
|
2000-07-20 08:57:41 +02:00
|
|
|
|
2000-07-08 02:22:20 +02:00
|
|
|
endif # test Unix
|
|
|
|
endif # test PLATFORM
|
|
|
|
|
|
|
|
# EOF
|