1#
2# FreeType 2 Cache configuration rules
3#
4
5
6# Copyright 2000, 2001, 2003, 2004, 2006, 2008 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#
18CACHE_DIR   := $(SRC_DIR)/cache
19
20# compilation flags for the driver
21#
22CACHE_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CACHE_DIR))
23
24
25# Cache driver sources (i.e., C files)
26#
27CACHE_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#
38CACHE_DRV_H := $(CACHE_DIR)/ftccache.h \
39               $(CACHE_DIR)/ftccback.h \
40               $(CACHE_DIR)/ftcerror.h \
41               $(CACHE_DIR)/ftcglyph.h \
42               $(CACHE_DIR)/ftcimage.h \
43               $(CACHE_DIR)/ftcmanag.h \
44               $(CACHE_DIR)/ftcmru.h   \
45               $(CACHE_DIR)/ftcsbits.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#
53CACHE_DRV_OBJ_M := $(CACHE_DRV_SRC:$(CACHE_DIR)/%.c=$(OBJ_DIR)/%.$O)
54CACHE_DRV_OBJ_S := $(OBJ_DIR)/ftcache.$O
55
56# Cache driver source file for single build
57#
58CACHE_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$(subst /,$(COMPILER_SEP),$@ $(CACHE_DRV_SRC_S))
66
67
68# Cache driver - multiple objects
69#
70$(OBJ_DIR)/%.$O: $(CACHE_DIR)/%.c $(FREETYPE_H) $(CACHE_DRV_H)
71	$(CACHE_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
72
73
74# update main driver object lists
75#
76DRV_OBJS_S += $(CACHE_DRV_OBJ_S)
77DRV_OBJS_M += $(CACHE_DRV_OBJ_M)
78
79
80# EOF
81