2 # FreeType 2 PSHinter driver configuration rules
6 # Copyright 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 # PSHINTER driver directory
18 PSHINTER_DIR
:= $(SRC_DIR
)/pshinter
21 # compilation flags for the driver
23 PSHINTER_COMPILE
:= $(FT_COMPILE
) $I$(subst /,$(COMPILER_SEP
),$(PSHINTER_DIR
))
26 # PSHINTER driver sources (i.e., C files)
28 PSHINTER_DRV_SRC
:= $(PSHINTER_DIR
)/pshrec.c \
29 $(PSHINTER_DIR
)/pshglob.c \
30 $(PSHINTER_DIR
)/pshmod.c \
31 $(PSHINTER_DIR
)/pshalgo.c
34 # PSHINTER driver headers
36 PSHINTER_DRV_H
:= $(PSHINTER_DRV_SRC
:%c
=%h
) \
37 $(PSHINTER_DIR
)/pshnterr.h
40 # PSHINTER driver object(s)
42 # PSHINTER_DRV_OBJ_M is used during `multi' builds.
43 # PSHINTER_DRV_OBJ_S is used during `single' builds.
45 PSHINTER_DRV_OBJ_M
:= $(PSHINTER_DRV_SRC
:$(PSHINTER_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
46 PSHINTER_DRV_OBJ_S
:= $(OBJ_DIR
)/pshinter.
$O
48 # PSHINTER driver source file for single build
50 PSHINTER_DRV_SRC_S
:= $(PSHINTER_DIR
)/pshinter.c
53 # PSHINTER driver - single object
55 $(PSHINTER_DRV_OBJ_S
): $(PSHINTER_DRV_SRC_S
) $(PSHINTER_DRV_SRC
) \
56 $(FREETYPE_H
) $(PSHINTER_DRV_H
)
57 $(PSHINTER_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$(PSHINTER_DRV_SRC_S
))
60 # PSHINTER driver - multiple objects
62 $(OBJ_DIR
)/%.
$O: $(PSHINTER_DIR
)/%.c
$(FREETYPE_H
) $(PSHINTER_DRV_H
)
63 $(PSHINTER_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
66 # update main driver object lists
68 DRV_OBJS_S
+= $(PSHINTER_DRV_OBJ_S
)
69 DRV_OBJS_M
+= $(PSHINTER_DRV_OBJ_M
)