* Sync up to trunk HEAD (r62502).
[reactos.git] / lib / 3rdparty / freetype / src / gzip / rules.mk
1 #
2 # FreeType 2 GZip support configuration rules
3 #
4
5
6 # Copyright 2002, 2003, 2013 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
31 #
32 # All source and header files get loaded by `ftgzip.c' only if SYTEM_ZLIB is
33 # not defined (regardless whether we have a `single' or a `multi' build).
34 # However, it doesn't harm if we add everything as a dependency
35 # unconditionally.
36 #
37 GZIP_DRV_SRCS := $(GZIP_DIR)/adler32.c \
38 $(GZIP_DIR)/infblock.c \
39 $(GZIP_DIR)/infblock.h \
40 $(GZIP_DIR)/infcodes.c \
41 $(GZIP_DIR)/infcodes.h \
42 $(GZIP_DIR)/inffixed.h \
43 $(GZIP_DIR)/inflate.c \
44 $(GZIP_DIR)/inftrees.c \
45 $(GZIP_DIR)/inftrees.h \
46 $(GZIP_DIR)/infutil.c \
47 $(GZIP_DIR)/infutil.h \
48 $(GZIP_DIR)/zconf.h \
49 $(GZIP_DIR)/zlib.h \
50 $(GZIP_DIR)/zutil.c \
51 $(GZIP_DIR)/zutil.h
52
53
54 # gzip driver object(s)
55 #
56 # GZIP_DRV_OBJ is used during both `single' and `multi' builds
57 #
58 GZIP_DRV_OBJ := $(OBJ_DIR)/ftgzip.$O
59
60
61 # gzip main source file
62 #
63 GZIP_DRV_SRC := $(GZIP_DIR)/ftgzip.c
64
65
66 # gzip support - object
67 #
68 $(GZIP_DRV_OBJ): $(GZIP_DRV_SRC) $(GZIP_DRV_SRCS) $(FREETYPE_H)
69 $(GZIP_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(GZIP_DRV_SRC))
70
71
72 # update main driver object lists
73 #
74 DRV_OBJS_S += $(GZIP_DRV_OBJ)
75 DRV_OBJS_M += $(GZIP_DRV_OBJ)
76
77
78 # EOF