2
# FreeType 2 CID driver configuration rules
6
# Copyright 1996-2000, 2001, 2003 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 := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CID_DIR))
24
# CID driver sources (i.e., C files)
26
CID_DRV_SRC := $(CID_DIR)/cidparse.c \
27
$(CID_DIR)/cidload.c \
28
$(CID_DIR)/cidriver.c \
29
$(CID_DIR)/cidgload.c \
34
CID_DRV_H := $(CID_DRV_SRC:%.c=%.h) \
35
$(CID_DIR)/cidtoken.h \
39
# CID driver object(s)
41
# CID_DRV_OBJ_M is used during `multi' builds
42
# CID_DRV_OBJ_S is used during `single' builds
44
CID_DRV_OBJ_M := $(CID_DRV_SRC:$(CID_DIR)/%.c=$(OBJ_DIR)/%.$O)
45
CID_DRV_OBJ_S := $(OBJ_DIR)/type1cid.$O
47
# CID driver source file for single build
49
CID_DRV_SRC_S := $(CID_DIR)/type1cid.c
52
# CID driver - single object
54
$(CID_DRV_OBJ_S): $(CID_DRV_SRC_S) $(CID_DRV_SRC) $(FREETYPE_H) $(CID_DRV_H)
55
$(CID_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CID_DRV_SRC_S))
58
# CID driver - multiple objects
60
$(OBJ_DIR)/%.$O: $(CID_DIR)/%.c $(FREETYPE_H) $(CID_DRV_H)
61
$(CID_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
64
# update main driver object lists
66
DRV_OBJS_S += $(CID_DRV_OBJ_S)
67
DRV_OBJS_M += $(CID_DRV_OBJ_M)