2 # FreeType 2 PFR driver configuration rules
6 # Copyright (C) 2002-2023 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 # pfr driver directory
18 PFR_DIR := $(SRC_DIR)/pfr
21 # compilation flags for the driver
23 PFR_COMPILE := $(CC) $(ANSIFLAGS) \
24 $I$(subst /,$(COMPILER_SEP),$(PFR_DIR)) \
29 # pfr driver sources (i.e., C files)
31 PFR_DRV_SRC := $(PFR_DIR)/pfrload.c \
32 $(PFR_DIR)/pfrgload.c \
33 $(PFR_DIR)/pfrcmap.c \
34 $(PFR_DIR)/pfrdrivr.c \
35 $(PFR_DIR)/pfrsbit.c \
40 PFR_DRV_H := $(PFR_DRV_SRC:%.c=%.h) \
41 $(PFR_DIR)/pfrerror.h \
45 # Pfr driver object(s)
47 # PFR_DRV_OBJ_M is used during `multi' builds
48 # PFR_DRV_OBJ_S is used during `single' builds
50 PFR_DRV_OBJ_M := $(PFR_DRV_SRC:$(PFR_DIR)/%.c=$(OBJ_DIR)/%.$O)
51 PFR_DRV_OBJ_S := $(OBJ_DIR)/pfr.$O
53 # pfr driver source file for single build
55 PFR_DRV_SRC_S := $(PFR_DIR)/pfr.c
58 # pfr driver - single object
60 $(PFR_DRV_OBJ_S): $(PFR_DRV_SRC_S) $(PFR_DRV_SRC) $(FREETYPE_H) $(PFR_DRV_H)
61 $(PFR_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PFR_DRV_SRC_S))
64 # pfr driver - multiple objects
66 $(OBJ_DIR)/%.$O: $(PFR_DIR)/%.c $(FREETYPE_H) $(PFR_DRV_H)
67 $(PFR_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
70 # update main driver object lists
72 DRV_OBJS_S += $(PFR_DRV_OBJ_S)
73 DRV_OBJS_M += $(PFR_DRV_OBJ_M)