aaf4648a974084d4217af58ba4ac786b3439187b
[sdk] / deps / freetype-2.3.5 / Makefile
1 .PHONY: all objdir clean realclean distclean
2
3 # CONTENT
4
5 MODULE := libfreetype
6 CONFIG := release
7 COMPILER := default
8 TARGET_TYPE = staticlib
9
10 OBJ = obj/$(CONFIG).$(PLATFORM)/
11
12 RES = 
13
14 TARGET = obj/$(CONFIG).$(PLATFORM)/$(LP)freetype$(A)
15
16 OBJECTS = $(OBJ)afglobal.o $(OBJ)afindic.o $(OBJ)autofit.o $(OBJ)ftapi.o $(OBJ)ftbase.o \
17         $(OBJ)ftbbox.o $(OBJ)ftbdf.o $(OBJ)ftbitmap.o $(OBJ)ftdebug.o $(OBJ)ftgasp.o $(OBJ)ftglyph.o \
18         $(OBJ)ftgxval.o $(OBJ)ftinit.o $(OBJ)ftlcdfil.o $(OBJ)ftmm.o $(OBJ)ftotval.o $(OBJ)ftpatent.o \
19         $(OBJ)ftpfr.o $(OBJ)ftstroke.o $(OBJ)ftsynth.o $(OBJ)ftsystem.o $(OBJ)fttype1.o \
20         $(OBJ)ftwinfnt.o $(OBJ)ftxf86.o $(OBJ)bdf.o $(OBJ)ftcache.o $(OBJ)cff.o $(OBJ)type1cid.o \
21         $(OBJ)gxvalid.o $(OBJ)ftgzip.o $(OBJ)ftlzw.o $(OBJ)otvalid.o $(OBJ)pcf.o $(OBJ)pfr.o \
22         $(OBJ)psaux.o $(OBJ)pshinter.o $(OBJ)psnames.o $(OBJ)raster.o $(OBJ)sfnt.o $(OBJ)smooth.o \
23         $(OBJ)truetype.o $(OBJ)type1.o $(OBJ)type42.o $(OBJ)winfnt.o
24
25 COBJECTS =
26
27 SYMBOLS =
28
29 IMPORTS =
30
31 SOURCES = src/autofit/afglobal.c src/autofit/afindic.c src/autofit/autofit.c \
32         src/base/ftapi.c src/base/ftbase.c src/base/ftbbox.c src/base/ftbdf.c src/base/ftbitmap.c \
33         src/base/ftdebug.c src/base/ftgasp.c src/base/ftglyph.c src/base/ftgxval.c src/base/ftinit.c \
34         src/base/ftlcdfil.c src/base/ftmm.c src/base/ftotval.c src/base/ftpatent.c src/base/ftpfr.c \
35         src/base/ftstroke.c src/base/ftsynth.c src/base/ftsystem.c src/base/fttype1.c src/base/ftwinfnt.c \
36         src/base/ftxf86.c src/bdf/bdf.c src/cache/ftcache.c src/cff/cff.c src/cid/type1cid.c \
37         src/gxvalid/gxvalid.c src/gzip/ftgzip.c src/lzw/ftlzw.c src/otvalid/otvalid.c src/pcf/pcf.c \
38         src/pfr/pfr.c src/psaux/psaux.c src/pshinter/pshinter.c src/psnames/psnames.c \
39         src/raster/raster.c src/sfnt/sfnt.c src/smooth/smooth.c src/truetype/truetype.c src/type1/type1.c \
40         src/type42/type42.c src/winfonts/winfnt.c
41
42 RESOURCES =
43
44 # CROSS-PLATFORM MAGIC
45
46 include ../../include.mk
47
48 # TOOLCHAIN
49
50 CPP := cpp
51 CC := gcc
52 LD := gcc
53 AR := ar
54 STRIP := strip
55 UPX := upx
56
57 # FLAGS
58
59 # Warning: Compiling with -O2 gives 0 font height with MinGW!!
60 CFLAGS = -fmessage-length=0 -m32 $(FPIC) -w \
61          -DFT2_BUILD_LIBRARY -DFT_OPTION_AUTOFIT2 \
62          -I../zlib \
63          -Iinclude \
64          -Iinclude/freetype \
65          -Iinclude/freetype/internal
66
67 LIBS = $(SHAREDLIB) $(EXECUTABLE) $(LINKOPT)
68
69 UPXFLAGS = -9 -q
70
71 # HARD CODED PLATFORM-SPECIFIC OPTIONS
72 ifdef LINUX
73 OFLAGS += -Wl,--no-undefined
74 endif
75
76 # TARGETS
77
78 all: objdir $(TARGET)
79
80 objdir:
81         $(if $(wildcard $(OBJ)),,$(call mkdirq,$(OBJ)))
82
83 $(TARGET): $(SOURCES) $(RESOURCES) | objdir $(SYMBOLS) $(OBJECTS)
84         $(AR) rcs $(TARGET) $(OBJECTS) $(LIBS)
85
86 # SYMBOL RULES
87
88 # C OBJECT RULES
89
90 # OBJECT RULES
91
92 $(OBJ)afglobal.o: src/autofit/afglobal.c
93         $(CC) $(CFLAGS) -c src/autofit/afglobal.c -o $(OBJ)afglobal.o
94
95 $(OBJ)afindic.o: src/autofit/afindic.c
96         $(CC) $(CFLAGS) -c src/autofit/afindic.c -o $(OBJ)afindic.o
97
98 $(OBJ)autofit.o: src/autofit/autofit.c
99         $(CC) $(CFLAGS) -c src/autofit/autofit.c -o $(OBJ)autofit.o
100
101 $(OBJ)ftapi.o: src/base/ftapi.c
102         $(CC) $(CFLAGS) -c src/base/ftapi.c -o $(OBJ)ftapi.o
103
104 $(OBJ)ftbase.o: src/base/ftbase.c
105         $(CC) $(CFLAGS) -c src/base/ftbase.c -o $(OBJ)ftbase.o
106
107 $(OBJ)ftbbox.o: src/base/ftbbox.c
108         $(CC) $(CFLAGS) -c src/base/ftbbox.c -o $(OBJ)ftbbox.o
109
110 $(OBJ)ftbdf.o: src/base/ftbdf.c
111         $(CC) $(CFLAGS) -c src/base/ftbdf.c -o $(OBJ)ftbdf.o
112
113 $(OBJ)ftbitmap.o: src/base/ftbitmap.c
114         $(CC) $(CFLAGS) -c src/base/ftbitmap.c -o $(OBJ)ftbitmap.o
115
116 $(OBJ)ftdebug.o: src/base/ftdebug.c
117         $(CC) $(CFLAGS) -c src/base/ftdebug.c -o $(OBJ)ftdebug.o
118
119 $(OBJ)ftgasp.o: src/base/ftgasp.c
120         $(CC) $(CFLAGS) -c src/base/ftgasp.c -o $(OBJ)ftgasp.o
121
122 $(OBJ)ftglyph.o: src/base/ftglyph.c
123         $(CC) $(CFLAGS) -c src/base/ftglyph.c -o $(OBJ)ftglyph.o
124
125 $(OBJ)ftgxval.o: src/base/ftgxval.c
126         $(CC) $(CFLAGS) -c src/base/ftgxval.c -o $(OBJ)ftgxval.o
127
128 $(OBJ)ftinit.o: src/base/ftinit.c
129         $(CC) $(CFLAGS) -c src/base/ftinit.c -o $(OBJ)ftinit.o
130
131 $(OBJ)ftlcdfil.o: src/base/ftlcdfil.c
132         $(CC) $(CFLAGS) -c src/base/ftlcdfil.c -o $(OBJ)ftlcdfil.o
133
134 $(OBJ)ftmm.o: src/base/ftmm.c
135         $(CC) $(CFLAGS) -c src/base/ftmm.c -o $(OBJ)ftmm.o
136
137 $(OBJ)ftotval.o: src/base/ftotval.c
138         $(CC) $(CFLAGS) -c src/base/ftotval.c -o $(OBJ)ftotval.o
139
140 $(OBJ)ftpatent.o: src/base/ftpatent.c
141         $(CC) $(CFLAGS) -c src/base/ftpatent.c -o $(OBJ)ftpatent.o
142
143 $(OBJ)ftpfr.o: src/base/ftpfr.c
144         $(CC) $(CFLAGS) -c src/base/ftpfr.c -o $(OBJ)ftpfr.o
145
146 $(OBJ)ftstroke.o: src/base/ftstroke.c
147         $(CC) $(CFLAGS) -c src/base/ftstroke.c -o $(OBJ)ftstroke.o
148
149 $(OBJ)ftsynth.o: src/base/ftsynth.c
150         $(CC) $(CFLAGS) -c src/base/ftsynth.c -o $(OBJ)ftsynth.o
151
152 $(OBJ)ftsystem.o: src/base/ftsystem.c
153         $(CC) $(CFLAGS) -c src/base/ftsystem.c -o $(OBJ)ftsystem.o
154
155 $(OBJ)fttype1.o: src/base/fttype1.c
156         $(CC) $(CFLAGS) -c src/base/fttype1.c -o $(OBJ)fttype1.o
157
158 $(OBJ)ftwinfnt.o: src/base/ftwinfnt.c
159         $(CC) $(CFLAGS) -c src/base/ftwinfnt.c -o $(OBJ)ftwinfnt.o
160
161 $(OBJ)ftxf86.o: src/base/ftxf86.c
162         $(CC) $(CFLAGS) -c src/base/ftxf86.c -o $(OBJ)ftxf86.o
163
164 $(OBJ)bdf.o: src/bdf/bdf.c
165         $(CC) $(CFLAGS) -c src/bdf/bdf.c -o $(OBJ)bdf.o
166
167 $(OBJ)ftcache.o: src/cache/ftcache.c
168         $(CC) $(CFLAGS) -c src/cache/ftcache.c -o $(OBJ)ftcache.o
169
170 $(OBJ)cff.o: src/cff/cff.c
171         $(CC) $(CFLAGS) -c src/cff/cff.c -o $(OBJ)cff.o
172
173 $(OBJ)type1cid.o: src/cid/type1cid.c
174         $(CC) $(CFLAGS) -c src/cid/type1cid.c -o $(OBJ)type1cid.o
175
176 $(OBJ)gxvalid.o: src/gxvalid/gxvalid.c
177         $(CC) $(CFLAGS) -c src/gxvalid/gxvalid.c -o $(OBJ)gxvalid.o
178
179 $(OBJ)ftgzip.o: src/gzip/ftgzip.c
180         $(CC) $(CFLAGS) -c src/gzip/ftgzip.c -o $(OBJ)ftgzip.o
181
182 $(OBJ)ftlzw.o: src/lzw/ftlzw.c
183         $(CC) $(CFLAGS) -c src/lzw/ftlzw.c -o $(OBJ)ftlzw.o
184
185 $(OBJ)otvalid.o: src/otvalid/otvalid.c
186         $(CC) $(CFLAGS) -c src/otvalid/otvalid.c -o $(OBJ)otvalid.o
187
188 $(OBJ)pcf.o: src/pcf/pcf.c
189         $(CC) $(CFLAGS) -c src/pcf/pcf.c -o $(OBJ)pcf.o
190
191 $(OBJ)pfr.o: src/pfr/pfr.c
192         $(CC) $(CFLAGS) -c src/pfr/pfr.c -o $(OBJ)pfr.o
193
194 $(OBJ)psaux.o: src/psaux/psaux.c
195         $(CC) $(CFLAGS) -c src/psaux/psaux.c -o $(OBJ)psaux.o
196
197 $(OBJ)pshinter.o: src/pshinter/pshinter.c
198         $(CC) $(CFLAGS) -c src/pshinter/pshinter.c -o $(OBJ)pshinter.o
199
200 $(OBJ)psnames.o: src/psnames/psnames.c
201         $(CC) $(CFLAGS) -c src/psnames/psnames.c -o $(OBJ)psnames.o
202
203 $(OBJ)raster.o: src/raster/raster.c
204         $(CC) $(CFLAGS) -c src/raster/raster.c -o $(OBJ)raster.o
205
206 $(OBJ)sfnt.o: src/sfnt/sfnt.c
207         $(CC) $(CFLAGS) -c src/sfnt/sfnt.c -o $(OBJ)sfnt.o
208
209 $(OBJ)smooth.o: src/smooth/smooth.c
210         $(CC) $(CFLAGS) -c src/smooth/smooth.c -o $(OBJ)smooth.o
211
212 $(OBJ)truetype.o: src/truetype/truetype.c
213         $(CC) $(CFLAGS) -c src/truetype/truetype.c -o $(OBJ)truetype.o
214
215 $(OBJ)type1.o: src/type1/type1.c
216         $(CC) $(CFLAGS) -c src/type1/type1.c -o $(OBJ)type1.o
217
218 $(OBJ)type42.o: src/type42/type42.c
219         $(CC) $(CFLAGS) -c src/type42/type42.c -o $(OBJ)type42.o
220
221 $(OBJ)winfnt.o: src/winfonts/winfnt.c
222         $(CC) $(CFLAGS) -c src/winfonts/winfnt.c -o $(OBJ)winfnt.o
223
224 clean: objdir
225         $(call rmq,$(TARGET))
226         $(call rmq,$(OBJECTS))
227         $(call rmq,$(COBJECTS))
228
229 realclean:
230         $(call rmrq,$(OBJ))
231
232 distclean:
233         $(call rmrq,obj/)