2 # FreeType 2 PSHinter driver configuration rules
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_)pshinter
19 PSHINTER_DIR_ := $(PSHINTER_DIR)$(SEP)
22 # compilation flags for the driver
24 PSHINTER_COMPILE := $(FT_COMPILE) $I$(PSHINTER_DIR)
27 # PSHINTER driver sources (i.e., C files)
29 PSHINTER_DRV_SRC := $(PSHINTER_DIR_)pshrec.c \
30 $(PSHINTER_DIR_)pshglob.c \
31 $(PSHINTER_DIR_)pshmod.c \
32 $(PSHINTER_DIR_)pshalgo1.c \
33 $(PSHINTER_DIR_)pshalgo2.c \
34 $(PSHINTER_DIR_)pshalgo3.c
37 # PSHINTER driver headers
39 PSHINTER_DRV_H := $(PSHINTER_DRV_SRC:%c=%h)
42 # PSHINTER driver object(s)
44 # PSHINTER_DRV_OBJ_M is used during `multi' builds.
45 # PSHINTER_DRV_OBJ_S is used during `single' builds.
47 PSHINTER_DRV_OBJ_M := $(PSHINTER_DRV_SRC:$(PSHINTER_DIR_)%.c=$(OBJ_)%.$O)
48 PSHINTER_DRV_OBJ_S := $(OBJ_)pshinter.$O
50 # PSHINTER driver source file for single build
52 PSHINTER_DRV_SRC_S := $(PSHINTER_DIR_)pshinter.c
55 # PSHINTER driver - single object
57 $(PSHINTER_DRV_OBJ_S): $(PSHINTER_DRV_SRC_S) $(PSHINTER_DRV_SRC) \
58 $(FREETYPE_H) $(PSHINTER_DRV_H)
59 $(PSHINTER_COMPILE) $T$@ $(PSHINTER_DRV_SRC_S)
62 # PSHINTER driver - multiple objects
64 $(OBJ_)%.$O: $(PSHINTER_DIR_)%.c $(FREETYPE_H) $(PSHINTER_DRV_H)
65 $(PSHINTER_COMPILE) $T$@ $<
68 # update main driver object lists
70 DRV_OBJS_S += $(PSHINTER_DRV_OBJ_S)
71 DRV_OBJS_M += $(PSHINTER_DRV_OBJ_M)