Initialize Tizen 2.3
[framework/graphics/freetype.git] / src / gzip / rules.mk
1 #
2 # FreeType 2 GZip support configuration rules
3 #
4
5
6 # Copyright 2002, 2003 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 # gzip driver directory
17 #
18 GZIP_DIR := $(SRC_DIR)/gzip
19
20
21 # compilation flags for the driver
22 #
23 ifeq ($(SYSTEM_ZLIB),)
24   GZIP_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(GZIP_DIR))
25 else
26   GZIP_COMPILE := $(FT_COMPILE)
27 endif
28
29
30 # gzip support sources (i.e., C files)
31 #
32 GZIP_DRV_SRC := $(GZIP_DIR)/ftgzip.c
33
34 # gzip support headers
35 #
36 GZIP_DRV_H :=
37
38
39 # gzip driver object(s)
40 #
41 #   GZIP_DRV_OBJ_M is used during `multi' builds
42 #   GZIP_DRV_OBJ_S is used during `single' builds
43 #
44 ifeq ($(SYSTEM_ZLIB),)
45   GZIP_DRV_OBJ_M := $(GZIP_DRV_SRC:$(GZIP_DIR)/%.c=$(OBJ_DIR)/%.$O)
46 else
47   GZIP_DRV_OBJ_M := $(OBJ_DIR)/ftgzip.$O
48 endif
49 GZIP_DRV_OBJ_S := $(OBJ_DIR)/ftgzip.$O
50
51 # gzip support source file for single build
52 #
53 GZIP_DRV_SRC_S := $(GZIP_DIR)/ftgzip.c
54
55
56 # gzip support - single object
57 #
58 $(GZIP_DRV_OBJ_S): $(GZIP_DRV_SRC_S) $(GZIP_DRV_SRC) $(FREETYPE_H) \
59                    $(GZIP_DRV_H)
60         $(GZIP_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(GZIP_DRV_SRC_S))
61
62
63 # gzip support - multiple objects
64 #
65 $(OBJ_DIR)/%.$O: $(GZIP_DIR)/%.c $(FREETYPE_H) $(GZIP_DRV_H)
66         $(GZIP_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
67
68
69 # update main driver object lists
70 #
71 DRV_OBJS_S += $(GZIP_DRV_OBJ_S)
72 DRV_OBJS_M += $(GZIP_DRV_OBJ_M)
73
74
75 # EOF