2 # FreeType 2 auto-fitter module configuration rules
6 # Copyright 2003-2007, 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 # AUTOF driver directory
18 AUTOF_DIR
:= $(SRC_DIR
)/autofit
21 # compilation flags for the driver
23 AUTOF_COMPILE
:= $(FT_COMPILE
) $I$(subst /,$(COMPILER_SEP
),$(AUTOF_DIR
))
26 # AUTOF driver sources (i.e., C files)
28 AUTOF_DRV_SRC
:= $(AUTOF_DIR
)/afangles.c \
29 $(AUTOF_DIR
)/afblue.c \
30 $(AUTOF_DIR
)/afcjk.c \
31 $(AUTOF_DIR
)/afdummy.c \
32 $(AUTOF_DIR
)/afglobal.c \
33 $(AUTOF_DIR
)/afhints.c \
34 $(AUTOF_DIR
)/afindic.c \
35 $(AUTOF_DIR
)/aflatin.c \
36 $(AUTOF_DIR
)/afloader.c \
37 $(AUTOF_DIR
)/afmodule.c \
38 $(AUTOF_DIR
)/afpic.c \
41 # AUTOF driver headers
43 AUTOF_DRV_H
:= $(AUTOF_DRV_SRC
:%c
=%h
) \
44 $(AUTOF_DIR
)/aferrors.h \
45 $(AUTOF_DIR
)/afscript.h \
46 $(AUTOF_DIR
)/aftypes.h \
47 $(AUTOF_DIR
)/afwrtsys.h
50 # AUTOF driver object(s)
52 # AUTOF_DRV_OBJ_M is used during `multi' builds.
53 # AUTOF_DRV_OBJ_S is used during `single' builds.
55 AUTOF_DRV_OBJ_M
:= $(AUTOF_DRV_SRC
:$(AUTOF_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
56 AUTOF_DRV_OBJ_S
:= $(OBJ_DIR
)/autofit.
$O
58 # AUTOF driver source file for single build
60 AUTOF_DRV_SRC_S
:= $(AUTOF_DIR
)/autofit.c
63 # AUTOF driver - single object
65 $(AUTOF_DRV_OBJ_S
): $(AUTOF_DRV_SRC_S
) $(AUTOF_DRV_SRC
) \
66 $(FREETYPE_H
) $(AUTOF_DRV_H
)
67 $(AUTOF_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$(AUTOF_DRV_SRC_S
))
70 # AUTOF driver - multiple objects
72 $(OBJ_DIR
)/%.
$O: $(AUTOF_DIR
)/%.c
$(FREETYPE_H
) $(AUTOF_DRV_H
)
73 $(AUTOF_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
76 # update main driver object lists
78 DRV_OBJS_S
+= $(AUTOF_DRV_OBJ_S
)
79 DRV_OBJS_M
+= $(AUTOF_DRV_OBJ_M
)