rules.mk (2041B)
1 # 2 # FreeType 2 PSHinter driver configuration rules 3 # 4 5 6 # Copyright (C) 2001-2025 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 # PSHINTER driver directory 17 # 18 PSHINTER_DIR := $(SRC_DIR)/pshinter 19 20 21 # compilation flags for the driver 22 # 23 PSHINTER_COMPILE := $(CC) $(ANSIFLAGS) \ 24 $I$(subst /,$(COMPILER_SEP),$(PSHINTER_DIR)) \ 25 $(INCLUDE_FLAGS) \ 26 $(FT_CFLAGS) 27 28 29 # PSHINTER driver sources (i.e., C files) 30 # 31 PSHINTER_DRV_SRC := $(PSHINTER_DIR)/pshalgo.c \ 32 $(PSHINTER_DIR)/pshglob.c \ 33 $(PSHINTER_DIR)/pshmod.c \ 34 $(PSHINTER_DIR)/pshrec.c 35 36 37 # PSHINTER driver headers 38 # 39 PSHINTER_DRV_H := $(PSHINTER_DRV_SRC:%c=%h) \ 40 $(PSHINTER_DIR)/pshnterr.h 41 42 43 # PSHINTER driver object(s) 44 # 45 # PSHINTER_DRV_OBJ_M is used during `multi' builds. 46 # PSHINTER_DRV_OBJ_S is used during `single' builds. 47 # 48 PSHINTER_DRV_OBJ_M := $(PSHINTER_DRV_SRC:$(PSHINTER_DIR)/%.c=$(OBJ_DIR)/%.$O) 49 PSHINTER_DRV_OBJ_S := $(OBJ_DIR)/pshinter.$O 50 51 # PSHINTER driver source file for single build 52 # 53 PSHINTER_DRV_SRC_S := $(PSHINTER_DIR)/pshinter.c 54 55 56 # PSHINTER driver - single object 57 # 58 $(PSHINTER_DRV_OBJ_S): $(PSHINTER_DRV_SRC_S) $(PSHINTER_DRV_SRC) \ 59 $(FREETYPE_H) $(PSHINTER_DRV_H) 60 $(PSHINTER_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PSHINTER_DRV_SRC_S)) 61 62 63 # PSHINTER driver - multiple objects 64 # 65 $(OBJ_DIR)/%.$O: $(PSHINTER_DIR)/%.c $(FREETYPE_H) $(PSHINTER_DRV_H) 66 $(PSHINTER_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) 67 68 69 # update main driver object lists 70 # 71 DRV_OBJS_S += $(PSHINTER_DRV_OBJ_S) 72 DRV_OBJS_M += $(PSHINTER_DRV_OBJ_M) 73 74 75 # EOF