2 # FreeType 2 Cache configuration rules
6 # Copyright 2000, 2001 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_
)cache
19 CACHE_DIR_
:= $(CACHE_DIR
)$(SEP
)
21 CACHE_H_DIR
:= $(PUBLIC_
)cache
22 CACHE_H_DIR_
:= $(CACHE_H_DIR
)$(SEP
)
24 # compilation flags for the driver
26 Cache_COMPILE
:= $(FT_COMPILE
) $I$(CACHE_DIR
)
29 # Cache driver sources (i.e., C files)
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
39 # Cache driver headers
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
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_
)%.
$O)
54 Cache_DRV_OBJ_S
:= $(OBJ_
)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$@
$(Cache_DRV_SRC_S
)
68 # Cache driver - multiple objects
70 $(OBJ_
)%.
$O: $(CACHE_DIR_
)%.c
$(FREETYPE_H
) $(Cache_DRV_H
)
71 $(Cache_COMPILE
) $T$@
$<
74 # update main driver object lists
76 DRV_OBJS_S
+= $(Cache_DRV_OBJ_S
)
77 DRV_OBJS_M
+= $(Cache_DRV_OBJ_M
)