source: trunk/poppler/freetype-2.1.10/src/cache/rules.mk @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 2.1 KB
Line 
1#
2# FreeType 2 Cache configuration rules
3#
4
5
6# Copyright 2000, 2001, 2003, 2004 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
19CACHE_H_DIR := $(PUBLIC_DIR)/cache
20
21# compilation flags for the driver
22#
23CACHE_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(CACHE_DIR))
24
25
26# Cache driver sources (i.e., C files)
27#
28CACHE_DRV_SRC := $(CACHE_DIR)/ftcmru.c   \
29                 $(CACHE_DIR)/ftcmanag.c \
30                 $(CACHE_DIR)/ftcbasic.c \
31                 $(CACHE_DIR)/ftccache.c \
32                 $(CACHE_DIR)/ftcglyph.c \
33                 $(CACHE_DIR)/ftcsbits.c \
34                 $(CACHE_DIR)/ftcimage.c \
35                 $(CACHE_DIR)/ftccmap.c
36
37# Cache driver headers
38#
39CACHE_DRV_H := $(CACHE_H_DIR)/ftcmru.h   \
40               $(CACHE_H_DIR)/ftcmanag.h \
41               $(CACHE_H_DIR)/ftcglyph.h \
42               $(CACHE_H_DIR)/ftcimage.h \
43               $(CACHE_H_DIR)/ftccmap.h  \
44               $(CACHE_DIR)/ftcerror.h   \
45               $(CACHE_DIR)/ftccback.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
Note: See TracBrowser for help on using the repository browser.