2 # FreeType 2 PFR 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 # pfr driver directory
19 PFR_DIR_ := $(PFR_DIR)$(SEP)
22 # compilation flags for the driver
24 PFR_COMPILE := $(FT_COMPILE) $I$(PFR_DIR)
27 # pfr driver sources (i.e., C files)
29 PFR_DRV_SRC := $(PFR_DIR_)pfrload.c \
30 $(PFR_DIR_)pfrgload.c \
31 $(PFR_DIR_)pfrcmap.c \
32 $(PFR_DIR_)pfrdrivr.c \
37 PFR_DRV_H := $(PFR_DRV_SRC:%.c=%.h) \
41 # Pfr driver object(s)
43 # PFR_DRV_OBJ_M is used during `multi' builds
44 # PFR_DRV_OBJ_S is used during `single' builds
46 PFR_DRV_OBJ_M := $(PFR_DRV_SRC:$(PFR_DIR_)%.c=$(OBJ_)%.$O)
47 PFR_DRV_OBJ_S := $(OBJ_)pfr.$O
49 # pfr driver source file for single build
51 PFR_DRV_SRC_S := $(PFR_DIR_)pfr.c
54 # pfr driver - single object
56 $(PFR_DRV_OBJ_S): $(PFR_DRV_SRC_S) $(PFR_DRV_SRC) $(FREETYPE_H) $(PFR_DRV_H)
57 $(PFR_COMPILE) $T$@ $(PFR_DRV_SRC_S)
60 # pfr driver - multiple objects
62 $(OBJ_)%.$O: $(PFR_DIR_)%.c $(FREETYPE_H) $(PFR_DRV_H)
63 $(PFR_COMPILE) $T$@ $<
66 # update main driver object lists
68 DRV_OBJS_S += $(PFR_DRV_OBJ_S)
69 DRV_OBJS_M += $(PFR_DRV_OBJ_M)