2
# FreeType 2 LZW support configuration rules
6
# Copyright 2004, 2005, 2006 by
9
# Based on src/lzw/rules.mk, Copyright 2002 by
10
# David Turner, Robert Wilhelm, and Werner Lemberg.
12
# This file is part of the FreeType project, and may only be used, modified,
13
# and distributed under the terms of the FreeType project license,
14
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
15
# indicate that you have read the license and understand and accept it
19
# LZW driver directory
21
LZW_DIR := $(SRC_DIR)/lzw
24
# compilation flags for the driver
26
LZW_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(LZW_DIR))
29
# LZW support sources (i.e., C files)
31
LZW_DRV_SRC := $(LZW_DIR)/ftlzw.c
35
LZW_DRV_H := $(LZW_DIR)/ftzopen.h \
39
# LZW driver object(s)
41
# LZW_DRV_OBJ_M is used during `multi' builds
42
# LZW_DRV_OBJ_S is used during `single' builds
44
LZW_DRV_OBJ_M := $(OBJ_DIR)/ftlzw.$O
45
LZW_DRV_OBJ_S := $(OBJ_DIR)/ftlzw.$O
47
# LZW support source file for single build
49
LZW_DRV_SRC_S := $(LZW_DIR)/ftlzw.c
52
# LZW support - single object
54
$(LZW_DRV_OBJ_S): $(LZW_DRV_SRC_S) $(LZW_DRV_SRC) $(FREETYPE_H) $(LZW_DRV_H)
55
$(LZW_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(LZW_DRV_SRC_S))
58
# LZW support - multiple objects
60
$(OBJ_DIR)/%.$O: $(LZW_DIR)/%.c $(FREETYPE_H) $(LZW_DRV_H)
61
$(LZW_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
64
# update main driver object lists
66
DRV_OBJS_S += $(LZW_DRV_OBJ_S)
67
DRV_OBJS_M += $(LZW_DRV_OBJ_M)