1# 2# FreeType 2 OpenType/CFF driver configuration rules 3# 4 5 6# Copyright 1996-2000, 2001, 2003 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# OpenType driver directory 17# 18CFF_DIR := $(SRC_DIR)/cff 19 20 21CFF_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CFF_DIR)) 22 23 24# CFF driver sources (i.e., C files) 25# 26CFF_DRV_SRC := $(CFF_DIR)/cffobjs.c \ 27 $(CFF_DIR)/cffload.c \ 28 $(CFF_DIR)/cffgload.c \ 29 $(CFF_DIR)/cffparse.c \ 30 $(CFF_DIR)/cffcmap.c \ 31 $(CFF_DIR)/cffdrivr.c 32 33# CFF driver headers 34# 35CFF_DRV_H := $(CFF_DRV_SRC:%.c=%.h) \ 36 $(CFF_DIR)/cfftoken.h \ 37 $(CFF_DIR)/cfftypes.h \ 38 $(CFF_DIR)/cfferrs.h 39 40 41# CFF driver object(s) 42# 43# CFF_DRV_OBJ_M is used during `multi' builds 44# CFF_DRV_OBJ_S is used during `single' builds 45# 46CFF_DRV_OBJ_M := $(CFF_DRV_SRC:$(CFF_DIR)/%.c=$(OBJ_DIR)/%.$O) 47CFF_DRV_OBJ_S := $(OBJ_DIR)/cff.$O 48 49# CFF driver source file for single build 50# 51CFF_DRV_SRC_S := $(CFF_DIR)/cff.c 52 53 54# CFF driver - single object 55# 56$(CFF_DRV_OBJ_S): $(CFF_DRV_SRC_S) $(CFF_DRV_SRC) $(FREETYPE_H) $(CFF_DRV_H) 57 $(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CFF_DRV_SRC_S)) 58 59 60# CFF driver - multiple objects 61# 62$(OBJ_DIR)/%.$O: $(CFF_DIR)/%.c $(FREETYPE_H) $(CFF_DRV_H) 63 $(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) 64 65 66# update main driver object lists 67# 68DRV_OBJS_S += $(CFF_DRV_OBJ_S) 69DRV_OBJS_M += $(CFF_DRV_OBJ_M) 70 71 72# EOF 73