freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] parthw-cleaned aef6069 5/6: [tfm] Initialise makefiles.


From: Parth Wazurkar
Subject: [freetype2] parthw-cleaned aef6069 5/6: [tfm] Initialise makefiles.
Date: Thu, 26 Jul 2018 16:16:33 -0400 (EDT)

branch: parthw-cleaned
commit aef6069cc3dc8184bf346184c75bf545329fda46
Author: Parth Wazurkar <address@hidden>
Commit: Parth Wazurkar <address@hidden>

    [tfm] Initialise makefiles.
---
 src/tfm/Jamfile   | 30 +++++++++++++++++++++++
 src/tfm/module.mk | 23 ++++++++++++++++++
 src/tfm/rules.mk  | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 124 insertions(+)

diff --git a/src/tfm/Jamfile b/src/tfm/Jamfile
new file mode 100644
index 0000000..16df704
--- /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 0000000..85467ca
--- /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 0000000..394a2a0
--- /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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]