2 # FreeType 2 Cache configuration rules
6 # Copyright 2000, 2001, 2003, 2004, 2006, 2008 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
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
)/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
48 # Cache driver object(s)
50 # CACHE_DRV_OBJ_M is used during `multi' builds.
51 # CACHE_DRV_OBJ_S is used during `single' builds.
53 CACHE_DRV_OBJ_M
:= $(CACHE_DRV_SRC
:$(CACHE_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
54 CACHE_DRV_OBJ_S
:= $(OBJ_DIR
)/ftcache.
$O
56 # Cache driver source file for single build
58 CACHE_DRV_SRC_S
:= $(CACHE_DIR
)/ftcache.c
61 # Cache driver - single object
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
))
68 # Cache driver - multiple objects
70 $(OBJ_DIR
)/%.
$O: $(CACHE_DIR
)/%.c
$(FREETYPE_H
) $(CACHE_DRV_H
)
71 $(CACHE_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
74 # update main driver object lists
76 DRV_OBJS_S
+= $(CACHE_DRV_OBJ_S
)
77 DRV_OBJS_M
+= $(CACHE_DRV_OBJ_M
)