From 72035f0025dfe8cf8331363dd165bc6bbc2964b6 Mon Sep 17 00:00:00 2001 From: Parth Wazurkar Date: Fri, 27 Jul 2018 01:45:24 +0530 Subject: [PATCH] [tfm] Initialise makefiles. --- src/tfm/Jamfile | 30 ++++++++++++++++++++ src/tfm/module.mk | 23 +++++++++++++++ src/tfm/rules.mk | 71 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 src/tfm/Jamfile create mode 100644 src/tfm/module.mk create mode 100644 src/tfm/rules.mk diff --git a/src/tfm/Jamfile b/src/tfm/Jamfile new file mode 100644 index 000000000..16df7049a --- /dev/null +++ b/src/tfm/Jamfile @@ -0,0 +1,30 @@ +# FreeType 2 src/tfm Jamfile +# +# Copyright 2001-2018 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. + +SubDir FT2_TOP $(FT2_SRC_DIR) tfm ; + +{ + local _sources ; + + if $(FT2_MULTI) + { + _sources = tfmmod + ; + } + else + { + _sources = tfm ; + } + + Library $(FT2_LIB) : $(_sources).c ; +} + +# end of src/tfm Jamfile diff --git a/src/tfm/module.mk b/src/tfm/module.mk new file mode 100644 index 000000000..85467ca94 --- /dev/null +++ b/src/tfm/module.mk @@ -0,0 +1,23 @@ +# +# FreeType 2 TFM module definition +# + + +# Copyright 1996-2018 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. + + +FTMODULE_H_COMMANDS += TFM_MODULE + +define TFM_MODULE +$(OPEN_DRIVER) FT_Module_Class, tfm_module_class $(CLOSE_DRIVER) +$(ECHO_DRIVER)tfm $(ECHO_DRIVER_DESC)TFM helper module$(ECHO_DRIVER_DONE) +endef + +# EOF diff --git a/src/tfm/rules.mk b/src/tfm/rules.mk new file mode 100644 index 000000000..394a2a04f --- /dev/null +++ b/src/tfm/rules.mk @@ -0,0 +1,71 @@ +# +# FreeType 2 TFM driver configuration rules +# + + +# Copyright 1996-2018 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. + + +# TFM driver directory +# +TFM_DIR := $(SRC_DIR)/tfm + + +# compilation flags for the driver +# +TFM_COMPILE := $(CC) $(ANSIFLAGS) \ + $I$(subst /,$(COMPILER_SEP),$(TFM_DIR)) \ + $(INCLUDE_FLAGS) \ + $(FT_CFLAGS) + + +# TFM driver sources (i.e., C files) +# +TFM_DRV_SRC := $(TFM_DIR)/tfmmod.c \ + +# TFM driver headers +# +TFM_DRV_H := $(TFM_DRV_SRC:%c=%h) \ + $(TFM_DIR)/tfmerr.h \ + + +# TFM driver object(s) +# +# TFM_DRV_OBJ_M is used during `multi' builds. +# TFM_DRV_OBJ_S is used during `single' builds. +# +TFM_DRV_OBJ_M := $(TFM_DRV_SRC:$(TFM_DIR)/%.c=$(OBJ_DIR)/%.$O) +TFM_DRV_OBJ_S := $(OBJ_DIR)/tfm.$O + +# TFM driver source file for single build +# +TFM_DRV_SRC_S := $(TFM_DIR)/tfm.c + + +# TFM driver - single object +# +$(TFM_DRV_OBJ_S): $(TFM_DRV_SRC_S) $(TFM_DRV_SRC) \ + $(FREETYPE_H) $(TFM_DRV_H) + $(TFM_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(TFM_DRV_SRC_S)) + + +# TFM driver - multiple objects +# +$(OBJ_DIR)/%.$O: $(TFM_DIR)/%.c $(FREETYPE_H) $(TFM_DRV_H) + $(TFM_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) + + +# update main driver object lists +# +DRV_OBJS_S += $(TFM_DRV_OBJ_S) +DRV_OBJS_M += $(TFM_DRV_OBJ_M) + + +# EOF