2 # FreeType 2 SFNT driver configuration rules
6 # Copyright 1996-2000, 2002, 2003, 2004, 2005, 2006, 2007, 2009 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 # SFNT driver directory
18 SFNT_DIR
:= $(SRC_DIR
)/sfnt
21 # compilation flags for the driver
23 SFNT_COMPILE
:= $(FT_COMPILE
) $I$(subst /,$(COMPILER_SEP
),$(SFNT_DIR
))
26 # SFNT driver sources (i.e., C files)
28 SFNT_DRV_SRC
:= $(SFNT_DIR
)/ttload.c \
30 $(SFNT_DIR
)/ttcmap.c \
31 $(SFNT_DIR
)/ttsbit.c \
32 $(SFNT_DIR
)/ttpost.c \
33 $(SFNT_DIR
)/ttkern.c \
35 $(SFNT_DIR
)/sfobjs.c \
36 $(SFNT_DIR
)/sfdriver.c
40 # Note that ttsbit0.c gets #included by ttsbit.c.
42 SFNT_DRV_H
:= $(SFNT_DRV_SRC
:%c
=%h
) \
43 $(SFNT_DIR
)/sferrors.h \
47 # SFNT driver object(s)
49 # SFNT_DRV_OBJ_M is used during `multi' builds.
50 # SFNT_DRV_OBJ_S is used during `single' builds.
52 SFNT_DRV_OBJ_M
:= $(SFNT_DRV_SRC
:$(SFNT_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
53 SFNT_DRV_OBJ_S
:= $(OBJ_DIR
)/sfnt.
$O
55 # SFNT driver source file for single build
57 SFNT_DRV_SRC_S
:= $(SFNT_DIR
)/sfnt.c
60 # SFNT driver - single object
62 $(SFNT_DRV_OBJ_S
): $(SFNT_DRV_SRC_S
) $(SFNT_DRV_SRC
) \
63 $(FREETYPE_H
) $(SFNT_DRV_H
)
64 $(SFNT_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$(SFNT_DRV_SRC_S
))
67 # SFNT driver - multiple objects
69 $(OBJ_DIR
)/%.
$O: $(SFNT_DIR
)/%.c
$(FREETYPE_H
) $(SFNT_DRV_H
)
70 $(SFNT_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
73 # update main driver object lists
75 DRV_OBJS_S
+= $(SFNT_DRV_OBJ_S
)
76 DRV_OBJS_M
+= $(SFNT_DRV_OBJ_M
)