1 # 2 # FreeType 2 BZIP2 support configuration rules 3 # 4 5 # Copyright 2010-2018 by 6 # Joel Klinghed. 7 # 8 # based on `src/lzw/rules.mk' 9 # 10 # This file is part of the FreeType project, and may only be used, modified, 11 # and distributed under the terms of the FreeType project license, 12 # LICENSE.TXT. By continuing to use, modify, or distribute this file you 13 # indicate that you have read the license and understand and accept it 14 # fully. 15 16 17 # BZIP2 driver directory 18 # 19 BZIP2_DIR := $(SRC_DIR)/bzip2 20 21 22 # compilation flags for the driver 23 # 24 BZIP2_COMPILE := $(CC) $(ANSIFLAGS) \ 25 $(INCLUDE_FLAGS) \ 26 $(FT_CFLAGS) 27 28 29 # BZIP2 support sources (i.e., C files) 30 # 31 BZIP2_DRV_SRC := $(BZIP2_DIR)/ftbzip2.c 32 33 # BZIP2 driver object(s) 34 # 35 # BZIP2_DRV_OBJ_M is used during `multi' builds 36 # BZIP2_DRV_OBJ_S is used during `single' builds 37 # 38 BZIP2_DRV_OBJ_M := $(OBJ_DIR)/ftbzip2.$O 39 BZIP2_DRV_OBJ_S := $(OBJ_DIR)/ftbzip2.$O 40 41 # BZIP2 support source file for single build 42 # 43 BZIP2_DRV_SRC_S := $(BZIP2_DIR)/ftbzip2.c 44 45 46 # BZIP2 support - single object 47 # 48 $(BZIP2_DRV_OBJ_S): $(BZIP2_DRV_SRC_S) $(BZIP2_DRV_SRC) $(FREETYPE_H) $(BZIP2_DRV_H) 49 $(BZIP2_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(BZIP2_DRV_SRC_S)) 50 51 52 # BZIP2 support - multiple objects 53 # 54 $(OBJ_DIR)/%.$O: $(BZIP2_DIR)/%.c $(FREETYPE_H) $(BZIP2_DRV_H) 55 $(BZIP2_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<) 56 57 58 # update main driver object lists 59 # 60 DRV_OBJS_S += $(BZIP2_DRV_OBJ_S) 61 DRV_OBJS_M += $(BZIP2_DRV_OBJ_M) 62 63 64 # EOF 65