Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3918 Serge 1
#
2
# FreeType 2 LZW support configuration rules
3
#
4
 
5
 
6
# Copyright 2004, 2005, 2006 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
#
21
LZW_DIR := $(SRC_DIR)/lzw
22
 
23
 
24
# compilation flags for the driver
25
#
26
LZW_COMPILE := $(FT_COMPILE) $I$(subst /,$(COMPILER_SEP),$(LZW_DIR))
27
 
28
 
29
# LZW support sources (i.e., C files)
30
#
31
LZW_DRV_SRC := $(LZW_DIR)/ftlzw.c
32
 
33
# LZW support headers
34
#
35
LZW_DRV_H := $(LZW_DIR)/ftzopen.h \
36
             $(LZW_DIR)/ftzopen.c
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
#
44
LZW_DRV_OBJ_M := $(OBJ_DIR)/ftlzw.$O
45
LZW_DRV_OBJ_S := $(OBJ_DIR)/ftlzw.$O
46
 
47
# LZW support source file for single build
48
#
49
LZW_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
#
66
DRV_OBJS_S += $(LZW_DRV_OBJ_S)
67
DRV_OBJS_M += $(LZW_DRV_OBJ_M)
68
 
69
 
70
# EOF