summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParth Wazurkar <parthwazurkar@gmail.com>2018-07-27 01:45:24 +0530
committerParth Wazurkar <parthwazurkar@gmail.com>2018-12-20 23:26:21 +0530
commit72035f0025dfe8cf8331363dd165bc6bbc2964b6 (patch)
tree4da9112acd3ea03b1f00c380a6ef4ca875f1498b
parent46d2e1bd654f9985644eff7b8a406b6599c52e1c (diff)
downloadfreetype2-72035f0025dfe8cf8331363dd165bc6bbc2964b6.tar.gz
[tfm] Initialise makefiles.
-rw-r--r--src/tfm/Jamfile30
-rw-r--r--src/tfm/module.mk23
-rw-r--r--src/tfm/rules.mk71
3 files changed, 124 insertions, 0 deletions
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