e35cac66c6
Tons of unnecessary stuff have been removed; only the essential rules have been retained. The source files now depend on all header files in include/freetype, include/freetype/config, and include/freetype/internal. This is not optimal, I know, and I'll try to improve this, but it is better than before (namely no dependencies on `internal'). FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know exactly whether this is really useful, but it doesn't harm. There is now more documentation in the makefiles itself. io-frames.html: Use of <th>, <code>, and <var> for better tagging. Reactivating of FT_DEBUG_LEVEL_xxx macros. Added a lot of #include directives to make `multi' builds possible -- note that currently the modules cid, t1, and t1z have clashing structures and functions which means that you can only use one of these three modules for a multi build. Added some missing function declarations to (local) header files. Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot of other functions should be renamed also... Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished yet... Fixed FT_Free() to allow a NULL pointer without an assertion (this has always been a valid assumption in FreeType, at least in FT 1.x). A lot of other, minor fixes (mostly documentation).
76 lines
2.1 KiB
Makefile
76 lines
2.1 KiB
Makefile
#
|
|
# 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.
|
|
|
|
.PHONY: make_module_list clean_module_list remake_module_list
|
|
|
|
# MODULE_LIST, as its name suggests, indicates where the modules list
|
|
# resides. For now, it is in `include/freetype/config/ftmodule.h'.
|
|
#
|
|
ifndef FT_MODULE_LIST
|
|
FT_MODULE_LIST := $(TOP)$(SEP)include$(SEP)freetype$(SEP)config$(SEP)ftmodule.h
|
|
endif
|
|
|
|
# To build the modules list, we invoke the `make_module_list' target.
|
|
#
|
|
# This rule is commented out by default since FreeType comes already with
|
|
# a ftmodule.h file.
|
|
#
|
|
#$(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.
|
|
#
|
|
clean_module_list:
|
|
@-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(FT_MODULE_LIST))
|
|
@-echo Regenerating the font drivers list in $(FT_MODULE_LIST)...
|
|
|
|
make_module_list: clean_module_list
|
|
@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)
|
|
else
|
|
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 := $(OPEN_MODULE)FT_DRIVER(
|
|
CLOSE_DRIVER := )$(CLOSE_MODULE)
|
|
|
|
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'.
|
|
#
|
|
include $(wildcard $(TOP)/src/*/module.mk)
|
|
|
|
# EOF
|