2 # FreeType 2 PSHinter driver configuration rules
6 # Copyright 2001-2016 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 # PSHINTER driver directory
18 PSHINTER_DIR := $(SRC_DIR)/pshinter
21 # compilation flags for the driver
23 PSHINTER_COMPILE := $(CC) $(ANSIFLAGS) \
24 $I$(subst /,$(COMPILER_SEP),$(PSHINTER_DIR)) \
29 # PSHINTER driver sources (i.e., C files)
31 PSHINTER_DRV_SRC := $(PSHINTER_DIR)/pshalgo.c \
32 $(PSHINTER_DIR)/pshglob.c \
33 $(PSHINTER_DIR)/pshmod.c \
34 $(PSHINTER_DIR)/pshpic.c \
35 $(PSHINTER_DIR)/pshrec.c
38 # PSHINTER driver headers
40 PSHINTER_DRV_H := $(PSHINTER_DRV_SRC:%c=%h) \
41 $(PSHINTER_DIR)/pshnterr.h
44 # PSHINTER driver object(s)
46 # PSHINTER_DRV_OBJ_M is used during `multi' builds.
47 # PSHINTER_DRV_OBJ_S is used during `single' builds.
49 PSHINTER_DRV_OBJ_M := $(PSHINTER_DRV_SRC:$(PSHINTER_DIR)/%.c=$(OBJ_DIR)/%.$O)
50 PSHINTER_DRV_OBJ_S := $(OBJ_DIR)/pshinter.$O
52 # PSHINTER driver source file for single build
54 PSHINTER_DRV_SRC_S := $(PSHINTER_DIR)/pshinter.c
57 # PSHINTER driver - single object
59 $(PSHINTER_DRV_OBJ_S): $(PSHINTER_DRV_SRC_S) $(PSHINTER_DRV_SRC) \
60 $(FREETYPE_H) $(PSHINTER_DRV_H)
61 $(PSHINTER_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PSHINTER_DRV_SRC_S))
64 # PSHINTER driver - multiple objects
66 $(OBJ_DIR)/%.$O: $(PSHINTER_DIR)/%.c $(FREETYPE_H) $(PSHINTER_DRV_H)
67 $(PSHINTER_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
70 # update main driver object lists
72 DRV_OBJS_S += $(PSHINTER_DRV_OBJ_S)
73 DRV_OBJS_M += $(PSHINTER_DRV_OBJ_M)