2 # FreeType 2 GZip support configuration rules
6 # Copyright 2002, 2003 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 # gzip driver directory
18 GZIP_DIR
:= $(SRC_DIR
)/gzip
21 # compilation flags for the driver
23 ifeq ($(SYSTEM_ZLIB
),)
24 GZIP_COMPILE
:= $(FT_COMPILE
) $I$(subst /,$(COMPILER_SEP
),$(GZIP_DIR
))
26 GZIP_COMPILE
:= $(FT_COMPILE
)
30 # gzip support sources (i.e., C files)
32 GZIP_DRV_SRC
:= $(GZIP_DIR
)/ftgzip.c
34 # gzip support headers
39 # gzip driver object(s)
41 # GZIP_DRV_OBJ_M is used during `multi' builds
42 # GZIP_DRV_OBJ_S is used during `single' builds
44 ifeq ($(SYSTEM_ZLIB
),)
45 GZIP_DRV_OBJ_M
:= $(GZIP_DRV_SRC
:$(GZIP_DIR
)/%.c
=$(OBJ_DIR
)/%.
$O)
47 GZIP_DRV_OBJ_M
:= $(OBJ_DIR
)/ftgzip.
$O
49 GZIP_DRV_OBJ_S
:= $(OBJ_DIR
)/ftgzip.
$O
51 # gzip support source file for single build
53 GZIP_DRV_SRC_S
:= $(GZIP_DIR
)/ftgzip.c
56 # gzip support - single object
58 $(GZIP_DRV_OBJ_S
): $(GZIP_DRV_SRC_S
) $(GZIP_DRV_SRC
) $(FREETYPE_H
) \
60 $(GZIP_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$(GZIP_DRV_SRC_S
))
63 # gzip support - multiple objects
65 $(OBJ_DIR
)/%.
$O: $(GZIP_DIR
)/%.c
$(FREETYPE_H
) $(GZIP_DRV_H
)
66 $(GZIP_COMPILE
) $T$(subst /,$(COMPILER_SEP
),$@
$<)
69 # update main driver object lists
71 DRV_OBJS_S
+= $(GZIP_DRV_OBJ_S
)
72 DRV_OBJS_M
+= $(GZIP_DRV_OBJ_M
)