2 # FreeType 2 Type1 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 # Type1 driver directory
18 T1_DIR
:= $(SRC_DIR
)/type1
21 # compilation flags for the driver
23 T1_COMPILE
:= $(FT_COMPILE
) $I$(subst /,$(COMPILER_SEP
),$(T1_DIR
))
26 # Type1 driver sources (i.e., C files)
28 T1_DRV_SRC
:= $(T1_DIR
)/t1parse.c \
30 $(T1_DIR
)/t1driver.c \
35 # Type1 driver headers
37 T1_DRV_H
:= $(T1_DRV_SRC
:%.c
=%.h
) \
38 $(T1_DIR
)/t1tokens.h \
42 # Type1 driver object(s)
44 # T1_DRV_OBJ_M is used during `multi' builds
45 # T1_DRV_OBJ_S is used during `single' builds
47 T1_DRV_OBJ_M
:= $(T1_DRV_SRC
:$(T1_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
48 T1_DRV_OBJ_S
:= $(OBJ_DIR
)/type1.
$O
50 # Type1 driver source file for single build
52 T1_DRV_SRC_S
:= $(T1_DIR
)/type1.c
55 # Type1 driver - single object
57 $(T1_DRV_OBJ_S
): $(T1_DRV_SRC_S
) $(T1_DRV_SRC
) $(FREETYPE_H
) $(T1_DRV_H
)
58 $(T1_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$(T1_DRV_SRC_S
))
61 # Type1 driver - multiple objects
63 $(OBJ_DIR
)/%.
$O: $(T1_DIR
)/%.c
$(FREETYPE_H
) $(T1_DRV_H
)
64 $(T1_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
67 # update main driver object lists
69 DRV_OBJS_S
+= $(T1_DRV_OBJ_S
)
70 DRV_OBJS_M
+= $(T1_DRV_OBJ_M
)