aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/extras/freetype2/builds/modules.mk
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2011-10-10 17:43:39 +0200
committerReinhard Tartler <siretart@tauware.de>2011-10-10 17:43:39 +0200
commitf4092abdf94af6a99aff944d6264bc1284e8bdd4 (patch)
tree2ac1c9cc16ceb93edb2c4382c088dac5aeafdf0f /nx-X11/extras/freetype2/builds/modules.mk
parenta840692edc9c6d19cd7c057f68e39c7d95eb767d (diff)
downloadnx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.gz
nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.tar.bz2
nx-libs-f4092abdf94af6a99aff944d6264bc1284e8bdd4.zip
Imported nx-X11-3.1.0-1.tar.gznx-X11/3.1.0-1
Summary: Imported nx-X11-3.1.0-1.tar.gz Keywords: Imported nx-X11-3.1.0-1.tar.gz into Git repository
Diffstat (limited to 'nx-X11/extras/freetype2/builds/modules.mk')
-rw-r--r--nx-X11/extras/freetype2/builds/modules.mk77
1 files changed, 77 insertions, 0 deletions
diff --git a/nx-X11/extras/freetype2/builds/modules.mk b/nx-X11/extras/freetype2/builds/modules.mk
new file mode 100644
index 000000000..5102dc060
--- /dev/null
+++ b/nx-X11/extras/freetype2/builds/modules.mk
@@ -0,0 +1,77 @@
+#
+# FreeType 2 modules sub-Makefile
+#
+
+
+# Copyright 1996-2000, 2003 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
+
+# MODULE_LIST, as its name suggests, indicates where the modules list
+# resides. For now, it is in `include/freetype/config/ftmodule.h'.
+#
+ifndef MODULE_LIST
+ MODULE_LIST := $(TOP_DIR)/include/$(PROJECT)/config/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
+# an ftmodule.h file.
+#
+#$(MODULE_LIST): make_module_list
+
+
+ifneq ($(findstring $(PLATFORM),dos win32 win16 os2),)
+ OPEN_MODULE := @echo$(space)
+ CLOSE_MODULE := >> $(subst /,\,$(MODULE_LIST))
+ REMOVE_MODULE := @-$(DELETE) $(subst /,\,$(MODULE_LIST))
+else
+ OPEN_MODULE := @echo "
+ CLOSE_MODULE := " >> $(MODULE_LIST)
+ REMOVE_MODULE := @-$(DELETE) $(MODULE_LIST)
+endif
+
+
+# Before the modules list file can be generated, we must remove the file in
+# order to `clean' the list.
+#
+clean_module_list:
+ $(REMOVE_MODULE)
+ @-echo Regenerating modules list in $(MODULE_LIST)...
+
+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)
+
+ECHO_DRIVER := @echo "* module:$(space)
+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_DIR)/src/*/module.mk)
+
+
+# EOF