2000-07-08 04:22:20 +04:00
|
|
|
|
#
|
|
|
|
|
# FreeType 2 host platform detection rules
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This sub-Makefile is in charge of detecting the current platform. It sets
|
|
|
|
|
# the following variables:
|
|
|
|
|
#
|
|
|
|
|
# BUILD The configuration and system-specific directory. Usually
|
2000-07-08 04:41:13 +04:00
|
|
|
|
# `freetype/builds/$(PLATFORM)' but can be different for
|
2000-07-08 04:22:20 +04:00
|
|
|
|
# custom builds of the library.
|
|
|
|
|
#
|
|
|
|
|
# The following variables must be defined in system specific `detect.mk'
|
|
|
|
|
# files:
|
|
|
|
|
#
|
|
|
|
|
# PLATFORM The detected platform. This will default to `ansi' if
|
|
|
|
|
# auto-detection fails.
|
|
|
|
|
# CONFIG_FILE The configuration sub-makefile to use. This usually depends
|
|
|
|
|
# on the compiler defined in the `CC' environment variable.
|
|
|
|
|
# DELETE The shell command used to remove a given file.
|
|
|
|
|
# COPY The shell command used to copy one file.
|
|
|
|
|
# SEP The platform-specific directory separator.
|
|
|
|
|
# CC The compiler to use.
|
|
|
|
|
#
|
|
|
|
|
# You need to set the following variable(s) before calling it:
|
|
|
|
|
#
|
|
|
|
|
# TOP The top-most directory in the FreeType library source
|
|
|
|
|
# hierarchy. If not defined, it will default to `.'.
|
|
|
|
|
|
|
|
|
|
# If TOP is not defined, default it to `.'
|
|
|
|
|
#
|
|
|
|
|
ifndef TOP
|
|
|
|
|
TOP := .
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# Set auto-detection default to `ansi' resp. UNIX-like operating systems.
|
2000-09-23 01:23:29 +04:00
|
|
|
|
# Note that we delay evaluation of $(BUILD_CONFIG_), $(BUILD), and
|
2000-07-08 04:22:20 +04:00
|
|
|
|
# $(CONFIG_RULES).
|
|
|
|
|
#
|
|
|
|
|
PLATFORM := ansi
|
|
|
|
|
DELETE := $(RM)
|
|
|
|
|
COPY := cp
|
|
|
|
|
SEP := /
|
|
|
|
|
|
2000-07-08 04:41:13 +04:00
|
|
|
|
BUILD_CONFIG_ = $(TOP)$(SEP)builds$(SEP)
|
2000-07-08 04:22:20 +04:00
|
|
|
|
BUILD = $(BUILD_CONFIG_)$(PLATFORM)
|
|
|
|
|
CONFIG_RULES = $(BUILD)$(SEP)$(CONFIG_FILE)
|
|
|
|
|
|
|
|
|
|
# We define the BACKSLASH variable to hold a single back-slash character.
|
|
|
|
|
# This is needed because a line like
|
|
|
|
|
#
|
|
|
|
|
# SEP := \
|
|
|
|
|
#
|
|
|
|
|
# does not work with GNU Make (the backslash is interpreted as a line
|
|
|
|
|
# continuation). While a line like
|
|
|
|
|
#
|
|
|
|
|
# SEP := \\
|
|
|
|
|
#
|
|
|
|
|
# really defines $(SEP) as `\' on Unix, and `\\' on Dos and Windows!
|
|
|
|
|
#
|
|
|
|
|
BACKSLASH := $(strip \ )
|
|
|
|
|
|
2000-12-21 01:09:41 +03:00
|
|
|
|
# Find all auto-detectable platforms.
|
2000-07-08 04:22:20 +04:00
|
|
|
|
#
|
2000-12-21 01:09:41 +03:00
|
|
|
|
PLATFORMS_ := $(notdir $(subst /detect.mk,,$(wildcard $(BUILD_CONFIG_)*/detect.mk)))
|
|
|
|
|
.PHONY: $(PLATFORMS_) ansi
|
|
|
|
|
|
|
|
|
|
# Filter out platform specified as setup target.
|
|
|
|
|
#
|
|
|
|
|
PLATFORM := $(firstword $(filter $(MAKECMDGOALS),$(PLATFORMS_)))
|
|
|
|
|
|
|
|
|
|
# If no setup target platform was specified, enable auto-detection/
|
|
|
|
|
# default platform.
|
|
|
|
|
#
|
|
|
|
|
ifeq ($(PLATFORM),)
|
|
|
|
|
PLATFORM := ansi
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# If the user has explicitly asked for `ansi' on the command line,
|
|
|
|
|
# disable auto-detection.
|
|
|
|
|
#
|
|
|
|
|
ifeq ($(findstring ansi,$(MAKECMDGOALS)),)
|
|
|
|
|
# Now, include all detection rule files found in the `builds/<system>'
|
|
|
|
|
# directories. Note that the calling order of the various `detect.mk'
|
|
|
|
|
# files isn't predictable.
|
|
|
|
|
#
|
|
|
|
|
include $(wildcard $(BUILD_CONFIG_)*/detect.mk)
|
|
|
|
|
endif
|
2000-07-08 04:22:20 +04:00
|
|
|
|
|
|
|
|
|
# In case no detection rule file was successful, use the default.
|
|
|
|
|
#
|
|
|
|
|
ifndef CONFIG_FILE
|
|
|
|
|
CONFIG_FILE := ansi.mk
|
|
|
|
|
setup: std_setup
|
2000-12-21 01:09:41 +03:00
|
|
|
|
.PHONY: setup
|
2000-07-08 04:22:20 +04:00
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
# The following targets are equivalent, with the exception that they use
|
|
|
|
|
# a slightly different syntax for the `echo' command.
|
|
|
|
|
#
|
|
|
|
|
# std_setup: defined for most (i.e. Unix-like) platforms
|
|
|
|
|
# dos_setup: defined for Dos-ish platforms like Dos, Windows & OS/2
|
|
|
|
|
#
|
|
|
|
|
.PHONY: std_setup dos_setup
|
|
|
|
|
|
|
|
|
|
std_setup:
|
|
|
|
|
@echo ""
|
2000-10-03 21:51:29 +04:00
|
|
|
|
@echo "$(PROJECT_TITLE) build system -- automatic system detection"
|
2000-07-08 04:22:20 +04:00
|
|
|
|
@echo ""
|
|
|
|
|
@echo "The following settings are used:"
|
|
|
|
|
@echo ""
|
|
|
|
|
@echo " platform $(PLATFORM)"
|
|
|
|
|
@echo " compiler $(CC)"
|
|
|
|
|
@echo " configuration directory $(BUILD)"
|
|
|
|
|
@echo " configuration rules $(CONFIG_RULES)"
|
|
|
|
|
@echo ""
|
|
|
|
|
@echo "If this does not correspond to your system or settings please remove the file"
|
|
|
|
|
@echo "\`$(CONFIG_MK)' from this directory then read the INSTALL file for help."
|
|
|
|
|
@echo ""
|
* README.UNX: updated the Unix-specific quick-compilation guide to
warn about the GNU Make requirement at compile time..
* include/freetype/config/ftstdlib.h,
include/freetype/config/ftconfig.h,
include/freetype/config/ftheader.h,
include/freetype/internal/ftmemory.h,
include/freetype/internal/ftobjs.h,
src/autohint/ahoptim.c,
src/base/ftdbgmem.c, src/base/ftdebug.c,
src/base/ftmac.c, src/base/ftobjs.c,
src/base/ftsystem.c,
src/cache/ftcimage.c, src/cache/ftcsbits.c,
src/cff/cffdriver.c, src/cff/cffload.c, src/cff/cffobjs.c,
src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
src/pcf/pcfdriver.c, src/pcf/pcfread.c,
src/psaux/t1cmap.c, src/psaux/t1decode.c,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
src/pshinter/pshrec.c,
src/psnames/psmodule.c,
src/raster/ftraster.c,
src/sfnt/sfdriver.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
src/smooth/ftgrays.c,
src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c:
added the new configuration file "ftstdlib.h" used to define
aliases for all ISO C library functions used by the engine
(e.g. strlen, qsort, setjmp, etc...)
this eases the porting of FreeType 2 to exotic environments like
XFree86 modules/extensions..
also removed many #include <string.h>, #include <stdlib.h>, etc...
from the engine's sources where they're not needed..
2002-04-12 13:31:48 +04:00
|
|
|
|
@echo "Otherwise, simply type \`$(MAKE)' again to build the library."
|
2000-07-08 04:22:20 +04:00
|
|
|
|
@echo ""
|
|
|
|
|
@$(COPY) $(CONFIG_RULES) $(CONFIG_MK)
|
|
|
|
|
|
* include/freetype/fttrigon.h, src/base/fttrigon.c, src/base/ftbase.c,
src/base/Jamfile, src/base/rules.mk: adding trigonometric functions
to the core API (using Cordic algorithms).
* builds/top_level.mk, builds/newline, builds/detect.mk: fixed problems
with Make on Windows 2000, as well as problems when "make distclean" is
invoked on a non-Unix platform when there is no "config.mk" in the
current directory..
* builds/freetype.mk: fixed a problem with object deletions under
Dos/Windows/OS/2 systems
* src/tools: added new directory to hold tools and test programs
moved docmaker.py, glnames.py to it..
* src/tools/docmaker.py: improved the script to add the current date
at the footer of each web page (useful to distinguish between versions)
* Jamfile: fixed incorrect HDRMACRO argument.
* TODO: removed the cubic arc bbox computation note, since it has been
fixed recently..
* include/freetype/t1tables.h, include/freetype/config/ftoption.h:
formatting
2001-05-11 18:25:57 +04:00
|
|
|
|
|
2001-05-12 10:40:50 +04:00
|
|
|
|
# Special case for Dos, Windows, OS/2, where echo "" doesn't work correctly!
|
* include/freetype/fttrigon.h, src/base/fttrigon.c, src/base/ftbase.c,
src/base/Jamfile, src/base/rules.mk: adding trigonometric functions
to the core API (using Cordic algorithms).
* builds/top_level.mk, builds/newline, builds/detect.mk: fixed problems
with Make on Windows 2000, as well as problems when "make distclean" is
invoked on a non-Unix platform when there is no "config.mk" in the
current directory..
* builds/freetype.mk: fixed a problem with object deletions under
Dos/Windows/OS/2 systems
* src/tools: added new directory to hold tools and test programs
moved docmaker.py, glnames.py to it..
* src/tools/docmaker.py: improved the script to add the current date
at the footer of each web page (useful to distinguish between versions)
* Jamfile: fixed incorrect HDRMACRO argument.
* TODO: removed the cubic arc bbox computation note, since it has been
fixed recently..
* include/freetype/t1tables.h, include/freetype/config/ftoption.h:
formatting
2001-05-11 18:25:57 +04:00
|
|
|
|
#
|
2000-07-08 04:22:20 +04:00
|
|
|
|
dos_setup:
|
* include/freetype/fttrigon.h, src/base/fttrigon.c, src/base/ftbase.c,
src/base/Jamfile, src/base/rules.mk: adding trigonometric functions
to the core API (using Cordic algorithms).
* builds/top_level.mk, builds/newline, builds/detect.mk: fixed problems
with Make on Windows 2000, as well as problems when "make distclean" is
invoked on a non-Unix platform when there is no "config.mk" in the
current directory..
* builds/freetype.mk: fixed a problem with object deletions under
Dos/Windows/OS/2 systems
* src/tools: added new directory to hold tools and test programs
moved docmaker.py, glnames.py to it..
* src/tools/docmaker.py: improved the script to add the current date
at the footer of each web page (useful to distinguish between versions)
* Jamfile: fixed incorrect HDRMACRO argument.
* TODO: removed the cubic arc bbox computation note, since it has been
fixed recently..
* include/freetype/t1tables.h, include/freetype/config/ftoption.h:
formatting
2001-05-11 18:25:57 +04:00
|
|
|
|
@type builds\newline
|
2000-10-03 21:51:29 +04:00
|
|
|
|
@echo $(PROJECT_TITLE) build system -- automatic system detection
|
* include/freetype/fttrigon.h, src/base/fttrigon.c, src/base/ftbase.c,
src/base/Jamfile, src/base/rules.mk: adding trigonometric functions
to the core API (using Cordic algorithms).
* builds/top_level.mk, builds/newline, builds/detect.mk: fixed problems
with Make on Windows 2000, as well as problems when "make distclean" is
invoked on a non-Unix platform when there is no "config.mk" in the
current directory..
* builds/freetype.mk: fixed a problem with object deletions under
Dos/Windows/OS/2 systems
* src/tools: added new directory to hold tools and test programs
moved docmaker.py, glnames.py to it..
* src/tools/docmaker.py: improved the script to add the current date
at the footer of each web page (useful to distinguish between versions)
* Jamfile: fixed incorrect HDRMACRO argument.
* TODO: removed the cubic arc bbox computation note, since it has been
fixed recently..
* include/freetype/t1tables.h, include/freetype/config/ftoption.h:
formatting
2001-05-11 18:25:57 +04:00
|
|
|
|
@type builds\newline
|
2000-07-08 04:22:20 +04:00
|
|
|
|
@echo The following settings are used:
|
* include/freetype/fttrigon.h, src/base/fttrigon.c, src/base/ftbase.c,
src/base/Jamfile, src/base/rules.mk: adding trigonometric functions
to the core API (using Cordic algorithms).
* builds/top_level.mk, builds/newline, builds/detect.mk: fixed problems
with Make on Windows 2000, as well as problems when "make distclean" is
invoked on a non-Unix platform when there is no "config.mk" in the
current directory..
* builds/freetype.mk: fixed a problem with object deletions under
Dos/Windows/OS/2 systems
* src/tools: added new directory to hold tools and test programs
moved docmaker.py, glnames.py to it..
* src/tools/docmaker.py: improved the script to add the current date
at the footer of each web page (useful to distinguish between versions)
* Jamfile: fixed incorrect HDRMACRO argument.
* TODO: removed the cubic arc bbox computation note, since it has been
fixed recently..
* include/freetype/t1tables.h, include/freetype/config/ftoption.h:
formatting
2001-05-11 18:25:57 +04:00
|
|
|
|
@type builds\newline
|
|
|
|
|
@echo platform<72><6D><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>$(PLATFORM)
|
|
|
|
|
@echo compiler<65><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>$(CC)
|
|
|
|
|
@echo configuration directory<72><79><EFBFBD><EFBFBD><EFBFBD><EFBFBD>$(BUILD)
|
|
|
|
|
@echo configuration rules<65><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>$(CONFIG_RULES)
|
|
|
|
|
@type builds\newline
|
2000-07-08 04:22:20 +04:00
|
|
|
|
@echo If this does not correspond to your system or settings please remove the file
|
|
|
|
|
@echo '$(CONFIG_MK)' from this directory then read the INSTALL file for help.
|
* include/freetype/fttrigon.h, src/base/fttrigon.c, src/base/ftbase.c,
src/base/Jamfile, src/base/rules.mk: adding trigonometric functions
to the core API (using Cordic algorithms).
* builds/top_level.mk, builds/newline, builds/detect.mk: fixed problems
with Make on Windows 2000, as well as problems when "make distclean" is
invoked on a non-Unix platform when there is no "config.mk" in the
current directory..
* builds/freetype.mk: fixed a problem with object deletions under
Dos/Windows/OS/2 systems
* src/tools: added new directory to hold tools and test programs
moved docmaker.py, glnames.py to it..
* src/tools/docmaker.py: improved the script to add the current date
at the footer of each web page (useful to distinguish between versions)
* Jamfile: fixed incorrect HDRMACRO argument.
* TODO: removed the cubic arc bbox computation note, since it has been
fixed recently..
* include/freetype/t1tables.h, include/freetype/config/ftoption.h:
formatting
2001-05-11 18:25:57 +04:00
|
|
|
|
@type builds\newline
|
2000-07-08 04:22:20 +04:00
|
|
|
|
@echo Otherwise, simply type 'make' again to build the library.
|
* include/freetype/fttrigon.h, src/base/fttrigon.c, src/base/ftbase.c,
src/base/Jamfile, src/base/rules.mk: adding trigonometric functions
to the core API (using Cordic algorithms).
* builds/top_level.mk, builds/newline, builds/detect.mk: fixed problems
with Make on Windows 2000, as well as problems when "make distclean" is
invoked on a non-Unix platform when there is no "config.mk" in the
current directory..
* builds/freetype.mk: fixed a problem with object deletions under
Dos/Windows/OS/2 systems
* src/tools: added new directory to hold tools and test programs
moved docmaker.py, glnames.py to it..
* src/tools/docmaker.py: improved the script to add the current date
at the footer of each web page (useful to distinguish between versions)
* Jamfile: fixed incorrect HDRMACRO argument.
* TODO: removed the cubic arc bbox computation note, since it has been
fixed recently..
* include/freetype/t1tables.h, include/freetype/config/ftoption.h:
formatting
2001-05-11 18:25:57 +04:00
|
|
|
|
@type builds\newline
|
2000-07-08 04:22:20 +04:00
|
|
|
|
@$(COPY) $(subst /,\,$(CONFIG_RULES) $(CONFIG_MK)) > nul
|
|
|
|
|
|
|
|
|
|
# EOF
|