2 # FreeType 2 Type1 driver configuration rules
6 # Copyright (C) 1996-2020 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 # Type1 driver directory
18 T1_DIR := $(SRC_DIR)/type1
21 # compilation flags for the driver
23 T1_COMPILE := $(CC) $(ANSIFLAGS) \
24 $I$(subst /,$(COMPILER_SEP),$(T1_DIR)) \
29 # Type1 driver sources (i.e., C files)
31 T1_DRV_SRC := $(T1_DIR)/t1parse.c \
33 $(T1_DIR)/t1driver.c \
38 # Type1 driver headers
40 T1_DRV_H := $(T1_DRV_SRC:%.c=%.h) \
41 $(T1_DIR)/t1tokens.h \
45 # Type1 driver object(s)
47 # T1_DRV_OBJ_M is used during `multi' builds
48 # T1_DRV_OBJ_S is used during `single' builds
50 T1_DRV_OBJ_M := $(T1_DRV_SRC:$(T1_DIR)/%.c=$(OBJ_DIR)/%.$O)
51 T1_DRV_OBJ_S := $(OBJ_DIR)/type1.$O
53 # Type1 driver source file for single build
55 T1_DRV_SRC_S := $(T1_DIR)/type1.c
58 # Type1 driver - single object
60 $(T1_DRV_OBJ_S): $(T1_DRV_SRC_S) $(T1_DRV_SRC) $(FREETYPE_H) $(T1_DRV_H)
61 $(T1_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(T1_DRV_SRC_S))
64 # Type1 driver - multiple objects
66 $(OBJ_DIR)/%.$O: $(T1_DIR)/%.c $(FREETYPE_H) $(T1_DRV_H)
67 $(T1_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
70 # update main driver object lists
72 DRV_OBJS_S += $(T1_DRV_OBJ_S)
73 DRV_OBJS_M += $(T1_DRV_OBJ_M)