1# 2# FreeType 2 CID driver configuration rules 3# 4 5 6# Copyright (C) 1996-2020 by 7# David Turner, Robert Wilhelm, and Werner Lemberg. 8# 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 13# fully. 14 15 16# CID driver directory 17# 18CID_DIR := $(SRC_DIR)/cid 19 20 21CID_COMPILE := $(CC) $(ANSIFLAGS) \ 22 $I$(subst /,$(COMPILER_SEP),$(CID_DIR)) \ 23 $(INCLUDE_FLAGS) \ 24 $(FT_CFLAGS) 25 26 27# CID driver sources (i.e., C files) 28# 29CID_DRV_SRC := $(CID_DIR)/cidparse.c \ 30 $(CID_DIR)/cidload.c \ 31 $(CID_DIR)/cidriver.c \ 32 $(CID_DIR)/cidgload.c \ 33 $(CID_DIR)/cidobjs.c 34 35# CID driver headers 36# 37CID_DRV_H := $(CID_DRV_SRC:%.c=%.h) \ 38 $(CID_DIR)/cidtoken.h \ 39 $(CID_DIR)/ciderrs.h 40 41 42# CID driver object(s) 43# 44# CID_DRV_OBJ_M is used during `multi' builds 45# CID_DRV_OBJ_S is used during `single' builds 46# 47CID_DRV_OBJ_M := $(CID_DRV_SRC:$(CID_DIR)/%.c=$(OBJ_DIR)/%.$O) 48CID_DRV_OBJ_S := $(OBJ_DIR)/type1cid.$O 49 50# CID driver source file for single build 51# 52CID_DRV_SRC_S := $(CID_DIR)/type1cid.c 53 54 55# CID driver - single object 56# 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)) 59 60 61# CID driver - multiple objects 62# 63$(OBJ_DIR)/%.$O: $(CID_DIR)/%.c $(FREETYPE_H) $(CID_DRV_H) 64 $(CID_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) 65 66 67# update main driver object lists 68# 69DRV_OBJS_S += $(CID_DRV_OBJ_S) 70DRV_OBJS_M += $(CID_DRV_OBJ_M) 71 72 73# EOF 74