2 # FreeType 2 LZW support configuration rules
6 # Copyright 2004-2016 by
9 # based on `src/lzw/rules.mk'
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 # LZW driver directory
20 LZW_DIR := $(SRC_DIR)/lzw
23 # compilation flags for the driver
25 LZW_COMPILE := $(CC) $(ANSIFLAGS) \
26 $I$(subst /,$(COMPILER_SEP),$(LZW_DIR)) \
31 # LZW support sources (i.e., C files)
33 LZW_DRV_SRC := $(LZW_DIR)/ftlzw.c
37 LZW_DRV_H := $(LZW_DIR)/ftzopen.h \
41 # LZW driver object(s)
43 # LZW_DRV_OBJ_M is used during `multi' builds
44 # LZW_DRV_OBJ_S is used during `single' builds
46 LZW_DRV_OBJ_M := $(OBJ_DIR)/ftlzw.$O
47 LZW_DRV_OBJ_S := $(OBJ_DIR)/ftlzw.$O
49 # LZW support source file for single build
51 LZW_DRV_SRC_S := $(LZW_DIR)/ftlzw.c
54 # LZW support - single object
56 $(LZW_DRV_OBJ_S): $(LZW_DRV_SRC_S) $(LZW_DRV_SRC) $(FREETYPE_H) $(LZW_DRV_H)
57 $(LZW_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(LZW_DRV_SRC_S))
60 # LZW support - multiple objects
62 $(OBJ_DIR)/%.$O: $(LZW_DIR)/%.c $(FREETYPE_H) $(LZW_DRV_H)
63 $(LZW_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
66 # update main driver object lists
68 DRV_OBJS_S += $(LZW_DRV_OBJ_S)
69 DRV_OBJS_M += $(LZW_DRV_OBJ_M)