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 ifndef DEBIAN_PACKAGE
121 # CROSS-PLATFORM MAGIC
123 include ../../include.mk
127 # Warning: Compiling with -O2 gives 0 font height with MinGW!!
128 CFLAGS += -fmessage-length=0 -m32 $(FPIC) -w \
129 -DFT2_BUILD_LIBRARY -DFT_OPTION_AUTOFIT2 \
133 -Iinclude/freetype/internal
135 LIBS = $(SHAREDLIB) $(EXECUTABLE) $(LINKOPT)
139 # HARD CODED PLATFORM-SPECIFIC OPTIONS
141 OFLAGS += -Wl,--no-undefined
146 all: objdir $(TARGET)
149 $(if $(wildcard $(OBJ)),,$(call mkdirq,$(OBJ)))
151 $(TARGET): $(SOURCES) $(RESOURCES) | objdir $(SYMBOLS) $(OBJECTS)
152 $(AR) rcs $(TARGET) $(OBJECTS) $(LIBS)
160 $(OBJ)afglobal.o: src/autofit/afglobal.c
161 $(CC) $(CFLAGS) -c src/autofit/afglobal.c -o $(OBJ)afglobal.o
163 $(OBJ)afindic.o: src/autofit/afindic.c
164 $(CC) $(CFLAGS) -c src/autofit/afindic.c -o $(OBJ)afindic.o
166 $(OBJ)autofit.o: src/autofit/autofit.c
167 $(CC) $(CFLAGS) -c src/autofit/autofit.c -o $(OBJ)autofit.o
169 $(OBJ)ftapi.o: src/base/ftapi.c
170 $(CC) $(CFLAGS) -c src/base/ftapi.c -o $(OBJ)ftapi.o
172 $(OBJ)ftbase.o: src/base/ftbase.c
173 $(CC) $(CFLAGS) -c src/base/ftbase.c -o $(OBJ)ftbase.o
175 $(OBJ)ftbbox.o: src/base/ftbbox.c
176 $(CC) $(CFLAGS) -c src/base/ftbbox.c -o $(OBJ)ftbbox.o
178 $(OBJ)ftbdf.o: src/base/ftbdf.c
179 $(CC) $(CFLAGS) -c src/base/ftbdf.c -o $(OBJ)ftbdf.o
181 $(OBJ)ftbitmap.o: src/base/ftbitmap.c
182 $(CC) $(CFLAGS) -c src/base/ftbitmap.c -o $(OBJ)ftbitmap.o
184 $(OBJ)ftdebug.o: src/base/ftdebug.c
185 $(CC) $(CFLAGS) -c src/base/ftdebug.c -o $(OBJ)ftdebug.o
187 $(OBJ)ftgasp.o: src/base/ftgasp.c
188 $(CC) $(CFLAGS) -c src/base/ftgasp.c -o $(OBJ)ftgasp.o
190 $(OBJ)ftglyph.o: src/base/ftglyph.c
191 $(CC) $(CFLAGS) -c src/base/ftglyph.c -o $(OBJ)ftglyph.o
193 $(OBJ)ftgxval.o: src/base/ftgxval.c
194 $(CC) $(CFLAGS) -c src/base/ftgxval.c -o $(OBJ)ftgxval.o
196 $(OBJ)ftinit.o: src/base/ftinit.c
197 $(CC) $(CFLAGS) -c src/base/ftinit.c -o $(OBJ)ftinit.o
199 $(OBJ)ftlcdfil.o: src/base/ftlcdfil.c
200 $(CC) $(CFLAGS) -c src/base/ftlcdfil.c -o $(OBJ)ftlcdfil.o
202 $(OBJ)ftmm.o: src/base/ftmm.c
203 $(CC) $(CFLAGS) -c src/base/ftmm.c -o $(OBJ)ftmm.o
205 $(OBJ)ftotval.o: src/base/ftotval.c
206 $(CC) $(CFLAGS) -c src/base/ftotval.c -o $(OBJ)ftotval.o
208 $(OBJ)ftpatent.o: src/base/ftpatent.c
209 $(CC) $(CFLAGS) -c src/base/ftpatent.c -o $(OBJ)ftpatent.o
211 $(OBJ)ftpfr.o: src/base/ftpfr.c
212 $(CC) $(CFLAGS) -c src/base/ftpfr.c -o $(OBJ)ftpfr.o
214 $(OBJ)ftstroke.o: src/base/ftstroke.c
215 $(CC) $(CFLAGS) -c src/base/ftstroke.c -o $(OBJ)ftstroke.o
217 $(OBJ)ftsynth.o: src/base/ftsynth.c
218 $(CC) $(CFLAGS) -c src/base/ftsynth.c -o $(OBJ)ftsynth.o
220 $(OBJ)ftsystem.o: src/base/ftsystem.c
221 $(CC) $(CFLAGS) -c src/base/ftsystem.c -o $(OBJ)ftsystem.o
223 $(OBJ)fttype1.o: src/base/fttype1.c
224 $(CC) $(CFLAGS) -c src/base/fttype1.c -o $(OBJ)fttype1.o
226 $(OBJ)ftwinfnt.o: src/base/ftwinfnt.c
227 $(CC) $(CFLAGS) -c src/base/ftwinfnt.c -o $(OBJ)ftwinfnt.o
229 $(OBJ)ftxf86.o: src/base/ftxf86.c
230 $(CC) $(CFLAGS) -c src/base/ftxf86.c -o $(OBJ)ftxf86.o
232 $(OBJ)bdf.o: src/bdf/bdf.c
233 $(CC) $(CFLAGS) -c src/bdf/bdf.c -o $(OBJ)bdf.o
235 $(OBJ)ftcache.o: src/cache/ftcache.c
236 $(CC) $(CFLAGS) -c src/cache/ftcache.c -o $(OBJ)ftcache.o
238 $(OBJ)cff.o: src/cff/cff.c
239 $(CC) $(CFLAGS) -c src/cff/cff.c -o $(OBJ)cff.o
241 $(OBJ)type1cid.o: src/cid/type1cid.c
242 $(CC) $(CFLAGS) -c src/cid/type1cid.c -o $(OBJ)type1cid.o
244 $(OBJ)gxvalid.o: src/gxvalid/gxvalid.c
245 $(CC) $(CFLAGS) -c src/gxvalid/gxvalid.c -o $(OBJ)gxvalid.o
247 $(OBJ)ftgzip.o: src/gzip/ftgzip.c
248 $(CC) $(CFLAGS) -c src/gzip/ftgzip.c -o $(OBJ)ftgzip.o
250 $(OBJ)ftlzw.o: src/lzw/ftlzw.c
251 $(CC) $(CFLAGS) -c src/lzw/ftlzw.c -o $(OBJ)ftlzw.o
253 $(OBJ)otvalid.o: src/otvalid/otvalid.c
254 $(CC) $(CFLAGS) -c src/otvalid/otvalid.c -o $(OBJ)otvalid.o
256 $(OBJ)pcf.o: src/pcf/pcf.c
257 $(CC) $(CFLAGS) -c src/pcf/pcf.c -o $(OBJ)pcf.o
259 $(OBJ)pfr.o: src/pfr/pfr.c
260 $(CC) $(CFLAGS) -c src/pfr/pfr.c -o $(OBJ)pfr.o
262 $(OBJ)psaux.o: src/psaux/psaux.c
263 $(CC) $(CFLAGS) -c src/psaux/psaux.c -o $(OBJ)psaux.o
265 $(OBJ)pshinter.o: src/pshinter/pshinter.c
266 $(CC) $(CFLAGS) -c src/pshinter/pshinter.c -o $(OBJ)pshinter.o
268 $(OBJ)psnames.o: src/psnames/psnames.c
269 $(CC) $(CFLAGS) -c src/psnames/psnames.c -o $(OBJ)psnames.o
271 $(OBJ)raster.o: src/raster/raster.c
272 $(CC) $(CFLAGS) -c src/raster/raster.c -o $(OBJ)raster.o
274 $(OBJ)sfnt.o: src/sfnt/sfnt.c
275 $(CC) $(CFLAGS) -c src/sfnt/sfnt.c -o $(OBJ)sfnt.o
277 $(OBJ)smooth.o: src/smooth/smooth.c
278 $(CC) $(CFLAGS) -c src/smooth/smooth.c -o $(OBJ)smooth.o
280 $(OBJ)truetype.o: src/truetype/truetype.c
281 $(CC) $(CFLAGS) -c src/truetype/truetype.c -o $(OBJ)truetype.o
283 $(OBJ)type1.o: src/type1/type1.c
284 $(CC) $(CFLAGS) -c src/type1/type1.c -o $(OBJ)type1.o
286 $(OBJ)type42.o: src/type42/type42.c
287 $(CC) $(CFLAGS) -c src/type42/type42.c -o $(OBJ)type42.o
289 $(OBJ)winfnt.o: src/winfonts/winfnt.c
290 $(CC) $(CFLAGS) -c src/winfonts/winfnt.c -o $(OBJ)winfnt.o
293 $(call rmq,$(TARGET))
294 $(call rmq,$(OBJECTS))
295 $(call rmq,$(COBJECTS))