Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / modules / freetype2 / src / cache / rules.mk
blob457dec848df476e0b396b4dba48bf4519ac45eb7
2 # FreeType 2 Cache configuration rules
6 # Copyright 2000, 2001, 2003, 2004, 2006 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
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.
16 # Cache driver directory
18 CACHE_DIR := $(SRC_DIR)/cache
20 # compilation flags for the driver
22 CACHE_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CACHE_DIR))
25 # Cache driver sources (i.e., C files)
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
36 # Cache driver headers
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
46 # Cache driver object(s)
48 # CACHE_DRV_OBJ_M is used during `multi' builds.
49 # CACHE_DRV_OBJ_S is used during `single' builds.
51 CACHE_DRV_OBJ_M := $(CACHE_DRV_SRC:$(CACHE_DIR)/%.c=$(OBJ_DIR)/%.$O)
52 CACHE_DRV_OBJ_S := $(OBJ_DIR)/ftcache.$O
54 # Cache driver source file for single build
56 CACHE_DRV_SRC_S := $(CACHE_DIR)/ftcache.c
59 # Cache driver - single object
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))
66 # Cache driver - multiple objects
68 $(OBJ_DIR)/%.$O: $(CACHE_DIR)/%.c $(FREETYPE_H) $(CACHE_DRV_H)
69 $(CACHE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
72 # update main driver object lists
74 DRV_OBJS_S += $(CACHE_DRV_OBJ_S)
75 DRV_OBJS_M += $(CACHE_DRV_OBJ_M)
78 # EOF