This commit was manufactured by cvs2svn to create branch 'captive'.
[reactos.git] / lib / freetype / src / cache / rules.mk
1 #
2 # FreeType 2 Cache configuration rules
3 #
4
5
6 # Copyright 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 # Cache driver directory
17 #
18 CACHE_DIR  := $(SRC_)cache
19 CACHE_DIR_ := $(CACHE_DIR)$(SEP)
20
21 CACHE_H_DIR  := $(PUBLIC_)cache
22 CACHE_H_DIR_ := $(CACHE_H_DIR)$(SEP)
23
24 # compilation flags for the driver
25 #
26 Cache_COMPILE := $(FT_COMPILE) $I$(CACHE_DIR)
27
28
29 # Cache driver sources (i.e., C files)
30 #
31 Cache_DRV_SRC := $(CACHE_DIR_)ftlru.c    \
32                  $(CACHE_DIR_)ftcmanag.c \
33                  $(CACHE_DIR_)ftccache.c \
34                  $(CACHE_DIR_)ftcglyph.c \
35                  $(CACHE_DIR_)ftcsbits.c \
36                  $(CACHE_DIR_)ftcimage.c \
37                  $(CACHE_DIR_)ftccmap.c
38
39 # Cache driver headers
40 #
41 Cache_DRV_H := $(CACHE_H_DIR_)ftlru.h    \
42                $(CACHE_H_DIR_)ftcmanag.h \
43                $(CACHE_H_DIR_)ftcglyph.h \
44                $(CACHE_H_DIR_)ftcimage.h \
45                $(CACHE_DIR_)ftcerror.h
46
47
48 # Cache driver object(s)
49 #
50 #   Cache_DRV_OBJ_M is used during `multi' builds.
51 #   Cache_DRV_OBJ_S is used during `single' builds.
52 #
53 Cache_DRV_OBJ_M := $(Cache_DRV_SRC:$(CACHE_DIR_)%.c=$(OBJ_)%.$O)
54 Cache_DRV_OBJ_S := $(OBJ_)ftcache.$O
55
56 # Cache driver source file for single build
57 #
58 Cache_DRV_SRC_S := $(CACHE_DIR_)ftcache.c
59
60
61 # Cache driver - single object
62 #
63 $(Cache_DRV_OBJ_S): $(Cache_DRV_SRC_S) $(Cache_DRV_SRC) \
64                    $(FREETYPE_H) $(Cache_DRV_H)
65         $(Cache_COMPILE) $T$@ $(Cache_DRV_SRC_S)
66
67
68 # Cache driver - multiple objects
69 #
70 $(OBJ_)%.$O: $(CACHE_DIR_)%.c $(FREETYPE_H) $(Cache_DRV_H)
71         $(Cache_COMPILE) $T$@ $<
72
73
74 # update main driver object lists
75 #
76 DRV_OBJS_S += $(Cache_DRV_OBJ_S)
77 DRV_OBJS_M += $(Cache_DRV_OBJ_M)
78
79
80 # EOF