1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/modules/freetype2/builds/modules.mk Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,79 @@ 1.4 +# 1.5 +# FreeType 2 modules sub-Makefile 1.6 +# 1.7 + 1.8 + 1.9 +# Copyright 1996-2000, 2003, 2006, 2008, 2014 by 1.10 +# David Turner, Robert Wilhelm, and Werner Lemberg. 1.11 +# 1.12 +# This file is part of the FreeType project, and may only be used, modified, 1.13 +# and distributed under the terms of the FreeType project license, 1.14 +# LICENSE.TXT. By continuing to use, modify, or distribute this file you 1.15 +# indicate that you have read the license and understand and accept it 1.16 +# fully. 1.17 + 1.18 + 1.19 +# DO NOT INVOKE THIS MAKEFILE DIRECTLY! IT IS MEANT TO BE INCLUDED BY 1.20 +# OTHER MAKEFILES. 1.21 + 1.22 + 1.23 +# This file is in charge of handling the generation of the modules list 1.24 +# file. 1.25 + 1.26 + 1.27 +# Build the modules list. 1.28 +# 1.29 +$(FTMODULE_H): $(MODULES_CFG) 1.30 + $(FTMODULE_H_INIT) 1.31 + $(FTMODULE_H_CREATE) 1.32 + $(FTMODULE_H_DONE) 1.33 + 1.34 +ifneq ($(findstring $(PLATFORM),dos windows os2),) 1.35 + OPEN_MODULE := @echo$(space) 1.36 + CLOSE_MODULE := >> $(subst /,$(SEP),$(FTMODULE_H)) 1.37 + REMOVE_MODULE := @-$(DELETE) $(subst /,$(SEP),$(FTMODULE_H)) 1.38 +else 1.39 + OPEN_MODULE := @echo " 1.40 + CLOSE_MODULE := " >> $(FTMODULE_H) 1.41 + REMOVE_MODULE := @-$(DELETE) $(FTMODULE_H) 1.42 +endif 1.43 + 1.44 + 1.45 +define FTMODULE_H_INIT 1.46 +$(REMOVE_MODULE) 1.47 +@-echo Generating modules list in $(FTMODULE_H)... 1.48 +$(OPEN_MODULE)/* This is a generated file. */$(CLOSE_MODULE) 1.49 +endef 1.50 + 1.51 +# It is no mistake that the final closing parenthesis is on the 1.52 +# next line -- it produces proper newlines during the expansion 1.53 +# of `foreach'. 1.54 +# 1.55 +define FTMODULE_H_CREATE 1.56 +$(foreach COMMAND,$(FTMODULE_H_COMMANDS),$($(COMMAND)) 1.57 +) 1.58 +endef 1.59 + 1.60 +define FTMODULE_H_DONE 1.61 +$(OPEN_MODULE)/* EOF */$(CLOSE_MODULE) 1.62 +@echo done. 1.63 +endef 1.64 + 1.65 + 1.66 +# $(OPEN_DRIVER) & $(CLOSE_DRIVER) are used to specify a given font driver 1.67 +# in the `module.mk' rules file. 1.68 +# 1.69 +OPEN_DRIVER := $(OPEN_MODULE)FT_USE_MODULE( 1.70 +CLOSE_DRIVER := )$(CLOSE_MODULE) 1.71 + 1.72 +ECHO_DRIVER := @echo "* module:$(space) 1.73 +ECHO_DRIVER_DESC := ( 1.74 +ECHO_DRIVER_DONE := )" 1.75 + 1.76 +# Each `module.mk' in the `src/*' subdirectories adds a variable with 1.77 +# commands to $(FTMODULE_H_COMMANDS). Note that we can't use SRC_DIR here. 1.78 +# 1.79 +-include $(patsubst %,$(TOP_DIR)/src/%/module.mk,$(MODULES)) 1.80 + 1.81 + 1.82 +# EOF