update for HEAD-2003050101
[reactos.git] / lib / freetype / src / cff / rules.mk
1 #
2 # FreeType 2 OpenType/CFF driver configuration rules
3 #
4
5
6 # Copyright 1996-2000, 2001 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 # OpenType driver directory
17 #
18 CFF_DIR  := $(SRC_)cff
19 CFF_DIR_ := $(CFF_DIR)$(SEP)
20
21
22 CFF_COMPILE := $(FT_COMPILE) $I$(CFF_DIR)
23
24
25 # CFF driver sources (i.e., C files)
26 #
27 CFF_DRV_SRC := $(CFF_DIR_)cffobjs.c   \
28                $(CFF_DIR_)cffload.c   \
29                $(CFF_DIR_)cffgload.c  \
30                $(CFF_DIR_)cffparse.c  \
31                $(CFF_DIR_)cffcmap.c   \
32                $(CFF_DIR_)cffdrivr.c
33
34 # CFF driver headers
35 #
36 CFF_DRV_H := $(CFF_DRV_SRC:%.c=%.h) \
37              $(CFF_DIR_)cfftoken.h \
38              $(CFF_DIR_)cfferrs.h
39
40
41 # CFF driver object(s)
42 #
43 #   CFF_DRV_OBJ_M is used during `multi' builds
44 #   CFF_DRV_OBJ_S is used during `single' builds
45 #
46 CFF_DRV_OBJ_M := $(CFF_DRV_SRC:$(CFF_DIR_)%.c=$(OBJ_)%.$O)
47 CFF_DRV_OBJ_S := $(OBJ_)cff.$O
48
49 # CFF driver source file for single build
50 #
51 CFF_DRV_SRC_S := $(CFF_DIR_)cff.c
52
53
54 # CFF driver - single object
55 #
56 $(CFF_DRV_OBJ_S): $(CFF_DRV_SRC_S) $(CFF_DRV_SRC) $(FREETYPE_H) $(CFF_DRV_H)
57         $(CFF_COMPILE) $T$@ $(CFF_DRV_SRC_S)
58
59
60 # CFF driver - multiple objects
61 #
62 $(OBJ_)%.$O: $(CFF_DIR_)%.c $(FREETYPE_H) $(CFF_DRV_H)
63         $(CFF_COMPILE) $T$@ $<
64
65
66 # update main driver object lists
67 #
68 DRV_OBJS_S += $(CFF_DRV_OBJ_S)
69 DRV_OBJS_M += $(CFF_DRV_OBJ_M)
70
71 # EOF