2 # FreeType 2 PSaux driver configuration rules
6 # Copyright 1996-2000, 2002, 2003, 2006 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 # PSAUX driver directory
18 PSAUX_DIR
:= $(SRC_DIR
)/psaux
21 # compilation flags for the driver
23 PSAUX_COMPILE
:= $(FT_COMPILE
) $I$(subst /,$(COMPILER_SEP
),$(PSAUX_DIR
))
26 # PSAUX driver sources (i.e., C files)
28 PSAUX_DRV_SRC
:= $(PSAUX_DIR
)/psobjs.c \
29 $(PSAUX_DIR
)/t1decode.c \
30 $(PSAUX_DIR
)/t1cmap.c \
31 $(PSAUX_DIR
)/afmparse.c \
32 $(PSAUX_DIR
)/psconv.c \
33 $(PSAUX_DIR
)/psauxmod.c
35 # PSAUX driver headers
37 PSAUX_DRV_H
:= $(PSAUX_DRV_SRC
:%c
=%h
) \
38 $(PSAUX_DIR
)/psauxerr.h
41 # PSAUX driver object(s)
43 # PSAUX_DRV_OBJ_M is used during `multi' builds.
44 # PSAUX_DRV_OBJ_S is used during `single' builds.
46 PSAUX_DRV_OBJ_M
:= $(PSAUX_DRV_SRC
:$(PSAUX_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
47 PSAUX_DRV_OBJ_S
:= $(OBJ_DIR
)/psaux.
$O
49 # PSAUX driver source file for single build
51 PSAUX_DRV_SRC_S
:= $(PSAUX_DIR
)/psaux.c
54 # PSAUX driver - single object
56 $(PSAUX_DRV_OBJ_S
): $(PSAUX_DRV_SRC_S
) $(PSAUX_DRV_SRC
) \
57 $(FREETYPE_H
) $(PSAUX_DRV_H
)
58 $(PSAUX_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$(PSAUX_DRV_SRC_S
))
61 # PSAUX driver - multiple objects
63 $(OBJ_DIR
)/%.
$O: $(PSAUX_DIR
)/%.c
$(FREETYPE_H
) $(PSAUX_DRV_H
)
64 $(PSAUX_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
67 # update main driver object lists
69 DRV_OBJS_S
+= $(PSAUX_DRV_OBJ_S
)
70 DRV_OBJS_M
+= $(PSAUX_DRV_OBJ_M
)