2
# FreeType 2 auto-hinter module configuration rules
6
# Copyright 2000, 2001, 2002, 2003 Catharon Productions Inc.
9
# This file is part of the Catharon Typography Project and shall only
10
# be used, modified, and distributed under the terms of the Catharon
11
# Open Source License that should come with this file under the name
12
# `CatharonLicense.txt'. By continuing to use, modify, or distribute
13
# this file you indicate that you have read the license and
14
# understand and accept it fully.
16
# Note that this license is compatible with the FreeType license.
19
# AUTO driver directory
21
AUTO_DIR := $(SRC_DIR)/autohint
24
# compilation flags for the driver
26
AUTO_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(AUTO_DIR))
29
# AUTO driver sources (i.e., C files)
31
AUTO_DRV_SRC := $(AUTO_DIR)/ahangles.c \
32
$(AUTO_DIR)/ahglobal.c \
33
$(AUTO_DIR)/ahglyph.c \
34
$(AUTO_DIR)/ahhint.c \
35
$(AUTO_DIR)/ahmodule.c
39
AUTO_DRV_H := $(AUTO_DRV_SRC:%c=%h) \
40
$(AUTO_DIR)/ahloader.h \
41
$(AUTO_DIR)/ahtypes.h \
42
$(AUTO_DIR)/aherrors.h
45
# AUTO driver object(s)
47
# AUTO_DRV_OBJ_M is used during `multi' builds.
48
# AUTO_DRV_OBJ_S is used during `single' builds.
50
AUTO_DRV_OBJ_M := $(AUTO_DRV_SRC:$(AUTO_DIR)/%.c=$(OBJ_DIR)/%.$O)
51
AUTO_DRV_OBJ_S := $(OBJ_DIR)/autohint.$O
53
# AUTO driver source file for single build
55
AUTO_DRV_SRC_S := $(AUTO_DIR)/autohint.c
58
# AUTO driver - single object
60
$(AUTO_DRV_OBJ_S): $(AUTO_DRV_SRC_S) $(AUTO_DRV_SRC) \
61
$(FREETYPE_H) $(AUTO_DRV_H)
62
$(AUTO_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(AUTO_DRV_SRC_S))
65
# AUTO driver - multiple objects
67
$(OBJ_DIR)/%.$O: $(AUTO_DIR)/%.c $(FREETYPE_H) $(AUTO_DRV_H)
68
$(AUTO_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
71
# update main driver object lists
73
DRV_OBJS_S += $(AUTO_DRV_OBJ_S)
74
DRV_OBJS_M += $(AUTO_DRV_OBJ_M)