parent
8c5c932e46
commit
febe3fbeba
24 changed files with 1250 additions and 1487 deletions
@ -1,108 +1,103 @@ |
||||
#******************************************************************************
|
||||
#*
|
||||
#* FreeType build system - top-level Makefile
|
||||
#*
|
||||
#* This file is designed for GNU Make, do not use it with another Make tool.
|
||||
#* It works as follows :
|
||||
#*
|
||||
#* - when invoked for the first time, this Makefile will include
|
||||
#* the rules found in `freetype/config/detect.mk'. They are in charge
|
||||
#* of detecting the current platform.
|
||||
#*
|
||||
#* A summary of the detection will be displayed, and the file `config.mk'
|
||||
#* will be created in the current directory
|
||||
#*
|
||||
#*
|
||||
#* - when invoked later, this Makefile will include the rules found in
|
||||
#* `config.mk'. This sub-Makefile will define some system-specific
|
||||
#* variables (like compiler, compilation flags, object suffix, etc..),
|
||||
#* then include the rules found in `freetype/config/freetype.mk',
|
||||
#* used to build the library.
|
||||
#*
|
||||
#* See the comments in `config/detect.mk' and `config/freetype.mk' for
|
||||
#* more details on host platform detection and library builds..
|
||||
#*
|
||||
#******************************************************************************
|
||||
#
|
||||
# FreeType 2 build system -- top-level Makefile
|
||||
#
|
||||
|
||||
|
||||
# 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.
|
||||
|
||||
.PHONY: setup |
||||
|
||||
# This file is designed for GNU Make, do not use it with another Make tool!
|
||||
#
|
||||
# It works as follows:
|
||||
#
|
||||
# - When invoked for the first time, this Makefile will include the rules
|
||||
# found in `freetype/config/detect.mk'. They are in charge of detecting
|
||||
# the current platform.
|
||||
#
|
||||
# A summary of the detection will be displayed, and the file `config.mk'
|
||||
# will be created in the current directory.
|
||||
#
|
||||
# - When invoked later, this Makefile will include the rules found in
|
||||
# `config.mk'. This sub-Makefile will define some system-specific
|
||||
# variables (like compiler, compilation flags, object suffix, etc.), then
|
||||
# include the rules found in `freetype/config/freetype.mk', used to build
|
||||
# the library.
|
||||
#
|
||||
# See the comments in `config/detect.mk' and `config/freetype.mk' for more
|
||||
# details on host platform detection and library builds.
|
||||
|
||||
|
||||
.PHONY: setup |
||||
|
||||
# The variable TOP holds the path to the topmost directory in the FreeType
|
||||
# engine source hierarchy. If it is not defined, default it to '.'
|
||||
# engine source hierarchy. If it is not defined, default it to `.'.
|
||||
#
|
||||
ifndef TOP |
||||
TOP := .
|
||||
TOP := .
|
||||
endif |
||||
|
||||
CONFIG_MK := config.mk
|
||||
|
||||
#############################################################################
|
||||
#
|
||||
# If no configuration sub-makefile is present, or if "setup" is the target
|
||||
# to be built, run the auto-detection rules to figure out which configuration
|
||||
# rules file to use..
|
||||
# If no configuration sub-makefile is present, or if `setup' is the target
|
||||
# to be built, run the auto-detection rules to figure out which
|
||||
# configuration rules file to use.
|
||||
#
|
||||
# Note that the configuration file is put in the current directory, which is
|
||||
# not necessarily TOP.
|
||||
#
|
||||
# not necessarily $(TOP).
|
||||
|
||||
# if `config.mk' is not present, set "check_platform" and "first_time"
|
||||
# If `config.mk' is not present, set `check_platform'.
|
||||
#
|
||||
ifeq ($(wildcard $(CONFIG_MK)),) |
||||
check_platform := 1
|
||||
first_time := 1
|
||||
check_platform := 1
|
||||
endif |
||||
|
||||
# if `setup' is one of the targets requested, set "check_platform"
|
||||
# If `setup' is one of the targets requested, set `check_platform'.
|
||||
#
|
||||
ifneq ($(findstring setup,$(MAKECMDGOALS)),) |
||||
check_platform := 1
|
||||
check_platform := 1
|
||||
endif |
||||
|
||||
|
||||
#########################################################################
|
||||
#
|
||||
# include the automatic host platform detection rules when we need to
|
||||
# Include the automatic host platform detection rules when we need to
|
||||
# check the platform.
|
||||
#
|
||||
#
|
||||
ifdef check_platform |
||||
|
||||
all: setup |
||||
|
||||
|
||||
# if the module list $(FT_MODULE_LIST) file is not present,
|
||||
# generate it
|
||||
#
|
||||
modules: make_module_list setup |
||||
|
||||
include $(TOP)/config/detect.mk |
||||
include $(TOP)/config/modules.mk |
||||
|
||||
ifeq ($(wildcard $(FT_MODULE_LIST)),) |
||||
setup: make_module_list |
||||
endif |
||||
all: setup
|
||||
|
||||
# If the module list $(FT_MODULE_LIST) file is not present, generate it.
|
||||
#
|
||||
modules: make_module_list setup
|
||||
|
||||
# "setup" must be defined by the host platform detection rules
|
||||
# to create the 'config.mk' file in the current directory.
|
||||
#
|
||||
include $(TOP)/config/detect.mk
|
||||
include $(TOP)/config/modules.mk
|
||||
|
||||
ifeq ($(wildcard $(FT_MODULE_LIST)),)
|
||||
setup: make_module_list
|
||||
endif
|
||||
|
||||
# IMPORTANT:
|
||||
#
|
||||
# `setup' must be defined by the host platform detection rules to create
|
||||
# the `config.mk' file in the current directory.
|
||||
|
||||
else |
||||
|
||||
########################################################################
|
||||
#
|
||||
# A configuration sub-Makefile is present, simply run it..
|
||||
#
|
||||
#
|
||||
all: build_freetype |
||||
# A configuration sub-Makefile is present -- simply run it.
|
||||
#
|
||||
all: build_freetype
|
||||
|
||||
modules: make_module_list |
||||
modules: make_module_list
|
||||
|
||||
BUILD_FREETYPE := yes
|
||||
include $(CONFIG_MK) |
||||
BUILD_FREETYPE := yes
|
||||
include $(CONFIG_MK)
|
||||
|
||||
endif #test check_platform
|
||||
endif # test check_platform
|
||||
|
||||
# EOF
|
||||
|
@ -1,127 +1,130 @@ |
||||
#****************************************************************************
|
||||
#* *
|
||||
#* FreeType host platform detection rules *
|
||||
#* *
|
||||
#* Copyright 1996-1999 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 some variables accordingly. Namely : *
|
||||
#* *
|
||||
#* PLATFORM The detected platform. This will default to "ansi" if *
|
||||
#* auto-detection fails. *
|
||||
#* *
|
||||
#* BUILD The configuration and system-specific directory. Usually *
|
||||
#* 'freetype/config/$(PLATFORM)' but can be different when *
|
||||
#* a specific compiler has been requested on the *
|
||||
#* command line.. *
|
||||
#* *
|
||||
#* CONFIG_RULES The 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 *
|
||||
#* *
|
||||
#* 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.
|
||||
# Note that we delay the valuation of BUILD and RULES
|
||||
# FreeType 2 host platform detection rules
|
||||
#
|
||||
PLATFORM := ansi
|
||||
CONFIG = $(TOP)$(SEP)config
|
||||
DELETE := $(RM)
|
||||
COPY := cp
|
||||
SEP := /
|
||||
|
||||
BUILD = $(CONFIG)$(SEP)$(PLATFORM)
|
||||
CONFIG_FILE = $(BUILD)/Makefile
|
||||
|
||||
# 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
|
||||
# `freetype/config/$(PLATFORM)' but can be different if a
|
||||
# specific compiler has been requested on the command line.
|
||||
#
|
||||
# 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 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.
|
||||
#
|
||||
# Now, include each detection rules file found in a `config/<system>'
|
||||
# directory..
|
||||
# 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'.
|
||||
# Note that we delay the evaluation of $(CONFIG_), $(BUILD), and
|
||||
# $(CONFIG_RULES).
|
||||
#
|
||||
PLATFORM := ansi
|
||||
DELETE := $(RM)
|
||||
COPY := cp
|
||||
SEP := /
|
||||
|
||||
# we define the BACKSLASH variable to hold a single back-slash character
|
||||
CONFIG_ = $(TOP)$(SEP)config$(SEP)
|
||||
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 := \
|
||||
# SEP := \
|
||||
#
|
||||
# does not work with GNU Make (the back-slash is interpreted as a line
|
||||
# continuation). While a line like :
|
||||
# does not work with GNU Make (the backslash is interpreted as a line
|
||||
# continuation). While a line like
|
||||
#
|
||||
# SEP := \\
|
||||
# SEP := \\
|
||||
#
|
||||
# really define $(SEP) as "\" on Unix, and "\\" on Dos and Windows !!
|
||||
# really defines $(SEP) as `\' on Unix, and `\\' on Dos and Windows!
|
||||
#
|
||||
BACKSLASH := $(strip \ )
|
||||
|
||||
include $(wildcard $(CONFIG)/*/detect.mk) |
||||
# Now, include all detection rule files found in the `config/<system>'
|
||||
# directories. Note that the calling order of the various `detect.mk' files
|
||||
# isn't predictable.
|
||||
#
|
||||
include $(wildcard $(CONFIG_)*/detect.mk) |
||||
|
||||
# In case no detection rule file was successful, use the default.
|
||||
#
|
||||
ifndef CONFIG_FILE |
||||
CONFIG_FILE := ansi.mk
|
||||
setup: std_setup
|
||||
endif |
||||
|
||||
# The following targets are equivalent, with the exception that they use
|
||||
# slightly different syntaxes for the `echo' command. This is due to
|
||||
# slightly different syntaxes for the `echo' command.
|
||||
#
|
||||
# std_setup: is defined for most platforms
|
||||
# dos_setup: is defined for Dos-ish platforms like Dos, Windows & OS/2
|
||||
# std_setup: defined for most platforms
|
||||
# dos_setup: defined for Dos-ish platforms like Dos, Windows & OS/2
|
||||
#
|
||||
|
||||
.PHONY: std_setup dos_setup |
||||
.PHONY: std_setup dos_setup |
||||
|
||||
std_setup: |
||||
@echo ""
|
||||
@echo "FreeType build system - automatic system detection"
|
||||
@echo "FreeType build system -- automatic system detection"
|
||||
@echo ""
|
||||
@echo "The following settings were detected :"
|
||||
@echo "The following settings are used:"
|
||||
@echo ""
|
||||
@echo " platform : $(PLATFORM)"
|
||||
@echo " compiler : $(CC)"
|
||||
@echo " configuration directory : $(BUILD)"
|
||||
@echo " configuration rules : $(CONFIG_RULES)"
|
||||
@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 ""
|
||||
@echo "Otherwise, simple type \`make' again to build the library"
|
||||
@echo "Otherwise, simply type \`make' again to build the library."
|
||||
@echo ""
|
||||
@$(COPY) $(CONFIG_RULES) $(CONFIG_MK)
|
||||
|
||||
dos_setup: |
||||
@echo ÿ
|
||||
@echo FreeType build system - automatic system detection
|
||||
@echo FreeType build system -- automatic system detection
|
||||
@echo ÿ
|
||||
@echo The following settings were detected :
|
||||
@echo The following settings are used:
|
||||
@echo ÿ
|
||||
@echo ÿÿplatformÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ: $(PLATFORM)
|
||||
@echo ÿÿcompilerÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ: $(CC)
|
||||
@echo ÿÿconfiguration directoryÿÿ: $(BUILD)
|
||||
@echo ÿÿconfiguration rulesÿÿÿÿÿÿ: $(CONFIG_RULES)
|
||||
@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 ÿ
|
||||
@echo Otherwise, simple type 'make' again to build the library
|
||||
@echo Otherwise, simply type 'make' again to build the library.
|
||||
@echo ÿ
|
||||
@$(COPY) $(subst /,\,$(CONFIG_RULES) $(CONFIG_MK)) > nul
|
||||
|
||||
# EOF
|
||||
|
@ -1,87 +1,91 @@ |
||||
#
|
||||
# This file is used to detect a DOS host platform.
|
||||
# FreeType 2 configuration file to detect a DOS host platform.
|
||||
#
|
||||
# This configuration file to be used depends on the value of the CC
|
||||
# environment variable.
|
||||
#
|
||||
#
|
||||
|
||||
# We test for the COMSPEC environment variable, then run the 'ver'
|
||||
# command-line program to see if its output contains the word "Dos"
|
||||
#
|
||||
# If this is true, we're running a Dos-ish platform (or an emulation)
|
||||
#
|
||||
|
||||
ifeq ($(PLATFORM),ansi) |
||||
|
||||
ifdef COMSPEC |
||||
|
||||
is_dos := $(findstring Dos,$(shell ver))
|
||||
|
||||
# We try to recognize a Dos session under OS/2. The "ver" command
|
||||
# returns 'Operating System/2 ...' there, so 'is_dos' should be empty
|
||||
# there.
|
||||
#
|
||||
# To recognize a Dos session under OS/2, we check COMSPEC for the
|
||||
# substring "MDOS\COMMAND"
|
||||
# Copyright 1996-2000 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
ifeq ($(is_dos),) |
||||
is_dos := $(findstring MDOS\COMMAND,$(COMSPEC))
|
||||
endif |
||||
# 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.
|
||||
|
||||
ifneq ($(is_dos),) |
||||
|
||||
PLATFORM := dos
|
||||
DELETE := del
|
||||
COPY := copy
|
||||
# This configuration file to be used depends on the value of the CC
|
||||
# environment variable which is set below according to the compiler name
|
||||
# given as a parameter to make.
|
||||
|
||||
#####################################################################
|
||||
#
|
||||
# Use gcc, i.e. DJGPP by default. Aren't we biased ;-)
|
||||
#
|
||||
|
||||
# We test for the COMSPEC environment variable, then run the `ver'
|
||||
# command-line program to see if its output contains the word `Dos'.
|
||||
#
|
||||
CONFIG_FILE := dos-gcc.mk
|
||||
SEP := /
|
||||
ifndef CC |
||||
CC := gcc
|
||||
endif |
||||
|
||||
|
||||
ifneq ($(findstring turboc,$(MAKECMDGOALS)),) # Turbo C
|
||||
CONFIG_FILE := dos-tcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := tcc
|
||||
.PHONY: turboc |
||||
endif |
||||
|
||||
ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
|
||||
CONFIG_FILE := dos-wat.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := wcc386
|
||||
.PHONY: watcom |
||||
endif |
||||
|
||||
ifneq ($(findstring borlandc16,$(MAKECMDGOALS)),) # Borland C/C++ 16 bits
|
||||
CONFIG_FILE := dos-bcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := bcc
|
||||
.PHONY: borlandc16 |
||||
endif |
||||
|
||||
ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C/C++ 32 bits
|
||||
CONFIG_FILE := dos-bcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := bcc32
|
||||
.PHONY: borlandc |
||||
endif |
||||
|
||||
CONFIG_RULES := $(TOP)\config\dos\$(CONFIG_FILE)
|
||||
|
||||
# use the Dos version of the "setup dump"
|
||||
# If this is true, we are running a Dos-ish platform (or an emulation).
|
||||
#
|
||||
setup: dos_setup |
||||
|
||||
endif # test Dos
|
||||
endif # test COMSPEC
|
||||
endif # test PLATFORM
|
||||
ifeq ($(PLATFORM),ansi) |
||||
|
||||
ifdef COMSPEC
|
||||
|
||||
is_dos := $(findstring Dos,$(shell ver))
|
||||
|
||||
# We try to recognize a Dos session under OS/2. The `ver' command
|
||||
# returns `Operating System/2 ...' there, so `is_dos' should be empty
|
||||
# there.
|
||||
#
|
||||
# To recognize a Dos session under OS/2, we check COMSPEC for the
|
||||
# substring `MDOS\COMMAND'
|
||||
#
|
||||
ifeq ($(is_dos),)
|
||||
is_dos := $(findstring MDOS\COMMAND,$(COMSPEC))
|
||||
endif
|
||||
|
||||
ifneq ($(is_dos),)
|
||||
|
||||
PLATFORM := dos
|
||||
DELETE := del
|
||||
COPY := copy
|
||||
|
||||
# Use DJGPP (i.e. gcc) by default.
|
||||
#
|
||||
CONFIG_FILE := dos-gcc.mk
|
||||
SEP := /
|
||||
ifndef CC
|
||||
CC := gcc
|
||||
endif
|
||||
|
||||
ifneq ($(findstring turboc,$(MAKECMDGOALS)),) # Turbo C
|
||||
CONFIG_FILE := dos-tcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := tcc
|
||||
.PHONY: turboc
|
||||
endif
|
||||
|
||||
ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
|
||||
CONFIG_FILE := dos-wat.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := wcc386
|
||||
.PHONY: watcom
|
||||
endif
|
||||
|
||||
ifneq ($(findstring borlandc16,$(MAKECMDGOALS)),) # Borland C/C++ 16 bits
|
||||
CONFIG_FILE := dos-bcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := bcc
|
||||
.PHONY: borlandc16
|
||||
endif
|
||||
|
||||
ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C/C++ 32 bits
|
||||
CONFIG_FILE := dos-bcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := bcc32
|
||||
.PHONY: borlandc
|
||||
endif
|
||||
|
||||
setup: dos_setup
|
||||
|
||||
endif # test Dos
|
||||
endif # test COMSPEC
|
||||
endif # test PLATFORM
|
||||
|
||||
# EOF
|
||||
|
@ -1,69 +1,73 @@ |
||||
#****************************************************************************
|
||||
#* *
|
||||
#* FreeType modules sub-Makefile *
|
||||
#* *
|
||||
#* Copyright 1996-1999 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. *
|
||||
#* *
|
||||
#* *
|
||||
#* *
|
||||
#* DO NOT INVOKE THIS MAKEFILE DIRECTLY. IT IS MEANT TO BE INCLUDED BY *
|
||||
#* OTHER MAKEFILES. *
|
||||
#* *
|
||||
#* This file is in charge of handling the generation of the modules list *
|
||||
#* file, normally located in `config/ftmodule.h' *
|
||||
#* *
|
||||
#****************************************************************************
|
||||
#
|
||||
# FreeType 2 modules sub-Makefile
|
||||
#
|
||||
|
||||
|
||||
# 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.
|
||||
|
||||
|
||||
# DO NOT INVOKE THIS MAKEFILE DIRECTLY! IT IS MEANT TO BE INCLUDED BY
|
||||
# OTHER MAKEFILES.
|
||||
|
||||
|
||||
# This file is in charge of handling the generation of the modules list
|
||||
# file, normally located in `config/ftmodule.h'.
|
||||
|
||||
.PHONY: make_module_list clean_module_list remake_module_list |
||||
|
||||
# MODULE_LIST, as it name suggests, indicate where the modules list
|
||||
# reside. For now, it is in $(BUILD)/ftmodule.h
|
||||
# MODULE_LIST, as its name suggests, indicates where the modules list
|
||||
# resides. For now, it is in `config/ftmodule.h'.
|
||||
#
|
||||
ifndef FT_MODULE_LIST |
||||
FT_MODULE_LIST := $(TOP)$(SEP)config$(SEP)ftmodule.h
|
||||
FT_MODULE_LIST := $(CONFIG_)ftmodule.h
|
||||
endif |
||||
|
||||
# To build the modules list, we invoke the `make_module_list' target
|
||||
# To build the modules list, we invoke the `make_module_list' target.
|
||||
#
|
||||
#$(FT_MODULE_LIST): make_module_list
|
||||
|
||||
# Before the modules list file can be generated, we must remove the
|
||||
# file in order to `clean' the list
|
||||
# Before the modules list file can be generated, we must remove the file in
|
||||
# order to `clean' the list.
|
||||
#
|
||||
clean_module_list: |
||||
@-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(FT_MODULE_LIST))
|
||||
@-echo Regenerating the font drivers list in $(FT_MODULE_LIST)
|
||||
@-echo Regenerating the font drivers list in $(FT_MODULE_LIST)...
|
||||
|
||||
make_module_list: clean_module_list |
||||
@echo -- done --
|
||||
@echo done.
|
||||
|
||||
|
||||
# Trailing spaces are protected with a `#' sign to avoid accidental
|
||||
# removing.
|
||||
#
|
||||
ifneq ($(findstring $(PLATFORM),dos win32 win16 os2),) |
||||
OPEN_MODULE := @echo
|
||||
CLOSE_MODULE := >> $(FT_MODULE_LIST)
|
||||
OPEN_MODULE := @echo #
|
||||
CLOSE_MODULE := >> $(FT_MODULE_LIST)
|
||||
else |
||||
OPEN_MODULE := @echo "
|
||||
CLOSE_MODULE := " >> $(FT_MODULE_LIST)
|
||||
OPEN_MODULE := @echo "
|
||||
CLOSE_MODULE := " >> $(FT_MODULE_LIST)
|
||||
endif |
||||
|
||||
# OPEN_DRIVER & CLOSE_DRIVER are used to specify a given font driver
|
||||
# in the `module.mk' rules file
|
||||
# $(OPEN_DRIVER) & $(CLOSE_DRIVER) are used to specify a given font driver
|
||||
# in the `module.mk' rules file.
|
||||
#
|
||||
OPEN_DRIVER := $(OPEN_MODULE)FT_DRIVER(
|
||||
CLOSE_DRIVER := )$(CLOSE_MODULE)
|
||||
|
||||
ECHO_DRIVER := @echo "* driver:
|
||||
ECHO_DRIVER := @echo "* driver: #
|
||||
ECHO_DRIVER_DESC := (
|
||||
ECHO_DRIVER_DONE := )"
|
||||
|
||||
# each `module.mk' in the `src' sub-dirs is used to add one rule to
|
||||
# the target `make_module_list'.
|
||||
# Each `module.mk' in the `src' sub-dirs is used to add one rule to the
|
||||
# target `make_module_list'.
|
||||
#
|
||||
include $(wildcard $(TOP)/src/*/module.mk) |
||||
|
||||
# EOF
|
||||
|
@ -1,54 +1,64 @@ |
||||
#
|
||||
# This file is used to detect an OS/2 host, and set the build variables
|
||||
# accordingly..
|
||||
#
|
||||
# which Makefile to use based on the value of the CC environment variable.
|
||||
#
|
||||
# OS/2
|
||||
# FreeType 2 configuration file to detect an OS/2 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.
|
||||
|
||||
|
||||
# This configuration file to be used depends on the value of the CC
|
||||
# environment variable which is set below according to the compiler name
|
||||
# given as a parameter to make.
|
||||
|
||||
|
||||
ifeq ($(PLATFORM),ansi) |
||||
ifdef OS2_SHELL |
||||
|
||||
PLATFORM := os2
|
||||
COPY := copy
|
||||
DELETE := del
|
||||
|
||||
CONFIG_FILE := os2-gcc.mk # gcc-emx by default
|
||||
SEP := /
|
||||
|
||||
ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
|
||||
CONFIG_FILE := os2-icc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := icc
|
||||
.PHONY: visualage |
||||
endif |
||||
|
||||
ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
|
||||
CONFIG_FILE := os2-wat.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := wcc386
|
||||
.PHONY: watcom |
||||
endif |
||||
|
||||
ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C++ 32 bits
|
||||
CONFIG_FILE := os2-bcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := bcc32
|
||||
.PHONY: borlandc |
||||
endif |
||||
|
||||
ifneq ($(findstring devel,$(MAKECMDGOALS)),) |
||||
CONFIG_FILE := os2-dev.mk
|
||||
CC := gcc
|
||||
SEP := /
|
||||
devel: setup |
||||
endif |
||||
|
||||
CONFIG_RULES := $(TOP)\config\os2\$(CONFIG_FILE)
|
||||
|
||||
setup: dos_setup |
||||
|
||||
endif #test OS2_SHELL
|
||||
endif #test PLATFORM
|
||||
ifdef OS2_SHELL
|
||||
|
||||
PLATFORM := os2
|
||||
COPY := copy
|
||||
DELETE := del
|
||||
|
||||
CONFIG_FILE := os2-gcc.mk # gcc-emx by default
|
||||
SEP := /
|
||||
|
||||
ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
|
||||
CONFIG_FILE := os2-icc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := icc
|
||||
.PHONY: visualage
|
||||
endif
|
||||
|
||||
ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
|
||||
CONFIG_FILE := os2-wat.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := wcc386
|
||||
.PHONY: watcom
|
||||
endif
|
||||
|
||||
ifneq ($(findstring borlandc,$(MAKECMDGOALS)),) # Borland C++ 32 bits
|
||||
CONFIG_FILE := os2-bcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := bcc32
|
||||
.PHONY: borlandc
|
||||
endif
|
||||
|
||||
ifneq ($(findstring devel,$(MAKECMDGOALS)),)
|
||||
CONFIG_FILE := os2-dev.mk
|
||||
CC := gcc
|
||||
SEP := /
|
||||
devel: setup
|
||||
endif
|
||||
|
||||
setup: dos_setup
|
||||
|
||||
endif # test OS2_SHELL
|
||||
endif # test PLATFORM
|
||||
|
||||
#EOF
|
||||
|
@ -1,58 +1,62 @@ |
||||
#
|
||||
# This file is used to detect which Makefile to use based on the
|
||||
# value of the CC environment variable.
|
||||
#
|
||||
# Unix
|
||||
#
|
||||
#
|
||||
# This will _much_ probably change in the future if we're going to use
|
||||
# Automake/Autoconf..
|
||||
# FreeType 2 configuration file to detect a UNIX host platform.
|
||||
#
|
||||
|
||||
ifeq ($(PLATFORM),ansi) |
||||
has_inittab := $(strip $(wildcard /etc/inittab))
|
||||
ifneq ($(has_inittab),) |
||||
|
||||
PLATFORM := unix
|
||||
COPY := cp
|
||||
DELETE := rm -f
|
||||
|
||||
# if `devel' is the requested target, use the development Makefile
|
||||
#
|
||||
ifneq ($(findstring devel,$(MAKECMDGOALS)),) |
||||
CONFIG_RULES := $(BUILD)$(SEP)unix-dev.mk
|
||||
devel: setup; |
||||
endif |
||||
|
||||
# test wether we're using gcc ? If it is, we selected the
|
||||
# 'unix-gcc.mk' configuration file. Otherwise, the standard
|
||||
# 'unix.mk' which simply calls "cc -c" with no extra arguments
|
||||
#
|
||||
# Feel free to add support for other platform specific compilers
|
||||
# in this directory (e.g. solaris.mk + changes here to detect the
|
||||
# platform)
|
||||
# Copyright 1996-2000 by
|
||||
# David Turner, Robert Wilhelm, and Werner Lemberg.
|
||||
#
|
||||
ifeq ($(CC),gcc) |
||||
is_gcc := 1
|
||||
else |
||||
ifneq ($(findstring gcc,$(shell $(CC) --version)),) |
||||
is_gcc := 1
|
||||
endif |
||||
endif |
||||
|
||||
ifdef is_gcc |
||||
CONFIG_RULES := $(BUILD)$(SEP)unix-gcc.mk
|
||||
else |
||||
CONFIG_RULES := $(BUILD)$(SEP)unix.mk
|
||||
endif |
||||
|
||||
setup: std_setup |
||||
|
||||
endif # test Unix
|
||||
endif # test PLATFORM
|
||||
|
||||
|
||||
# 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 will probably change a lost in the future if we are going to use
|
||||
# Automake/Autoconf...
|
||||
|
||||
|
||||
ifeq ($(PLATFORM),ansi) |
||||
has_inittab := $(strip $(wildcard /etc/inittab))
|
||||
|
||||
ifneq ($(has_inittab),)
|
||||
|
||||
PLATFORM := unix
|
||||
COPY := cp
|
||||
DELETE := rm -f
|
||||
|
||||
# Test whether we're using gcc. If so, we select the `unix-gcc.mk'
|
||||
# configuration file. Otherwise, the standard `unix.mk' is used which
|
||||
# simply calls `cc -c' with no extra arguments.
|
||||
#
|
||||
# Feel free to add support for other platform specific compilers in this
|
||||
# directory (e.g. solaris.mk + changes here to detect the platform).
|
||||
#
|
||||
ifeq ($(CC),gcc)
|
||||
is_gcc := 1
|
||||
else
|
||||
ifneq ($(findstring gcc,$(shell $(CC) -v 2>&1)),)
|
||||
is_gcc := 1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef is_gcc
|
||||
CONFIG_FILE := unix-gcc.mk
|
||||
else
|
||||
CONFIG_FILE := unix.mk
|
||||
endif
|
||||
|
||||
# If `devel' is the requested target, use the development Makefile.
|
||||
#
|
||||
ifneq ($(findstring devel,$(MAKECMDGOALS)),)
|
||||
CONFIG_FILE := unix-dev.mk
|
||||
devel: setup
|
||||
endif
|
||||
|
||||
setup: std_setup
|
||||
|
||||
endif # test Unix
|
||||
endif # test PLATFORM
|
||||
|
||||
# EOF
|
||||
|
@ -1,93 +1,93 @@ |
||||
#
|
||||
# This file is used to detect a Win32 host platform.
|
||||
#
|
||||
# This configuration file to be used depends on the value of the CC
|
||||
# environment variable.
|
||||
#
|
||||
# FreeType 2 configuration file to detect a Win32 host platform.
|
||||
#
|
||||
|
||||
|
||||
ifeq ($(PLATFORM),ansi) |
||||
|
||||
###################################################################
|
||||
#
|
||||
# Detecting Windows NT or Windows 9x
|
||||
# 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.
|
||||
|
||||
# Detecting Windows NT is easy, as the OS variable must be defined
|
||||
# and contains "Windows_NT". Untested with Windows 2K, but I guess
|
||||
# it should work ...
|
||||
#
|
||||
ifeq ($(OS),Windows_NT) |
||||
is_windows := 1
|
||||
|
||||
# We test for the COMSPEC environment variable, then run the 'ver'
|
||||
# command-line program to see if its output contains the word "Windows"
|
||||
#
|
||||
# If this is true, we're running a win32 platform (or an emulation)
|
||||
#
|
||||
else |
||||
ifdef COMSPEC |
||||
is_windows := $(findstring Windows,$(strip $(shell ver)))
|
||||
endif |
||||
endif #test NT
|
||||
# This configuration file to be used depends on the value of the CC
|
||||
# environment variable which is set below according to the compiler name
|
||||
# given as a parameter to make.
|
||||
|
||||
####################################################################
|
||||
#
|
||||
# Rules for Win32
|
||||
#
|
||||
|
||||
ifdef is_windows |
||||
|
||||
PLATFORM := win32
|
||||
DELETE := del
|
||||
COPY := copy
|
||||
|
||||
CONFIG_FILE := w32-gcc.mk # gcc Makefile by default - aren't we biased ;-)
|
||||
SEP := /
|
||||
ifeq ($(CC),cc) |
||||
CC := gcc
|
||||
endif |
||||
|
||||
ifneq ($(findstring visualc,$(MAKECMDGOALS)),) # Visual C/C++
|
||||
CONFIG_FILE := w32-vcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := cl
|
||||
visualc: setup |
||||
endif |
||||
|
||||
ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
|
||||
CONFIG_FILE := w32-wat.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := wcc386
|
||||
watcom: setup |
||||
endif |
||||
|
||||
ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
|
||||
CONFIG_FILE := w32-icc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := icc
|
||||
visualage: setup |
||||
endif |
||||
|
||||
ifneq ($(findstring lcc,$(MAKECMDGOALS)),) # LCC-Win32
|
||||
CONFIG_FILE := w32-lcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := lcc
|
||||
lcc: setup |
||||
endif |
||||
|
||||
ifneq ($(findstring devel,$(MAKECMDGOALS)),) |
||||
CONFIG_FILE := w32-dev.mk
|
||||
CC := gcc
|
||||
SEP := /
|
||||
devel: setup |
||||
endif |
||||
|
||||
CONFIG_RULES := $(TOP)\config\win32\$(CONFIG_FILE)
|
||||
|
||||
setup: dos_setup |
||||
|
||||
endif #test is_windows
|
||||
endif #test PLATFORM
|
||||
ifeq ($(PLATFORM),ansi) |
||||
|
||||
# Detecting Windows NT is easy, as the OS variable must be defined and
|
||||
# contains `Windows_NT'. Untested with Windows 2K, but I guess it should
|
||||
# work...
|
||||
#
|
||||
ifeq ($(OS),Windows_NT)
|
||||
is_windows := 1
|
||||
|
||||
# We test for the COMSPEC environment variable, then run the `ver'
|
||||
# command-line program to see if its output contains the word `Windows'.
|
||||
#
|
||||
# If this is true, we're running a win32 platform (or an emulation).
|
||||
#
|
||||
else
|
||||
ifdef COMSPEC
|
||||
is_windows := $(findstring Windows,$(strip $(shell ver)))
|
||||
endif
|
||||
endif #test NT
|
||||
|
||||
ifdef is_windows
|
||||
|
||||
PLATFORM := win32
|
||||
DELETE := del
|
||||
COPY := copy
|
||||
|
||||
CONFIG_FILE := w32-gcc.mk # gcc Makefile by default
|
||||
SEP := /
|
||||
ifeq ($(CC),cc)
|
||||
CC := gcc
|
||||
endif
|
||||
|
||||
ifneq ($(findstring visualc,$(MAKECMDGOALS)),) # Visual C/C++
|
||||
CONFIG_FILE := w32-vcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := cl
|
||||
visualc: setup
|
||||
endif
|
||||
|
||||
ifneq ($(findstring watcom,$(MAKECMDGOALS)),) # Watcom C/C++
|
||||
CONFIG_FILE := w32-wat.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := wcc386
|
||||
watcom: setup
|
||||
endif
|
||||
|
||||
ifneq ($(findstring visualage,$(MAKECMDGOALS)),) # Visual Age C++
|
||||
CONFIG_FILE := w32-icc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := icc
|
||||
visualage: setup
|
||||
endif
|
||||
|
||||
ifneq ($(findstring lcc,$(MAKECMDGOALS)),) # LCC-Win32
|
||||
CONFIG_FILE := w32-lcc.mk
|
||||
SEP := $(BACKSLASH)
|
||||
CC := lcc
|
||||
lcc: setup
|
||||
endif
|
||||
|
||||
ifneq ($(findstring devel,$(MAKECMDGOALS)),)
|
||||
CONFIG_FILE := w32-dev.mk
|
||||
CC := gcc
|
||||
SEP := /
|
||||
devel: setup
|
||||
endif
|
||||
|
||||
setup: dos_setup
|
||||
|
||||
endif # test is_windows
|
||||
endif # test PLATFORM
|
||||
|
||||
# EOF
|
||||
|
@ -1,89 +1,90 @@ |
||||
#****************************************************************************
|
||||
#* *
|
||||
#* PSNames driver Makefile *
|
||||
#* *
|
||||
#* 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. *
|
||||
#* *
|
||||
#****************************************************************************
|
||||
#
|
||||
# FreeType 2 PSNames driver configuration rules
|
||||
#
|
||||
|
||||
|
||||
ifndef PSNAMES_INCLUDE |
||||
PSNAMES_INCLUDED := 1
|
||||
# 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.
|
||||
|
||||
include $(SRC_)shared/rules.mk |
||||
|
||||
# PSNAMES driver directory
|
||||
#
|
||||
PSNAMES_DIR := $(SRC_)psnames
|
||||
PSNAMES_DIR_ := $(PSNAMES_DIR)$(SEP)
|
||||
ifndef PSNAMES_INCLUDE |
||||
PSNAMES_INCLUDED := 1
|
||||
|
||||
# additional include flags used when compiling the driver
|
||||
#
|
||||
PSNAMES_INCLUDE := $(SHARED) $(PSNAMES_DIR)
|
||||
include $(SRC_)shared/rules.mk
|
||||
|
||||
# PSNAMES driver directory
|
||||
#
|
||||
PSNAMES_DIR := $(SRC_)psnames
|
||||
PSNAMES_DIR_ := $(PSNAMES_DIR)$(SEP)
|
||||
|
||||
# compilation flags for the driver
|
||||
#
|
||||
PSNAMES_CFLAGS := $(PSNAMES_INCLUDE:%=$I%)
|
||||
PSNAMES_COMPILE := $(FT_COMPILE) $(PSNAMES_CFLAGS)
|
||||
# additional include flags used when compiling the driver
|
||||
#
|
||||
PSNAMES_INCLUDE := $(SHARED) $(PSNAMES_DIR)
|
||||
|
||||
|
||||
# TrueType driver sources (i.e., C files)
|
||||
#
|
||||
PSNAMES_DRV_SRC := $(PSNAMES_DIR_)psdriver.c
|
||||
# compilation flags for the driver
|
||||
#
|
||||
PSNAMES_CFLAGS := $(PSNAMES_INCLUDE:%=$I%)
|
||||
PSNAMES_COMPILE := $(FT_COMPILE) $(PSNAMES_CFLAGS)
|
||||
|
||||
|
||||
# TrueType driver headers
|
||||
#
|
||||
PSNAMES_DRV_H := $(SHARED_H) \
|
||||
$(PSNAMES_DIR_)psdriver.h \
|
||||
$(PSNAMES_DIR_)pstables.h
|
||||
# driver sources (i.e., C files)
|
||||
#
|
||||
PSNAMES_DRV_SRC := $(PSNAMES_DIR_)psdriver.c
|
||||
|
||||
|
||||
# driver object(s)
|
||||
#
|
||||
# PSNAMES_DRV_OBJ_M is used during `debug' builds
|
||||
# PSNAMES_DRV_OBJ_S is used during `release' builds
|
||||
#
|
||||
PSNAMES_DRV_OBJ_M := $(PSNAMES_DRV_SRC:$(PSNAMES_DIR_)%.c=$(OBJ_)%.$O)
|
||||
PSNAMES_DRV_OBJ_S := $(OBJ_)psnames.$O
|
||||
# driver headers
|
||||
#
|
||||
PSNAMES_DRV_H := $(SHARED_H) \
|
||||
$(PSNAMES_DIR_)psdriver.h \
|
||||
$(PSNAMES_DIR_)pstables.h
|
||||
|
||||
|
||||
# driver root source file(s)
|
||||
#
|
||||
PSNAMES_DRV_SRC_M := $(PSNAMES_DRV_SRC)
|
||||
PSNAMES_DRV_SRC_S := $(PSNAMES_DIR_)psdriver.c
|
||||
# driver object(s)
|
||||
#
|
||||
# PSNAMES_DRV_OBJ_M is used during `debug' builds
|
||||
# PSNAMES_DRV_OBJ_S is used during `release' builds
|
||||
#
|
||||
PSNAMES_DRV_OBJ_M := $(PSNAMES_DRV_SRC:$(PSNAMES_DIR_)%.c=$(OBJ_)%.$O)
|
||||
PSNAMES_DRV_OBJ_S := $(OBJ_)psnames.$O
|
||||
|
||||
|
||||
# driver - single object
|
||||
#
|
||||
# the driver is recompiled if any of the header or source files is changed
|
||||
# as well as any of the shared source files found in `shared/sfnt'
|
||||
#
|
||||
$(PSNAMES_DRV_OBJ_S): $(BASE_H) $(SHARED_H) $(PSNAMES_DRV_H) $(PSNAMES_DRV_SRC) $(PSNAMES_DRV_SRC_S) |
||||
$(PSNAMES_COMPILE) $T$@ $(PSNAMES_DRV_SRC_S)
|
||||
# driver source file(s)
|
||||
#
|
||||
PSNAMES_DRV_SRC_M := $(PSNAMES_DRV_SRC)
|
||||
PSNAMES_DRV_SRC_S := $(PSNAMES_DIR_)psdriver.c
|
||||
|
||||
|
||||
# driver - single object
|
||||
#
|
||||
# the driver is recompiled if any of the header or source files is
|
||||
# changed as well as any of the shared source files found in
|
||||
# `shared'
|
||||
#
|
||||
$(PSNAMES_DRV_OBJ_S): $(BASE_H) $(SHARED_H) $(PSNAMES_DRV_H) \
|
||||
$(PSNAMES_DRV_SRC) $(PSNAMES_DRV_SRC_S)
|
||||
$(PSNAMES_COMPILE) $T$@ $(PSNAMES_DRV_SRC_S)
|
||||
|
||||
# driver - multiple objects
|
||||
#
|
||||
# All objects are recompiled if any of the header files is changed
|
||||
#
|
||||
$(OBJ_)ps%.$O: $(PSNAMES_DIR_)ps%.c $(BASE_H) $(SHARED_H) $(PSNAMES_DRV_H) |
||||
$(PSNAMES_COMPILE) $T$@ $<
|
||||
|
||||
# driver - multiple objects
|
||||
#
|
||||
# All objects are recompiled if any of the header files is changed.
|
||||
#
|
||||
$(OBJ_)ps%.$O: $(PSNAMES_DIR_)ps%.c $(BASE_H) $(SHARED_H) $(PSNAMES_DRV_H)
|
||||
$(PSNAMES_COMPILE) $T$@ $<
|
||||
|
||||
# update main driver object lists
|
||||
#
|
||||
DRV_OBJS_S += $(PSNAMES_DRV_OBJ_S)
|
||||
DRV_OBJS_M += $(PSNAMES_DRV_OBJ_M)
|
||||
|
||||
# update main driver object lists
|
||||
#
|
||||
DRV_OBJS_S += $(PSNAMES_DRV_OBJ_S)
|
||||
DRV_OBJS_M += $(PSNAMES_DRV_OBJ_M)
|
||||
|
||||
endif |
||||
# END
|
||||
|
||||
# EOF
|
||||
|
@ -1,165 +1,100 @@ |
||||
#****************************************************************************
|
||||
#* *
|
||||
#* SFNT driver Makefile *
|
||||
#* *
|
||||
#* Copyright 1996-1999 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. *
|
||||
#* *
|
||||
#****************************************************************************
|
||||
|
||||
|
||||
#****************************************************************************
|
||||
#* *
|
||||
#* IMPORTANT NOTE: This Makefile is intended for GNU Make! *
|
||||
#* If you provide Makefiles for other make utilities, *
|
||||
#* please place them in `freetype/lib/arch/<system>'. *
|
||||
#* *
|
||||
#* *
|
||||
#* This file is to be included by the FreeType Makefile.lib, located in *
|
||||
#* the `freetype/lib' directory. Here is the list of the variables that *
|
||||
#* must be defined to use it: *
|
||||
#* *
|
||||
#* *
|
||||
#* BASE_DIR: The location of the base layer's directory. This is *
|
||||
#* usually `freetype/lib/base'. *
|
||||
#* *
|
||||
#* ARCH_DIR: The location of the architecture-dependent directory. *
|
||||
#* This is usually `freetype/lib/arch/<system>'. *
|
||||
#* *
|
||||
#* DRIVERS_DIR: The location of the font driver sub-dirs, usually *
|
||||
#* `freetype/lib/drivers'. *
|
||||
#* *
|
||||
#* OBJ_DIR: The location where the compiled object(s) file will be *
|
||||
#* placed. *
|
||||
#* *
|
||||
#* BASE_H: A list of pathnames to the base layer's header files on *
|
||||
#* which the driver depends. *
|
||||
#* *
|
||||
#* FT_CFLAGS: A set of flags used for compilation of object files. *
|
||||
#* This contains at least the include paths of the arch *
|
||||
#* and base directories + optimization + warnings + ANSI *
|
||||
#* compliance. *
|
||||
#* *
|
||||
#* FT_IFLAG: The flag used to specify an include path on the *
|
||||
#* compiler command line. For example, with GCC, this is *
|
||||
#* `-I', while some other compilers use `/i=' or `-J', *
|
||||
#* etc. *
|
||||
#* *
|
||||
#* FT_OBJ: The suffix of an object file for the platform; can be *
|
||||
#* `o', `obj', `coff', `tco', etc. depending on the *
|
||||
#* platform. *
|
||||
#* *
|
||||
#* *
|
||||
#* It also updates the following variables defined and used in the main *
|
||||
#* Makefile: *
|
||||
#* *
|
||||
#* DRV_OBJ_S: The list of driver object files in *
|
||||
#* single-object mode. *
|
||||
#* *
|
||||
#* DRV_OBJ_M: The list of driver object files in *
|
||||
#* multiple-objects mode. *
|
||||
#* *
|
||||
#* FTINIT_DRIVER_PATHS: The list of include paths used to compile the *
|
||||
#* `ftinit' component which registers all font *
|
||||
#* drivers in the FT_Init_FreeType() function. *
|
||||
#* *
|
||||
#* FTINIT_DRIVER_H: The list of header dependencies used to *
|
||||
#* compile the `ftinit' component. *
|
||||
#* *
|
||||
#* FTINIT_DRIVER_MACROS: The list of macros to be defined when *
|
||||
#* compiling the `ftinit' component. *
|
||||
#* *
|
||||
#* `Single-object compilation' means that each font driver is compiled *
|
||||
#* into a single object file. This is useful to get rid of all *
|
||||
#* driver-specific entries. *
|
||||
#* *
|
||||
#****************************************************************************
|
||||
#
|
||||
# FreeType 2 DFNT driver configuration 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.
|
||||
|
||||
|
||||
ifndef SFNT_INCLUDE |
||||
SFNT_INCLUDED := 1
|
||||
SFNT_INCLUDED := 1
|
||||
|
||||
include $(SRC_)shared/rules.mk |
||||
include $(SRC_)shared/rules.mk
|
||||
|
||||
# SFNT driver directory
|
||||
#
|
||||
SFNT_DIR := $(SRC_)sfnt
|
||||
SFNT_DIR_ := $(SFNT_DIR)$(SEP)
|
||||
# SFNT driver directory
|
||||
#
|
||||
SFNT_DIR := $(SRC_)sfnt
|
||||
SFNT_DIR_ := $(SFNT_DIR)$(SEP)
|
||||
|
||||
# additional include flags used when compiling the driver
|
||||
#
|
||||
SFNT_INCLUDE := $(SHARED) $(SFNT_DIR)
|
||||
# additional include flags used when compiling the driver
|
||||
#
|
||||
SFNT_INCLUDE := $(SHARED) $(SFNT_DIR)
|
||||
|
||||
|
||||
# compilation flags for the driver
|
||||
#
|
||||
SFNT_CFLAGS := $(SFNT_INCLUDE:%=$I%)
|
||||
SFNT_COMPILE := $(FT_COMPILE) $(SFNT_CFLAGS)
|
||||
# compilation flags for the driver
|
||||
#
|
||||
SFNT_CFLAGS := $(SFNT_INCLUDE:%=$I%)
|
||||
SFNT_COMPILE := $(FT_COMPILE) $(SFNT_CFLAGS)
|
||||
|
||||
|
||||
# TrueType driver sources (i.e., C files)
|
||||
#
|
||||
SFNT_DRV_SRC := $(SFNT_DIR_)ttload.c \
|
||||
$(SFNT_DIR_)ttcmap.c \
|
||||
$(SFNT_DIR_)ttsbit.c \
|
||||
$(SFNT_DIR_)ttpost.c \
|
||||
$(SFNT_DIR_)sfdriver.c \
|
||||
# driver sources (i.e., C files)
|
||||
#
|
||||
SFNT_DRV_SRC := $(SFNT_DIR_)ttload.c \
|
||||
$(SFNT_DIR_)ttcmap.c \
|
||||
$(SFNT_DIR_)ttsbit.c \
|
||||
$(SFNT_DIR_)ttpost.c \
|
||||
$(SFNT_DIR_)sfdriver.c
|
||||
|
||||
|
||||
# TrueType driver headers
|
||||
#
|
||||
SFNT_DRV_H := $(SHARED_H) \
|
||||
$(SFNT_DIR_)sfconfig.h \
|
||||
$(SFNT_DIR_)ttload.h \
|
||||
$(SFNT_DIR_)ttsbit.h \
|
||||
$(SFNT_DIR_)ttcmap.h \
|
||||
$(SFNT_DIR_)ttpost.h
|
||||
# driver headers
|
||||
#
|
||||
SFNT_DRV_H := $(SHARED_H) \
|
||||
$(SFNT_DIR_)sfconfig.h \
|
||||
$(SFNT_DIR_)ttload.h \
|
||||
$(SFNT_DIR_)ttsbit.h \
|
||||
$(SFNT_DIR_)ttcmap.h \
|
||||
$(SFNT_DIR_)ttpost.h
|
||||
|
||||
|
||||
# driver object(s)
|
||||
#
|
||||
# SFNT_DRV_OBJ_M is used during `debug' builds
|
||||
# SFNT_DRV_OBJ_S is used during `release' builds
|
||||
#
|
||||
SFNT_DRV_OBJ_M := $(SFNT_DRV_SRC:$(SFNT_DIR_)%.c=$(OBJ_)%.$O)
|
||||
SFNT_DRV_OBJ_S := $(OBJ_)sfnt.$O
|
||||
# driver object(s)
|
||||
#
|
||||
# SFNT_DRV_OBJ_M is used during `debug' builds
|
||||
# SFNT_DRV_OBJ_S is used during `release' builds
|
||||
#
|
||||
SFNT_DRV_OBJ_M := $(SFNT_DRV_SRC:$(SFNT_DIR_)%.c=$(OBJ_)%.$O)
|
||||
SFNT_DRV_OBJ_S := $(OBJ_)sfnt.$O
|
||||
|
||||
|
||||
# driver root source file(s)
|
||||
#
|
||||
SFNT_DRV_SRC_M := $(SFNT_DRV_SRC)
|
||||
SFNT_DRV_SRC_S := $(SFNT_DIR_)sfnt.c
|
||||
# driver source file(s)
|
||||
#
|
||||
SFNT_DRV_SRC_M := $(SFNT_DRV_SRC)
|
||||
SFNT_DRV_SRC_S := $(SFNT_DIR_)sfnt.c
|
||||
|
||||
|
||||
# driver - single object
|
||||
#
|
||||
# the driver is recompiled if any of the header or source files is changed
|
||||
# as well as any of the shared source files found in `shared/sfnt'
|
||||
#
|
||||
$(SFNT_DRV_OBJ_S): $(BASE_H) $(SHARED_H) $(SFNT_DRV_H) $(SFNT_DRV_SRC) $(SFNT_DRV_SRC_S) |
||||
$(SFNT_COMPILE) $T$@ $(SFNT_DRV_SRC_S)
|
||||
# driver - single object
|
||||
#
|
||||
# the driver is recompiled if any of the header or source files is
|
||||
# changed as well as any of the shared source files found in
|
||||
# `shared'
|
||||
#
|
||||
$(SFNT_DRV_OBJ_S): $(BASE_H) $(SHARED_H) $(SFNT_DRV_H) \
|
||||
$(SFNT_DRV_SRC) $(SFNT_DRV_SRC_S)
|
||||
$(SFNT_COMPILE) $T$@ $(SFNT_DRV_SRC_S)
|
||||
|
||||
|
||||
# driver - multiple objects
|
||||
#
|
||||
# All objects are recompiled if any of the header files is changed
|
||||
#
|
||||
$(OBJ_)tt%.$O: $(SFNT_DIR_)tt%.c $(BASE_H) $(SHARED_H) $(SFNT_DRV_H)
|
||||
$(SFNT_COMPILE) $T$@ $<
|
||||
|
||||
# driver - multiple objects
|
||||
#
|
||||
# All objects are recompiled if any of the header files is changed
|
||||
#
|
||||
$(OBJ_)tt%.$O: $(SFNT_DIR_)tt%.c $(BASE_H) $(SHARED_H) $(SFNT_DRV_H) |
||||
$(SFNT_COMPILE) $T$@ $<
|
||||
$(OBJ_)sf%.$O: $(SFNT_DIR_)sf%.c $(BASE_H) $(SHARED_H) $(SFNT_DRV_H)
|
||||
$(SFNT_COMPILE) $T$@ $<
|
||||
|
||||
$(OBJ_)sf%.$O: $(SFNT_DIR_)sf%.c $(BASE_H) $(SHARED_H) $(SFNT_DRV_H) |
||||
$(SFNT_COMPILE) $T$@ $<
|
||||
|
||||
# update main driver object lists
|
||||
#
|
||||
DRV_OBJS_S += $(SFNT_DRV_OBJ_S)
|
||||
DRV_OBJS_M += $(SFNT_DRV_OBJ_M)
|
||||
# update main driver object lists
|
||||
#
|
||||
DRV_OBJS_S += $(SFNT_DRV_OBJ_S)
|
||||
DRV_OBJS_M += $(SFNT_DRV_OBJ_M)
|
||||
|
||||
endif |
||||
# END
|
||||
|
||||
# EOF
|
||||
|
@ -1,27 +1,27 @@ |
||||
#****************************************************************************
|
||||
#* *
|
||||
#* shared files Makefile *
|
||||
#* *
|
||||
#* 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. *
|
||||
#* *
|
||||
#****************************************************************************
|
||||
#
|
||||
# FreeType 2 shared files configuration 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.
|
||||
|
||||
|
||||
ifndef SHARED_RULES |
||||
SHARED_RULES := 1
|
||||
SHARED_RULES := 1
|
||||
|
||||
SHARED := $(SRC_)shared
|
||||
SHARED_ := $(SHARED)$(SEP)
|
||||
SHARED := $(SRC_)shared
|
||||
SHARED_ := $(SHARED)$(SEP)
|
||||
|
||||
SHARED_H := $(wildcard $(SHARED_)*.h)
|
||||
SHARED_SRC := $(wildcard $(SHARED_)*.c)
|
||||
SHARED_H := $(wildcard $(SHARED_)*.h)
|
||||
SHARED_SRC := $(wildcard $(SHARED_)*.c)
|
||||
|
||||
endif |
||||
|
||||
# END
|
||||
# EOF
|
||||
|
Loading…
Reference in new issue