Merge 25584, 25588.
[reactos.git] / reactos / dll / 3rdparty / freetype / src / cache / rules.mk
1 #
2 # FreeType 2 Cache configuration rules
3 #
4
5
6 # Copyright 2000, 2001, 2003, 2004, 2006 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_DIR)/cache
19
20 # compilation flags for the driver
21 #
22 CACHE_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CACHE_DIR))
23
24
25 # Cache driver sources (i.e., C files)
26 #
27 CACHE_DRV_SRC := $(CACHE_DIR)/ftcbasic.c \
28 $(CACHE_DIR)/ftccache.c \
29 $(CACHE_DIR)/ftccmap.c \
30 $(CACHE_DIR)/ftcglyph.c \
31 $(CACHE_DIR)/ftcimage.c \
32 $(CACHE_DIR)/ftcmanag.c \
33 $(CACHE_DIR)/ftcmru.c \
34 $(CACHE_DIR)/ftcsbits.c
35
36 # Cache driver headers
37 #
38 CACHE_DRV_H := $(CACHE_DIR)/ftccback.h \
39 $(CACHE_DIR)/ftcerror.h \
40 $(CACHE_DIR)/ftcglyph.h \
41 $(CACHE_DIR)/ftcimage.h \
42 $(CACHE_DIR)/ftcmanag.h \
43 $(CACHE_DIR)/ftcmru.h
44
45
46 # Cache driver object(s)
47 #
48 # CACHE_DRV_OBJ_M is used during `multi' builds.
49 # CACHE_DRV_OBJ_S is used during `single' builds.
50 #
51 CACHE_DRV_OBJ_M := $(CACHE_DRV_SRC:$(CACHE_DIR)/%.c=$(OBJ_DIR)/%.$O)
52 CACHE_DRV_OBJ_S := $(OBJ_DIR)/ftcache.$O
53
54 # Cache driver source file for single build
55 #
56 CACHE_DRV_SRC_S := $(CACHE_DIR)/ftcache.c
57
58
59 # Cache driver - single object
60 #
61 $(CACHE_DRV_OBJ_S): $(CACHE_DRV_SRC_S) $(CACHE_DRV_SRC) \
62 $(FREETYPE_H) $(CACHE_DRV_H)
63 $(CACHE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CACHE_DRV_SRC_S))
64
65
66 # Cache driver - multiple objects
67 #
68 $(OBJ_DIR)/%.$O: $(CACHE_DIR)/%.c $(FREETYPE_H) $(CACHE_DRV_H)
69 $(CACHE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
70
71
72 # update main driver object lists
73 #
74 DRV_OBJS_S += $(CACHE_DRV_OBJ_S)
75 DRV_OBJS_M += $(CACHE_DRV_OBJ_M)
76
77
78 # EOF