1 .PHONY: all objdir clean realclean distclean
8 TARGET_TYPE = staticlib
10 OBJ = obj/$(CONFIG).$(PLATFORM)/
14 TARGET = obj/$(CONFIG).$(PLATFORM)/$(LP)freetype$(A)
69 src/autofit/afglobal.c \
70 src/autofit/afindic.c \
71 src/autofit/autofit.c \
97 src/gxvalid/gxvalid.c \
100 src/otvalid/otvalid.c \
104 src/pshinter/pshinter.c \
105 src/psnames/psnames.c \
106 src/raster/raster.c \
108 src/smooth/smooth.c \
109 src/truetype/truetype.c \
111 src/type42/type42.c \
112 src/winfonts/winfnt.c
116 # CROSS-PLATFORM MAGIC
118 include ../../include.mk
122 # Warning: Compiling with -O2 gives 0 font height with MinGW!!
123 CFLAGS = -fmessage-length=0 -m32 $(FPIC) -w \
124 -DFT2_BUILD_LIBRARY -DFT_OPTION_AUTOFIT2 \
128 -Iinclude/freetype/internal
130 LIBS = $(SHAREDLIB) $(EXECUTABLE) $(LINKOPT)
134 # HARD CODED PLATFORM-SPECIFIC OPTIONS
136 OFLAGS += -Wl,--no-undefined
141 all: objdir $(TARGET)
144 $(if $(wildcard $(OBJ)),,$(call mkdirq,$(OBJ)))
146 $(TARGET): $(SOURCES) $(RESOURCES) | objdir $(SYMBOLS) $(OBJECTS)
147 $(AR) rcs $(TARGET) $(OBJECTS) $(LIBS)
155 $(OBJ)afglobal.o: src/autofit/afglobal.c
156 $(CC) $(CFLAGS) -c src/autofit/afglobal.c -o $(OBJ)afglobal.o
158 $(OBJ)afindic.o: src/autofit/afindic.c
159 $(CC) $(CFLAGS) -c src/autofit/afindic.c -o $(OBJ)afindic.o
161 $(OBJ)autofit.o: src/autofit/autofit.c
162 $(CC) $(CFLAGS) -c src/autofit/autofit.c -o $(OBJ)autofit.o
164 $(OBJ)ftapi.o: src/base/ftapi.c
165 $(CC) $(CFLAGS) -c src/base/ftapi.c -o $(OBJ)ftapi.o
167 $(OBJ)ftbase.o: src/base/ftbase.c
168 $(CC) $(CFLAGS) -c src/base/ftbase.c -o $(OBJ)ftbase.o
170 $(OBJ)ftbbox.o: src/base/ftbbox.c
171 $(CC) $(CFLAGS) -c src/base/ftbbox.c -o $(OBJ)ftbbox.o
173 $(OBJ)ftbdf.o: src/base/ftbdf.c
174 $(CC) $(CFLAGS) -c src/base/ftbdf.c -o $(OBJ)ftbdf.o
176 $(OBJ)ftbitmap.o: src/base/ftbitmap.c
177 $(CC) $(CFLAGS) -c src/base/ftbitmap.c -o $(OBJ)ftbitmap.o
179 $(OBJ)ftdebug.o: src/base/ftdebug.c
180 $(CC) $(CFLAGS) -c src/base/ftdebug.c -o $(OBJ)ftdebug.o
182 $(OBJ)ftgasp.o: src/base/ftgasp.c
183 $(CC) $(CFLAGS) -c src/base/ftgasp.c -o $(OBJ)ftgasp.o
185 $(OBJ)ftglyph.o: src/base/ftglyph.c
186 $(CC) $(CFLAGS) -c src/base/ftglyph.c -o $(OBJ)ftglyph.o
188 $(OBJ)ftgxval.o: src/base/ftgxval.c
189 $(CC) $(CFLAGS) -c src/base/ftgxval.c -o $(OBJ)ftgxval.o
191 $(OBJ)ftinit.o: src/base/ftinit.c
192 $(CC) $(CFLAGS) -c src/base/ftinit.c -o $(OBJ)ftinit.o
194 $(OBJ)ftlcdfil.o: src/base/ftlcdfil.c
195 $(CC) $(CFLAGS) -c src/base/ftlcdfil.c -o $(OBJ)ftlcdfil.o
197 $(OBJ)ftmm.o: src/base/ftmm.c
198 $(CC) $(CFLAGS) -c src/base/ftmm.c -o $(OBJ)ftmm.o
200 $(OBJ)ftotval.o: src/base/ftotval.c
201 $(CC) $(CFLAGS) -c src/base/ftotval.c -o $(OBJ)ftotval.o
203 $(OBJ)ftpatent.o: src/base/ftpatent.c
204 $(CC) $(CFLAGS) -c src/base/ftpatent.c -o $(OBJ)ftpatent.o
206 $(OBJ)ftpfr.o: src/base/ftpfr.c
207 $(CC) $(CFLAGS) -c src/base/ftpfr.c -o $(OBJ)ftpfr.o
209 $(OBJ)ftstroke.o: src/base/ftstroke.c
210 $(CC) $(CFLAGS) -c src/base/ftstroke.c -o $(OBJ)ftstroke.o
212 $(OBJ)ftsynth.o: src/base/ftsynth.c
213 $(CC) $(CFLAGS) -c src/base/ftsynth.c -o $(OBJ)ftsynth.o
215 $(OBJ)ftsystem.o: src/base/ftsystem.c
216 $(CC) $(CFLAGS) -c src/base/ftsystem.c -o $(OBJ)ftsystem.o
218 $(OBJ)fttype1.o: src/base/fttype1.c
219 $(CC) $(CFLAGS) -c src/base/fttype1.c -o $(OBJ)fttype1.o
221 $(OBJ)ftwinfnt.o: src/base/ftwinfnt.c
222 $(CC) $(CFLAGS) -c src/base/ftwinfnt.c -o $(OBJ)ftwinfnt.o
224 $(OBJ)ftxf86.o: src/base/ftxf86.c
225 $(CC) $(CFLAGS) -c src/base/ftxf86.c -o $(OBJ)ftxf86.o
227 $(OBJ)bdf.o: src/bdf/bdf.c
228 $(CC) $(CFLAGS) -c src/bdf/bdf.c -o $(OBJ)bdf.o
230 $(OBJ)ftcache.o: src/cache/ftcache.c
231 $(CC) $(CFLAGS) -c src/cache/ftcache.c -o $(OBJ)ftcache.o
233 $(OBJ)cff.o: src/cff/cff.c
234 $(CC) $(CFLAGS) -c src/cff/cff.c -o $(OBJ)cff.o
236 $(OBJ)type1cid.o: src/cid/type1cid.c
237 $(CC) $(CFLAGS) -c src/cid/type1cid.c -o $(OBJ)type1cid.o
239 $(OBJ)gxvalid.o: src/gxvalid/gxvalid.c
240 $(CC) $(CFLAGS) -c src/gxvalid/gxvalid.c -o $(OBJ)gxvalid.o
242 $(OBJ)ftgzip.o: src/gzip/ftgzip.c
243 $(CC) $(CFLAGS) -c src/gzip/ftgzip.c -o $(OBJ)ftgzip.o
245 $(OBJ)ftlzw.o: src/lzw/ftlzw.c
246 $(CC) $(CFLAGS) -c src/lzw/ftlzw.c -o $(OBJ)ftlzw.o
248 $(OBJ)otvalid.o: src/otvalid/otvalid.c
249 $(CC) $(CFLAGS) -c src/otvalid/otvalid.c -o $(OBJ)otvalid.o
251 $(OBJ)pcf.o: src/pcf/pcf.c
252 $(CC) $(CFLAGS) -c src/pcf/pcf.c -o $(OBJ)pcf.o
254 $(OBJ)pfr.o: src/pfr/pfr.c
255 $(CC) $(CFLAGS) -c src/pfr/pfr.c -o $(OBJ)pfr.o
257 $(OBJ)psaux.o: src/psaux/psaux.c
258 $(CC) $(CFLAGS) -c src/psaux/psaux.c -o $(OBJ)psaux.o
260 $(OBJ)pshinter.o: src/pshinter/pshinter.c
261 $(CC) $(CFLAGS) -c src/pshinter/pshinter.c -o $(OBJ)pshinter.o
263 $(OBJ)psnames.o: src/psnames/psnames.c
264 $(CC) $(CFLAGS) -c src/psnames/psnames.c -o $(OBJ)psnames.o
266 $(OBJ)raster.o: src/raster/raster.c
267 $(CC) $(CFLAGS) -c src/raster/raster.c -o $(OBJ)raster.o
269 $(OBJ)sfnt.o: src/sfnt/sfnt.c
270 $(CC) $(CFLAGS) -c src/sfnt/sfnt.c -o $(OBJ)sfnt.o
272 $(OBJ)smooth.o: src/smooth/smooth.c
273 $(CC) $(CFLAGS) -c src/smooth/smooth.c -o $(OBJ)smooth.o
275 $(OBJ)truetype.o: src/truetype/truetype.c
276 $(CC) $(CFLAGS) -c src/truetype/truetype.c -o $(OBJ)truetype.o
278 $(OBJ)type1.o: src/type1/type1.c
279 $(CC) $(CFLAGS) -c src/type1/type1.c -o $(OBJ)type1.o
281 $(OBJ)type42.o: src/type42/type42.c
282 $(CC) $(CFLAGS) -c src/type42/type42.c -o $(OBJ)type42.o
284 $(OBJ)winfnt.o: src/winfonts/winfnt.c
285 $(CC) $(CFLAGS) -c src/winfonts/winfnt.c -o $(OBJ)winfnt.o
288 $(call rmq,$(TARGET))
289 $(call rmq,$(OBJECTS))
290 $(call rmq,$(COBJECTS))