2 # FreeType 2 OpenType/CFF driver configuration rules
6 # Copyright 1996-2001, 2003, 2011, 2013 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
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
16 # OpenType driver directory
18 CFF_DIR := $(SRC_DIR)/cff
21 CFF_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CFF_DIR))
24 # CFF driver sources (i.e., C files)
26 CFF_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 \
33 $(CFF_DIR)/cf2arrst.c \
34 $(CFF_DIR)/cf2blues.c \
35 $(CFF_DIR)/cf2error.c \
36 $(CFF_DIR)/cf2font.c \
38 $(CFF_DIR)/cf2hints.c \
39 $(CFF_DIR)/cf2intrp.c \
40 $(CFF_DIR)/cf2read.c \
46 CFF_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 \
55 # CFF driver object(s)
57 # CFF_DRV_OBJ_M is used during `multi' builds
58 # CFF_DRV_OBJ_S is used during `single' builds
60 CFF_DRV_OBJ_M := $(CFF_DRV_SRC:$(CFF_DIR)/%.c=$(OBJ_DIR)/%.$O)
61 CFF_DRV_OBJ_S := $(OBJ_DIR)/cff.$O
63 # CFF driver source file for single build
65 CFF_DRV_SRC_S := $(CFF_DIR)/cff.c
68 # CFF driver - single object
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))
74 # CFF driver - multiple objects
76 $(OBJ_DIR)/%.$O: $(CFF_DIR)/%.c $(FREETYPE_H) $(CFF_DRV_H)
77 $(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
80 # update main driver object lists
82 DRV_OBJS_S += $(CFF_DRV_OBJ_S)
83 DRV_OBJS_M += $(CFF_DRV_OBJ_M)