2 # FreeType 2 OpenType/CFF driver configuration rules
6 # Copyright 1996-2000, 2001, 2003 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
)/cffobjs.c \
27 $(CFF_DIR
)/cffload.c \
28 $(CFF_DIR
)/cffgload.c \
29 $(CFF_DIR
)/cffparse.c \
30 $(CFF_DIR
)/cffcmap.c \
35 CFF_DRV_H
:= $(CFF_DRV_SRC
:%.c
=%.h
) \
36 $(CFF_DIR
)/cfftoken.h \
37 $(CFF_DIR
)/cfftypes.h \
41 # CFF driver object(s)
43 # CFF_DRV_OBJ_M is used during `multi' builds
44 # CFF_DRV_OBJ_S is used during `single' builds
46 CFF_DRV_OBJ_M
:= $(CFF_DRV_SRC
:$(CFF_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
47 CFF_DRV_OBJ_S
:= $(OBJ_DIR
)/cff.
$O
49 # CFF driver source file for single build
51 CFF_DRV_SRC_S
:= $(CFF_DIR
)/cff.c
54 # CFF driver - single object
56 $(CFF_DRV_OBJ_S
): $(CFF_DRV_SRC_S
) $(CFF_DRV_SRC
) $(FREETYPE_H
) $(CFF_DRV_H
)
57 $(CFF_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$(CFF_DRV_SRC_S
))
60 # CFF driver - multiple objects
62 $(OBJ_DIR
)/%.
$O: $(CFF_DIR
)/%.c
$(FREETYPE_H
) $(CFF_DRV_H
)
63 $(CFF_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
66 # update main driver object lists
68 DRV_OBJS_S
+= $(CFF_DRV_OBJ_S
)
69 DRV_OBJS_M
+= $(CFF_DRV_OBJ_M
)