2 # FreeType 2 CID driver configuration rules
6 # Copyright (C) 1996-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 # CID driver directory
18 CID_DIR := $(SRC_DIR)/cid
21 CID_COMPILE := $(CC) $(ANSIFLAGS) \
22 $I$(subst /,$(COMPILER_SEP),$(CID_DIR)) \
27 # CID driver sources (i.e., C files)
29 CID_DRV_SRC := $(CID_DIR)/cidparse.c \
30 $(CID_DIR)/cidload.c \
31 $(CID_DIR)/cidriver.c \
32 $(CID_DIR)/cidgload.c \
37 CID_DRV_H := $(CID_DRV_SRC:%.c=%.h) \
38 $(CID_DIR)/cidtoken.h \
42 # CID driver object(s)
44 # CID_DRV_OBJ_M is used during `multi' builds
45 # CID_DRV_OBJ_S is used during `single' builds
47 CID_DRV_OBJ_M := $(CID_DRV_SRC:$(CID_DIR)/%.c=$(OBJ_DIR)/%.$O)
48 CID_DRV_OBJ_S := $(OBJ_DIR)/type1cid.$O
50 # CID driver source file for single build
52 CID_DRV_SRC_S := $(CID_DIR)/type1cid.c
55 # CID driver - single object
57 $(CID_DRV_OBJ_S): $(CID_DRV_SRC_S) $(CID_DRV_SRC) $(FREETYPE_H) $(CID_DRV_H)
58 $(CID_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CID_DRV_SRC_S))
61 # CID driver - multiple objects
63 $(OBJ_DIR)/%.$O: $(CID_DIR)/%.c $(FREETYPE_H) $(CID_DRV_H)
64 $(CID_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
67 # update main driver object lists
69 DRV_OBJS_S += $(CID_DRV_OBJ_S)
70 DRV_OBJS_M += $(CID_DRV_OBJ_M)