update for HEAD-2003050101
[reactos.git] / lib / freetype / src / autohint / rules.mk
1 #
2 # FreeType 2 auto-hinter module configuration rules
3 #
4
5
6 # Copyright 2000, 2001 Catharon Productions Inc.
7 # Author: David Turner
8 #
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.
15 #
16 # Note that this license is compatible with the FreeType license.
17
18
19 # AUTO driver directory
20 #
21 AUTO_DIR  := $(SRC_)autohint
22 AUTO_DIR_ := $(AUTO_DIR)$(SEP)
23
24
25 # compilation flags for the driver
26 #
27 AUTO_COMPILE := $(FT_COMPILE) $I$(AUTO_DIR)
28
29
30 # AUTO driver sources (i.e., C files)
31 #
32 AUTO_DRV_SRC := $(AUTO_DIR_)ahangles.c  \
33                 $(AUTO_DIR_)ahglobal.c  \
34                 $(AUTO_DIR_)ahglyph.c   \
35                 $(AUTO_DIR_)ahhint.c    \
36                 $(AUTO_DIR_)ahmodule.c
37
38 # AUTO driver headers
39 #
40 AUTO_DRV_H := $(AUTO_DRV_SRC:%c=%h)  \
41               $(AUTO_DIR_)ahloader.h \
42               $(AUTO_DIR_)ahtypes.h \
43               $(AUTO_DIR_)aherrors.h
44
45
46 # AUTO driver object(s)
47 #
48 #   AUTO_DRV_OBJ_M is used during `multi' builds.
49 #   AUTO_DRV_OBJ_S is used during `single' builds.
50 #
51 AUTO_DRV_OBJ_M := $(AUTO_DRV_SRC:$(AUTO_DIR_)%.c=$(OBJ_)%.$O)
52 AUTO_DRV_OBJ_S := $(OBJ_)autohint.$O
53
54 # AUTO driver source file for single build
55 #
56 AUTO_DRV_SRC_S := $(AUTO_DIR_)autohint.c
57
58
59 # AUTO driver - single object
60 #
61 $(AUTO_DRV_OBJ_S): $(AUTO_DRV_SRC_S) $(AUTO_DRV_SRC) \
62                    $(FREETYPE_H) $(AUTO_DRV_H)
63         $(AUTO_COMPILE) $T$@ $(AUTO_DRV_SRC_S)
64
65
66 # AUTO driver - multiple objects
67 #
68 $(OBJ_)%.$O: $(AUTO_DIR_)%.c $(FREETYPE_H) $(AUTO_DRV_H)
69         $(AUTO_COMPILE) $T$@ $<
70
71
72 # update main driver object lists
73 #
74 DRV_OBJS_S += $(AUTO_DRV_OBJ_S)
75 DRV_OBJS_M += $(AUTO_DRV_OBJ_M)
76
77
78 # EOF