1#
2# FreeType 2 OpenType/CFF driver configuration rules
3#
4
5
6# Copyright 1996-2001, 2003, 2011, 2013 by
7# David Turner, Robert Wilhelm, and Werner Lemberg.
8#
9# This file is part of the FreeType project, and may only be used, modified,
10# and distributed under the terms of the FreeType project license,
11# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
12# indicate that you have read the license and understand and accept it
13# fully.
14
15
16# OpenType driver directory
17#
18CFF_DIR := $(SRC_DIR)/cff
19
20
21CFF_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CFF_DIR))
22
23
24# CFF driver sources (i.e., C files)
25#
26CFF_DRV_SRC := $(CFF_DIR)/cffcmap.c  \
27               $(CFF_DIR)/cffdrivr.c \
28               $(CFF_DIR)/cffgload.c \
29               $(CFF_DIR)/cffload.c  \
30               $(CFF_DIR)/cffobjs.c  \
31               $(CFF_DIR)/cffparse.c \
32               $(CFF_DIR)/cffpic.c   \
33               $(CFF_DIR)/cf2arrst.c \
34               $(CFF_DIR)/cf2blues.c \
35               $(CFF_DIR)/cf2error.c \
36               $(CFF_DIR)/cf2font.c  \
37               $(CFF_DIR)/cf2ft.c    \
38               $(CFF_DIR)/cf2hints.c \
39               $(CFF_DIR)/cf2intrp.c \
40               $(CFF_DIR)/cf2read.c  \
41               $(CFF_DIR)/cf2stack.c
42
43
44# CFF driver headers
45#
46CFF_DRV_H := $(CFF_DRV_SRC:%.c=%.h) \
47             $(CFF_DIR)/cfferrs.h   \
48             $(CFF_DIR)/cfftoken.h  \
49             $(CFF_DIR)/cfftypes.h  \
50             $(CFF_DIR)/cf2fixed.h  \
51             $(CFF_DIR)/cf2glue.h   \
52             $(CFF_DIR)/cf2types.h
53
54
55# CFF driver object(s)
56#
57#   CFF_DRV_OBJ_M is used during `multi' builds
58#   CFF_DRV_OBJ_S is used during `single' builds
59#
60CFF_DRV_OBJ_M := $(CFF_DRV_SRC:$(CFF_DIR)/%.c=$(OBJ_DIR)/%.$O)
61CFF_DRV_OBJ_S := $(OBJ_DIR)/cff.$O
62
63# CFF driver source file for single build
64#
65CFF_DRV_SRC_S := $(CFF_DIR)/cff.c
66
67
68# CFF driver - single object
69#
70$(CFF_DRV_OBJ_S): $(CFF_DRV_SRC_S) $(CFF_DRV_SRC) $(FREETYPE_H) $(CFF_DRV_H)
71	$(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CFF_DRV_SRC_S))
72
73
74# CFF driver - multiple objects
75#
76$(OBJ_DIR)/%.$O: $(CFF_DIR)/%.c $(FREETYPE_H) $(CFF_DRV_H)
77	$(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
78
79
80# update main driver object lists
81#
82DRV_OBJS_S += $(CFF_DRV_OBJ_S)
83DRV_OBJS_M += $(CFF_DRV_OBJ_M)
84
85
86# EOF
87