2000-07-08 04:22:20 +04:00
|
|
|
#
|
|
|
|
# FreeType 2 modules sub-Makefile
|
|
|
|
#
|
|
|
|
|
2000-10-17 07:38:43 +04:00
|
|
|
|
2003-06-09 08:46:30 +04:00
|
|
|
# Copyright 1996-2000, 2003 by
|
2000-07-08 04:22:20 +04:00
|
|
|
# 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.
|
|
|
|
|
2000-12-21 01:09:41 +03:00
|
|
|
.PHONY: make_module_list clean_module_list
|
2000-07-08 04:22:20 +04:00
|
|
|
|
|
|
|
# MODULE_LIST, as its name suggests, indicates where the modules list
|
|
|
|
# resides. For now, it is in `include/freetype/config/ftmodule.h'.
|
|
|
|
#
|
2000-09-16 02:42:06 +04:00
|
|
|
ifndef MODULE_LIST
|
2003-06-09 08:46:30 +04:00
|
|
|
MODULE_LIST := $(TOP_DIR)/include/$(PROJECT)/config/ftmodule.h
|
2000-07-08 04:22:20 +04:00
|
|
|
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
|
2001-01-01 20:25:21 +03:00
|
|
|
# an ftmodule.h file.
|
2000-07-08 04:22:20 +04:00
|
|
|
#
|
2000-09-16 02:42:06 +04:00
|
|
|
#$(MODULE_LIST): make_module_list
|
2000-07-08 04:22:20 +04:00
|
|
|
|
2001-01-01 20:25:21 +03:00
|
|
|
|
|
|
|
ifneq ($(findstring $(PLATFORM),dos win32 win16 os2),)
|
|
|
|
OPEN_MODULE := @echo$(space)
|
2003-06-09 08:46:30 +04:00
|
|
|
CLOSE_MODULE := >> $(subst /,\,$(MODULE_LIST))
|
|
|
|
REMOVE_MODULE := @-$(DELETE) $(subst /,\,$(MODULE_LIST))
|
2001-01-01 20:25:21 +03:00
|
|
|
else
|
|
|
|
OPEN_MODULE := @echo "
|
|
|
|
CLOSE_MODULE := " >> $(MODULE_LIST)
|
|
|
|
REMOVE_MODULE := @-$(DELETE) $(MODULE_LIST)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2000-07-08 04:22:20 +04:00
|
|
|
# Before the modules list file can be generated, we must remove the file in
|
|
|
|
# order to `clean' the list.
|
|
|
|
#
|
|
|
|
clean_module_list:
|
2001-01-01 20:25:21 +03:00
|
|
|
$(REMOVE_MODULE)
|
2003-06-09 08:46:30 +04:00
|
|
|
@-echo Regenerating modules list in $(MODULE_LIST)...
|
2000-07-08 04:22:20 +04:00
|
|
|
|
|
|
|
make_module_list: clean_module_list
|
|
|
|
@echo done.
|
|
|
|
|
|
|
|
# $(OPEN_DRIVER) & $(CLOSE_DRIVER) are used to specify a given font driver
|
|
|
|
# in the `module.mk' rules file.
|
|
|
|
#
|
|
|
|
OPEN_DRIVER := $(OPEN_MODULE)FT_USE_MODULE(
|
|
|
|
CLOSE_DRIVER := )$(CLOSE_MODULE)
|
|
|
|
|
2000-12-06 19:31:30 +03:00
|
|
|
ECHO_DRIVER := @echo "* module:$(space)
|
2000-07-08 04:22:20 +04:00
|
|
|
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'.
|
|
|
|
#
|
2002-06-14 12:09:25 +04:00
|
|
|
include $(wildcard $(TOP_DIR)/src/*/module.mk)
|
2000-07-08 04:22:20 +04:00
|
|
|
|
2003-06-09 08:46:30 +04:00
|
|
|
|
2000-07-08 04:22:20 +04:00
|
|
|
# EOF
|