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

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

First import

File size: 1.6 KB
Line 
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#
18GZIP_DIR := $(SRC_DIR)/gzip
19
20
21# compilation flags for the driver
22#
23ifeq ($(SYSTEM_ZLIB),)
24  GZIP_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(GZIP_DIR))
25else
26  GZIP_COMPILE := $(FT_COMPILE)
27endif
28
29
30# gzip support sources (i.e., C files)
31#
32GZIP_DRV_SRC := $(GZIP_DIR)/ftgzip.c
33
34# gzip support headers
35#
36GZIP_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#
44ifeq ($(SYSTEM_ZLIB),)
45  GZIP_DRV_OBJ_M := $(GZIP_DRV_SRC:$(GZIP_DIR)/%.c=$(OBJ_DIR)/%.$O)
46else
47  GZIP_DRV_OBJ_M := $(OBJ_DIR)/ftgzip.$O
48endif
49GZIP_DRV_OBJ_S := $(OBJ_DIR)/ftgzip.$O
50
51# gzip support source file for single build
52#
53GZIP_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#
71DRV_OBJS_S += $(GZIP_DRV_OBJ_S)
72DRV_OBJS_M += $(GZIP_DRV_OBJ_M)
73
74
75# EOF
Note: See TracBrowser for help on using the repository browser.