2 # FreeType 2 TrueTypeGX/AAT validation driver configuration rules
6 # Copyright (C) 2004-2023 by
7 # suzuki toshiya, Masatake YAMATO, Red Hat K.K.,
8 # David Turner, Robert Wilhelm, and Werner Lemberg.
10 # This file is part of the FreeType project, and may only be used, modified,
11 # and distributed under the terms of the FreeType project license,
12 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
13 # indicate that you have read the license and understand and accept it
17 # GXV driver directory
19 GXV_DIR := $(SRC_DIR)/gxvalid
22 # compilation flags for the driver
24 GXV_COMPILE := $(CC) $(ANSIFLAGS) \
25 $I$(subst /,$(COMPILER_SEP),$(GXV_DIR)) \
30 # GXV driver sources (i.e., C files)
32 GXV_DRV_SRC := $(GXV_DIR)/gxvcommn.c \
33 $(GXV_DIR)/gxvfeat.c \
34 $(GXV_DIR)/gxvbsln.c \
35 $(GXV_DIR)/gxvtrak.c \
36 $(GXV_DIR)/gxvopbd.c \
37 $(GXV_DIR)/gxvprop.c \
38 $(GXV_DIR)/gxvjust.c \
39 $(GXV_DIR)/gxvmort.c \
40 $(GXV_DIR)/gxvmort0.c \
41 $(GXV_DIR)/gxvmort1.c \
42 $(GXV_DIR)/gxvmort2.c \
43 $(GXV_DIR)/gxvmort4.c \
44 $(GXV_DIR)/gxvmort5.c \
45 $(GXV_DIR)/gxvmorx.c \
46 $(GXV_DIR)/gxvmorx0.c \
47 $(GXV_DIR)/gxvmorx1.c \
48 $(GXV_DIR)/gxvmorx2.c \
49 $(GXV_DIR)/gxvmorx4.c \
50 $(GXV_DIR)/gxvmorx5.c \
51 $(GXV_DIR)/gxvlcar.c \
52 $(GXV_DIR)/gxvkern.c \
57 GXV_DRV_H := $(GXV_DIR)/gxvalid.h \
58 $(GXV_DIR)/gxverror.h \
59 $(GXV_DIR)/gxvcommn.h \
60 $(GXV_DIR)/gxvfeat.h \
62 $(GXV_DIR)/gxvmort.h \
66 # GXV driver object(s)
68 # GXV_DRV_OBJ_M is used during `multi' builds.
69 # GXV_DRV_OBJ_S is used during `single' builds.
71 GXV_DRV_OBJ_M := $(GXV_DRV_SRC:$(GXV_DIR)/%.c=$(OBJ_DIR)/%.$O)
72 GXV_DRV_OBJ_S := $(OBJ_DIR)/gxvalid.$O
74 # GXV driver source file for single build
76 GXV_DRV_SRC_S := $(GXV_DIR)/gxvalid.c
79 # GXV driver - single object
81 $(GXV_DRV_OBJ_S): $(GXV_DRV_SRC_S) $(GXV_DRV_SRC) \
82 $(FREETYPE_H) $(GXV_DRV_H)
83 $(GXV_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(GXV_DRV_SRC_S))
86 # GXV driver - multiple objects
88 $(OBJ_DIR)/%.$O: $(GXV_DIR)/%.c $(FREETYPE_H) $(GXV_DRV_H)
89 $(GXV_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
92 # update main driver object lists
94 DRV_OBJS_S += $(GXV_DRV_OBJ_S)
95 DRV_OBJS_M += $(GXV_DRV_OBJ_M)