source: trunk/poppler/freetype-2.1.10/src/lzw/rules.mk @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 16 years ago

First import

File size: 1.5 KB
Line 
1#
2# FreeType 2 LZW support configuration rules
3#
4
5
6# Copyright 2004 by
7# Albert Chin-A-Young.
8#
9# Based on src/lzw/rules.mk, Copyright 2002 by
10# David Turner, Robert Wilhelm, and Werner Lemberg.
11#
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
16# fully.
17
18
19# LZW driver directory
20#
21LZW_DIR := $(SRC_DIR)/lzw
22
23
24# compilation flags for the driver
25#
26LZW_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(LZW_DIR))
27
28
29# LZW support sources (i.e., C files)
30#
31LZW_DRV_SRC := $(LZW_DIR)/ftlzw.c \
32               $(LZW_DIR)/zopen.c
33
34# LZW support headers
35#
36LZW_DRV_H := $(LZW_DIR)/zopen.h
37
38
39# LZW driver object(s)
40#
41#   LZW_DRV_OBJ_M is used during `multi' builds
42#   LZW_DRV_OBJ_S is used during `single' builds
43#
44LZW_DRV_OBJ_M := $(OBJ_DIR)/ftlzw.$O
45LZW_DRV_OBJ_S := $(OBJ_DIR)/ftlzw.$O
46
47# LZW support source file for single build
48#
49LZW_DRV_SRC_S := $(LZW_DIR)/ftlzw.c
50
51
52# LZW support - single object
53#
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))
56
57
58# LZW support - multiple objects
59#
60$(OBJ_DIR)/%.$O: $(LZW_DIR)/%.c $(FREETYPE_H) $(LZW_DRV_H)
61        $(LZW_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
62
63
64# update main driver object lists
65#
66DRV_OBJS_S += $(LZW_DRV_OBJ_S)
67DRV_OBJS_M += $(LZW_DRV_OBJ_M)
68
69
70# EOF
Note: See TracBrowser for help on using the repository browser.