modules/freetype2/builds/modules.mk

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 #
michael@0 2 # FreeType 2 modules sub-Makefile
michael@0 3 #
michael@0 4
michael@0 5
michael@0 6 # Copyright 1996-2000, 2003, 2006, 2008, 2014 by
michael@0 7 # David Turner, Robert Wilhelm, and Werner Lemberg.
michael@0 8 #
michael@0 9 # This file is part of the FreeType project, and may only be used, modified,
michael@0 10 # and distributed under the terms of the FreeType project license,
michael@0 11 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
michael@0 12 # indicate that you have read the license and understand and accept it
michael@0 13 # fully.
michael@0 14
michael@0 15
michael@0 16 # DO NOT INVOKE THIS MAKEFILE DIRECTLY! IT IS MEANT TO BE INCLUDED BY
michael@0 17 # OTHER MAKEFILES.
michael@0 18
michael@0 19
michael@0 20 # This file is in charge of handling the generation of the modules list
michael@0 21 # file.
michael@0 22
michael@0 23
michael@0 24 # Build the modules list.
michael@0 25 #
michael@0 26 $(FTMODULE_H): $(MODULES_CFG)
michael@0 27 $(FTMODULE_H_INIT)
michael@0 28 $(FTMODULE_H_CREATE)
michael@0 29 $(FTMODULE_H_DONE)
michael@0 30
michael@0 31 ifneq ($(findstring $(PLATFORM),dos windows os2),)
michael@0 32 OPEN_MODULE := @echo$(space)
michael@0 33 CLOSE_MODULE := >> $(subst /,$(SEP),$(FTMODULE_H))
michael@0 34 REMOVE_MODULE := @-$(DELETE) $(subst /,$(SEP),$(FTMODULE_H))
michael@0 35 else
michael@0 36 OPEN_MODULE := @echo "
michael@0 37 CLOSE_MODULE := " >> $(FTMODULE_H)
michael@0 38 REMOVE_MODULE := @-$(DELETE) $(FTMODULE_H)
michael@0 39 endif
michael@0 40
michael@0 41
michael@0 42 define FTMODULE_H_INIT
michael@0 43 $(REMOVE_MODULE)
michael@0 44 @-echo Generating modules list in $(FTMODULE_H)...
michael@0 45 $(OPEN_MODULE)/* This is a generated file. */$(CLOSE_MODULE)
michael@0 46 endef
michael@0 47
michael@0 48 # It is no mistake that the final closing parenthesis is on the
michael@0 49 # next line -- it produces proper newlines during the expansion
michael@0 50 # of `foreach'.
michael@0 51 #
michael@0 52 define FTMODULE_H_CREATE
michael@0 53 $(foreach COMMAND,$(FTMODULE_H_COMMANDS),$($(COMMAND))
michael@0 54 )
michael@0 55 endef
michael@0 56
michael@0 57 define FTMODULE_H_DONE
michael@0 58 $(OPEN_MODULE)/* EOF */$(CLOSE_MODULE)
michael@0 59 @echo done.
michael@0 60 endef
michael@0 61
michael@0 62
michael@0 63 # $(OPEN_DRIVER) & $(CLOSE_DRIVER) are used to specify a given font driver
michael@0 64 # in the `module.mk' rules file.
michael@0 65 #
michael@0 66 OPEN_DRIVER := $(OPEN_MODULE)FT_USE_MODULE(
michael@0 67 CLOSE_DRIVER := )$(CLOSE_MODULE)
michael@0 68
michael@0 69 ECHO_DRIVER := @echo "* module:$(space)
michael@0 70 ECHO_DRIVER_DESC := (
michael@0 71 ECHO_DRIVER_DONE := )"
michael@0 72
michael@0 73 # Each `module.mk' in the `src/*' subdirectories adds a variable with
michael@0 74 # commands to $(FTMODULE_H_COMMANDS). Note that we can't use SRC_DIR here.
michael@0 75 #
michael@0 76 -include $(patsubst %,$(TOP_DIR)/src/%/module.mk,$(MODULES))
michael@0 77
michael@0 78
michael@0 79 # EOF

mercurial