2 # FreeType 2 BZIP2 support configuration rules
8 # Based on src/lzw/rules.mk, Copyright 2004-2006 by
11 # This file is part of the FreeType project, and may only be used, modified,
12 # and distributed under the terms of the FreeType project license,
13 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
14 # indicate that you have read the license and understand and accept it
18 # BZIP2 driver directory
20 BZIP2_DIR := $(SRC_DIR)/bzip2
23 # compilation flags for the driver
25 BZIP2_COMPILE := $(FT_COMPILE)
28 # BZIP2 support sources (i.e., C files)
30 BZIP2_DRV_SRC := $(BZIP2_DIR)/ftbzip2.c
32 # BZIP2 driver object(s)
34 # BZIP2_DRV_OBJ_M is used during `multi' builds
35 # BZIP2_DRV_OBJ_S is used during `single' builds
37 BZIP2_DRV_OBJ_M := $(OBJ_DIR)/ftbzip2.$O
38 BZIP2_DRV_OBJ_S := $(OBJ_DIR)/ftbzip2.$O
40 # BZIP2 support source file for single build
42 BZIP2_DRV_SRC_S := $(BZIP2_DIR)/ftbzip2.c
45 # BZIP2 support - single object
47 $(BZIP2_DRV_OBJ_S): $(BZIP2_DRV_SRC_S) $(BZIP2_DRV_SRC) $(FREETYPE_H) $(BZIP2_DRV_H)
48 $(BZIP2_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(BZIP2_DRV_SRC_S))
51 # BZIP2 support - multiple objects
53 $(OBJ_DIR)/%.$O: $(BZIP2_DIR)/%.c $(FREETYPE_H) $(BZIP2_DRV_H)
54 $(BZIP2_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
57 # update main driver object lists
59 DRV_OBJS_S += $(BZIP2_DRV_OBJ_S)
60 DRV_OBJS_M += $(BZIP2_DRV_OBJ_M)