1 # 2 # FreeType 2 PSaux driver configuration rules 3 # 4 5 6 # Copyright 1996-2018 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 # PSAUX driver directory 17 # 18 PSAUX_DIR := $(SRC_DIR)/psaux 19 20 21 # compilation flags for the driver 22 # 23 PSAUX_COMPILE := $(CC) $(ANSIFLAGS) \ 24 $I$(subst /,$(COMPILER_SEP),$(PSAUX_DIR)) \ 25 $(INCLUDE_FLAGS) \ 26 $(FT_CFLAGS) 27 28 29 # PSAUX driver sources (i.e., C files) 30 # 31 PSAUX_DRV_SRC := $(PSAUX_DIR)/psobjs.c \ 32 $(PSAUX_DIR)/t1decode.c \ 33 $(PSAUX_DIR)/t1cmap.c \ 34 $(PSAUX_DIR)/afmparse.c \ 35 $(PSAUX_DIR)/psconv.c \ 36 $(PSAUX_DIR)/psauxmod.c \ 37 $(PSAUX_DIR)/psarrst.c \ 38 $(PSAUX_DIR)/psblues.c \ 39 $(PSAUX_DIR)/pserror.c \ 40 $(PSAUX_DIR)/psfont.c \ 41 $(PSAUX_DIR)/psft.c \ 42 $(PSAUX_DIR)/pshints.c \ 43 $(PSAUX_DIR)/psintrp.c \ 44 $(PSAUX_DIR)/psread.c \ 45 $(PSAUX_DIR)/psstack.c \ 46 $(PSAUX_DIR)/cffdecode.c 47 48 # PSAUX driver headers 49 # 50 PSAUX_DRV_H := $(PSAUX_DRV_SRC:%c=%h) \ 51 $(PSAUX_DIR)/psauxerr.h \ 52 $(PSAUX_DIR)/psfixed.h \ 53 $(PSAUX_DIR)/psglue.h \ 54 $(PSAUX_DIR)/pstypes.h 55 56 57 # PSAUX driver object(s) 58 # 59 # PSAUX_DRV_OBJ_M is used during `multi' builds. 60 # PSAUX_DRV_OBJ_S is used during `single' builds. 61 # 62 PSAUX_DRV_OBJ_M := $(PSAUX_DRV_SRC:$(PSAUX_DIR)/%.c=$(OBJ_DIR)/%.$O) 63 PSAUX_DRV_OBJ_S := $(OBJ_DIR)/psaux.$O 64 65 # PSAUX driver source file for single build 66 # 67 PSAUX_DRV_SRC_S := $(PSAUX_DIR)/psaux.c 68 69 70 # PSAUX driver - single object 71 # 72 $(PSAUX_DRV_OBJ_S): $(PSAUX_DRV_SRC_S) $(PSAUX_DRV_SRC) \ 73 $(FREETYPE_H) $(PSAUX_DRV_H) 74 $(PSAUX_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PSAUX_DRV_SRC_S)) 75 76 77 # PSAUX driver - multiple objects 78 # 79 $(OBJ_DIR)/%.$O: $(PSAUX_DIR)/%.c $(FREETYPE_H) $(PSAUX_DRV_H) 80 $(PSAUX_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) 81 82 83 # update main driver object lists 84 # 85 DRV_OBJS_S += $(PSAUX_DRV_OBJ_S) 86 DRV_OBJS_M += $(PSAUX_DRV_OBJ_M) 87 88 89 # EOF 90