2 # Makefile for FreeType2 link library using ppc-morphos-gcc-2.95.3-bin.tgz
3 # (gcc 2.95.3 hosted on 68k-Amiga producing MorphOS-PPC-binaries from
4 # http://www.morphos.de)
8 # Copyright 2005, 2006, 2007, 2009 by
9 # Werner Lemberg and Detlef Würkner.
11 # This file is part of the FreeType project, and may only be used, modified,
12 # and distributed under the terms of the FreeType project license,
13 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
14 # indicate that you have read the license and understand and accept it
19 # to build from the builds/amiga directory call
24 # Your programs source code should start with this
25 # (uncomment the parts you do not need to keep the program small):
27 #define FT_USE_AUTOFIT // autofitter
28 #define FT_USE_RASTER // monochrome rasterizer
29 #define FT_USE_SMOOTH // anti-aliasing rasterizer
30 #define FT_USE_TT // truetype font driver
31 #define FT_USE_T1 // type1 font driver
32 #define FT_USE_T42 // type42 font driver
33 #define FT_USE_T1CID // cid-keyed type1 font driver
34 #define FT_USE_CFF // opentype font driver
35 #define FT_USE_BDF // bdf bitmap font driver
36 #define FT_USE_PCF // pcf bitmap font driver
37 #define FT_USE_PFR // pfr font driver
38 #define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver
39 #define FT_USE_OTV // opentype validator
40 #define FT_USE_GXV // truetype gx validator
41 #include "FT:src/base/ftinit.c"
44 # link your programs with libft2_ppc.a and either ftsystem.ppc.o or ftsystempure.ppc.o
45 # (and either ftdebug.ppc.o or ftdebugpure.ppc.o if you enabled FT_DEBUG_LEVEL_ERROR or
46 # FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h).
48 all: libft2_ppc.a ftsystem.ppc.o ftsystempure.ppc.o
56 AR
= ppc-morphos-ar rc
57 RANLIB
= ppc-morphos-ranlib
59 CFLAGS
= -DFT2_BUILD_LIBRARY
-O2
-I
/emu
/emulinclude
/includegcc
-I
/emu
/include -Iinclude
-I
$(FTSRC
) -I
/FT
/include
62 # FreeType2 library base
64 ftbase.ppc.o
: $(FTSRC
)/base
/ftbase.c
65 $(CC
) -c
$(CFLAGS
) -o
$@
$<
67 ftinit.ppc.o
: $(FTSRC
)/base
/ftinit.c
68 $(CC
) -c
$(CFLAGS
) -o
$@
$<
70 ftsystem.ppc.o
: $(FTSRC
)/base
/ftsystem.c
71 $(CC
) -c
$(CFLAGS
) -o
$@
$<
73 # pure version for use in run-time library etc
74 ftsystempure.ppc.o
: src
/base
/ftsystem.c
75 $(CC
) -c
$(CFLAGS
) -o
$@
$<
77 ftdebug.ppc.o
: $(FTSRC
)/base
/ftdebug.c
78 $(CC
) -c
$(CFLAGS
) -o
$@
$<
80 # pure version for use in run-time library etc
81 ftdebugpure.ppc.o
: src
/base
/ftdebug.c
82 $(CC
) -c
$(CFLAGS
) -o
$@
$<
85 # FreeType2 library base extensions
87 ftbbox.ppc.o
: $(FTSRC
)/base
/ftbbox.c
88 $(CC
) -c
$(CFLAGS
) -o
$@
$<
90 ftbdf.ppc.o
: $(FTSRC
)/base
/ftbdf.c
91 $(CC
) -c
$(CFLAGS
) -o
$@
$<
93 ftbitmap.ppc.o
: $(FTSRC
)/base
/ftbitmap.c
94 $(CC
) -c
$(CFLAGS
) -o
$@
$<
96 ftcid.ppc.o
: $(FTSRC
)/base
/ftcid.c
97 $(CC
) -c
$(CFLAGS
) -o
$@
$<
99 ftfstype.ppc.o
: $(FTSRC
)/base
/ftfstype.c
100 $(CC
) -c
$(CFLAGS
) -o
$@
$<
102 ftgasp.ppc.o
: $(FTSRC
)/base
/ftgasp.c
103 $(CC
) -c
$(CFLAGS
) -o
$@
$<
105 ftglyph.ppc.o
: $(FTSRC
)/base
/ftglyph.c
106 $(CC
) -c
$(CFLAGS
) -o
$@
$<
108 ftgxval.ppc.o
: $(FTSRC
)/base
/ftgxval.c
109 $(CC
) -c
$(CFLAGS
) -o
$@
$<
111 ftlcdfil.ppc.o
: $(FTSRC
)/base
/ftlcdfil.c
112 $(CC
) -c
$(CFLAGS
) -o
$@
$<
114 ftmm.ppc.o
: $(FTSRC
)/base
/ftmm.c
115 $(CC
) -c
$(CFLAGS
) -o
$@
$<
117 ftotval.ppc.o
: $(FTSRC
)/base
/ftotval.c
118 $(CC
) -c
$(CFLAGS
) -o
$@
$<
120 ftpatent.ppc.o
: $(FTSRC
)/base
/ftpatent.c
121 $(CC
) -c
$(CFLAGS
) -o
$@
$<
123 ftpfr.ppc.o
: $(FTSRC
)/base
/ftpfr.c
124 $(CC
) -c
$(CFLAGS
) -o
$@
$<
126 ftstroke.ppc.o
: $(FTSRC
)/base
/ftstroke.c
127 $(CC
) -c
$(CFLAGS
) -o
$@
$<
129 ftsynth.ppc.o
: $(FTSRC
)/base
/ftsynth.c
130 $(CC
) -c
$(CFLAGS
) -o
$@
$<
132 fttype1.ppc.o
: $(FTSRC
)/base
/fttype1.c
133 $(CC
) -c
$(CFLAGS
) -o
$@
$<
135 ftwinfnt.ppc.o
: $(FTSRC
)/base
/ftwinfnt.c
136 $(CC
) -c
$(CFLAGS
) -o
$@
$<
138 ftxf86.ppc.o
: $(FTSRC
)/base
/ftxf86.c
139 $(CC
) -c
$(CFLAGS
) -o
$@
$<
142 # FreeType2 library autofitting module
144 autofit.ppc.o
: $(FTSRC
)/autofit
/autofit.c
145 $(CC
) -c
$(CFLAGS
) -o
$@
$<
148 # FreeType2 library postscript hinting module
150 pshinter.ppc.o
: $(FTSRC
)/pshinter
/pshinter.c
151 $(CC
) -c
$(CFLAGS
) -o
$@
$<
154 # FreeType2 library PS support module
156 psaux.ppc.o
: $(FTSRC
)/psaux
/psaux.c
157 $(CC
) -c
$(CFLAGS
) -o
$@
$<
160 # FreeType2 library PS glyph names module
162 psnames.ppc.o
: $(FTSRC
)/psnames
/psnames.c
163 $(CC
) -c
$(CFLAGS
) -o
$@
$<
166 # FreeType2 library monochrome raster module
168 raster.ppc.o
: $(FTSRC
)/raster
/raster.c
169 $(CC
) -c
$(CFLAGS
) -o
$@
$<
172 # FreeType2 library anti-aliasing raster module
174 smooth.ppc.o
: $(FTSRC
)/smooth
/smooth.c
175 $(CC
) -c
$(CFLAGS
) -o
$@
$<
178 # FreeType2 library 'sfnt' module
180 sfnt.ppc.o
: $(FTSRC
)/sfnt
/sfnt.c
181 $(CC
) -c
$(CFLAGS
) -o
$@
$<
184 # FreeType2 library glyph and image caching system
186 ftcache.ppc.o
: $(FTSRC
)/cache
/ftcache.c
187 $(CC
) -c
$(CFLAGS
) -o
$@
$<
190 # FreeType2 library OpenType font driver
192 cff.ppc.o
: $(FTSRC
)/cff
/cff.c
193 $(CC
) -c
$(CFLAGS
) -o
$@
$<
196 # FreeType2 library TrueType font driver
198 truetype.ppc.o
: $(FTSRC
)/truetype
/truetype.c
199 $(CC
) -c
$(CFLAGS
) -o
$@
$<
202 # FreeType2 library Type1 font driver
204 type1.ppc.o
: $(FTSRC
)/type1
/type1.c
205 $(CC
) -c
$(CFLAGS
) -o
$@
$<
208 # FreeType2 library Type42 font driver
210 type42.ppc.o
: $(FTSRC
)/type42
/type42.c
211 $(CC
) -c
$(CFLAGS
) -o
$@
$<
214 # FreeType2 library CID-keyed Type1 font driver
216 type1cid.ppc.o
: $(FTSRC
)/cid
/type1cid.c
217 $(CC
) -c
$(CFLAGS
) -o
$@
$<
220 # FreeType2 library BDF bitmap font driver
222 bdf.ppc.o
: $(FTSRC
)/bdf
/bdf.c
223 $(CC
) -c
$(CFLAGS
) -o
$@
$<
226 # FreeType2 library PCF bitmap font driver
228 pcf.ppc.o
: $(FTSRC
)/pcf
/pcf.c
229 $(CC
) -c
$(CFLAGS
) -o
$@
$<
232 # FreeType2 library gzip support for compressed PCF bitmap fonts
234 gzip.ppc.o
: $(FTSRC
)/gzip
/ftgzip.c
235 $(CC
) -c
$(CFLAGS
) -o
$@
$<
238 # FreeType2 library compress support for compressed PCF bitmap fonts
240 lzw.ppc.o
: $(FTSRC
)/lzw
/ftlzw.c
241 $(CC
) -c
$(CFLAGS
) -o
$@
$<
244 # FreeType2 library PFR font driver
246 pfr.ppc.o
: $(FTSRC
)/pfr
/pfr.c
247 $(CC
) -c
$(CFLAGS
) -o
$@
$<
250 # FreeType2 library Windows FNT/FON bitmap font driver
252 winfnt.ppc.o
: $(FTSRC
)/winfonts
/winfnt.c
253 $(CC
) -c
$(CFLAGS
) -o
$@
$<
256 # FreeType2 library TrueTypeGX Validator
258 gxvalid.ppc.o
: $(FTSRC
)/gxvalid
/gxvalid.c
259 $(CC
) -c
$(CFLAGS
) -o
$@
$<
262 # FreeType2 library OpenType validator
264 otvalid.ppc.o
: $(FTSRC
)/otvalid
/otvalid.c
265 $(CC
) -c
$(CFLAGS
) -o
$@
$<
267 BASEPPC
= ftbase.ppc.o ftbbox.ppc.o ftbdf.ppc.o ftbitmap.ppc.o ftcid.ppc.o \
268 ftfstype.ppc.o ftgasp.ppc.o ftglyph.ppc.o ftgxval.ppc.o \
269 ftlcdfil.ppc.o ftmm.ppc.o ftotval.ppc.o ftpatent.ppc.o ftpfr.ppc.o \
270 ftstroke.ppc.o ftsynth.ppc.o fttype1.ppc.o ftwinfnt.ppc.o \
273 DEBUGPPC
= ftdebug.ppc.o ftdebugpure.ppc.o
275 AFITPPC
= autofit.ppc.o
277 GXVPPC
= gxvalid.ppc.o
279 OTVPPC
= otvalid.ppc.o
281 PSPPC
= psaux.ppc.o psnames.ppc.o pshinter.ppc.o
283 RASTERPPC
= raster.ppc.o smooth.ppc.o
285 FONTDPPC
= cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\
286 bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o
288 libft2_ppc.a
: $(BASEPPC
) $(AFITPPC
) $(GXVPPC
) $(OTVPPC
) $(PSPPC
) $(RASTERPPC
) sfnt.ppc.o ftcache.ppc.o
$(FONTDPPC
) gzip.ppc.o lzw.ppc.o
289 $(AR
) $@
$(BASEPPC
) $(AFITPPC
) $(GXVPPC
) $(OTVPPC
) $(PSPPC
) $(RASTERPPC
) sfnt.ppc.o ftcache.ppc.o
$(FONTDPPC
) gzip.ppc.o lzw.ppc.o
290 -@
($(RANLIB
) $@ || true
) >/dev
/null
2>&1