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 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 ftgasp.ppc.o
: $(FTSRC
)/base
/ftgasp.c
97 $(CC
) -c
$(CFLAGS
) -o
$@
$<
99 ftglyph.ppc.o
: $(FTSRC
)/base
/ftglyph.c
100 $(CC
) -c
$(CFLAGS
) -o
$@
$<
102 ftgxval.ppc.o
: $(FTSRC
)/base
/ftgxval.c
103 $(CC
) -c
$(CFLAGS
) -o
$@
$<
105 ftlcdfil.ppc.o
: $(FTSRC
)/base
/ftlcdfil.c
106 $(CC
) -c
$(CFLAGS
) -o
$@
$<
108 ftmm.ppc.o
: $(FTSRC
)/base
/ftmm.c
109 $(CC
) -c
$(CFLAGS
) -o
$@
$<
111 ftotval.ppc.o
: $(FTSRC
)/base
/ftotval.c
112 $(CC
) -c
$(CFLAGS
) -o
$@
$<
114 ftpfr.ppc.o
: $(FTSRC
)/base
/ftpfr.c
115 $(CC
) -c
$(CFLAGS
) -o
$@
$<
117 ftstroke.ppc.o
: $(FTSRC
)/base
/ftstroke.c
118 $(CC
) -c
$(CFLAGS
) -o
$@
$<
120 ftsynth.ppc.o
: $(FTSRC
)/base
/ftsynth.c
121 $(CC
) -c
$(CFLAGS
) -o
$@
$<
123 fttype1.ppc.o
: $(FTSRC
)/base
/fttype1.c
124 $(CC
) -c
$(CFLAGS
) -o
$@
$<
126 ftwinfnt.ppc.o
: $(FTSRC
)/base
/ftwinfnt.c
127 $(CC
) -c
$(CFLAGS
) -o
$@
$<
129 ftxf86.ppc.o
: $(FTSRC
)/base
/ftxf86.c
130 $(CC
) -c
$(CFLAGS
) -o
$@
$<
133 # FreeType2 library autofitting module
135 autofit.ppc.o
: $(FTSRC
)/autofit
/autofit.c
136 $(CC
) -c
$(CFLAGS
) -o
$@
$<
139 # FreeType2 library postscript hinting module
141 pshinter.ppc.o
: $(FTSRC
)/pshinter
/pshinter.c
142 $(CC
) -c
$(CFLAGS
) -o
$@
$<
145 # FreeType2 library PS support module
147 psaux.ppc.o
: $(FTSRC
)/psaux
/psaux.c
148 $(CC
) -c
$(CFLAGS
) -o
$@
$<
151 # FreeType2 library PS glyph names module
153 psnames.ppc.o
: $(FTSRC
)/psnames
/psnames.c
154 $(CC
) -c
$(CFLAGS
) -o
$@
$<
157 # FreeType2 library monochrome raster module
159 raster.ppc.o
: $(FTSRC
)/raster
/raster.c
160 $(CC
) -c
$(CFLAGS
) -o
$@
$<
163 # FreeType2 library anti-aliasing raster module
165 smooth.ppc.o
: $(FTSRC
)/smooth
/smooth.c
166 $(CC
) -c
$(CFLAGS
) -o
$@
$<
169 # FreeType2 library 'sfnt' module
171 sfnt.ppc.o
: $(FTSRC
)/sfnt
/sfnt.c
172 $(CC
) -c
$(CFLAGS
) -o
$@
$<
175 # FreeType2 library glyph and image caching system
177 ftcache.ppc.o
: $(FTSRC
)/cache
/ftcache.c
178 $(CC
) -c
$(CFLAGS
) -o
$@
$<
181 # FreeType2 library OpenType font driver
183 cff.ppc.o
: $(FTSRC
)/cff
/cff.c
184 $(CC
) -c
$(CFLAGS
) -o
$@
$<
187 # FreeType2 library TrueType font driver
189 truetype.ppc.o
: $(FTSRC
)/truetype
/truetype.c
190 $(CC
) -c
$(CFLAGS
) -o
$@
$<
193 # FreeType2 library Type1 font driver
195 type1.ppc.o
: $(FTSRC
)/type1
/type1.c
196 $(CC
) -c
$(CFLAGS
) -o
$@
$<
199 # FreeType2 library Type42 font driver
201 type42.ppc.o
: $(FTSRC
)/type42
/type42.c
202 $(CC
) -c
$(CFLAGS
) -o
$@
$<
205 # FreeType2 library CID-keyed Type1 font driver
207 type1cid.ppc.o
: $(FTSRC
)/cid
/type1cid.c
208 $(CC
) -c
$(CFLAGS
) -o
$@
$<
211 # FreeType2 library BDF bitmap font driver
213 bdf.ppc.o
: $(FTSRC
)/bdf
/bdf.c
214 $(CC
) -c
$(CFLAGS
) -o
$@
$<
217 # FreeType2 library PCF bitmap font driver
219 pcf.ppc.o
: $(FTSRC
)/pcf
/pcf.c
220 $(CC
) -c
$(CFLAGS
) -o
$@
$<
223 # FreeType2 library gzip support for compressed PCF bitmap fonts
225 gzip.ppc.o
: $(FTSRC
)/gzip
/ftgzip.c
226 $(CC
) -c
$(CFLAGS
) -o
$@
$<
229 # FreeType2 library compress support for compressed PCF bitmap fonts
231 lzw.ppc.o
: $(FTSRC
)/lzw
/ftlzw.c
232 $(CC
) -c
$(CFLAGS
) -o
$@
$<
235 # FreeType2 library PFR font driver
237 pfr.ppc.o
: $(FTSRC
)/pfr
/pfr.c
238 $(CC
) -c
$(CFLAGS
) -o
$@
$<
241 # FreeType2 library Windows FNT/FON bitmap font driver
243 winfnt.ppc.o
: $(FTSRC
)/winfonts
/winfnt.c
244 $(CC
) -c
$(CFLAGS
) -o
$@
$<
247 # FreeType2 library TrueTypeGX Validator
249 gxvalid.ppc.o
: $(FTSRC
)/gxvalid
/gxvalid.c
250 $(CC
) -c
$(CFLAGS
) -o
$@
$<
253 # FreeType2 library OpenType validator
255 otvalid.ppc.o
: $(FTSRC
)/otvalid
/otvalid.c
256 $(CC
) -c
$(CFLAGS
) -o
$@
$<
258 BASEPPC
= ftbase.ppc.o ftbbox.ppc.o ftbdf.ppc.o ftbitmap.ppc.o \
259 ftgasp.ppc.o ftglyph.ppc.o ftgxvalid.ppc.o ftlcdfil.ppc.o \
260 ftmm.ppc.o ftotval.ppc.o ftpfr.ppc.o ftstroke.ppc.o \
261 ftsynth.ppc.o fttype1.ppc.o ftwinfnt.ppc.o ftxf86.ppc.o
263 DEBUGPPC
= ftdebug.ppc.o ftdebugpure.ppc.o
265 AFITPPC
= autofit.ppc.o
267 GXVPPC
= gxvalid.ppc.o
269 OTVPPC
= otvalid.ppc.o
271 PSPPC
= psaux.ppc.o psnames.ppc.o pshinter.ppc.o
273 RASTERPPC
= raster.ppc.o smooth.ppc.o
275 FONTDPPC
= cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\
276 bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o
278 libft2_ppc.a
: $(BASEPPC
) $(AFITPPC
) $(GXVPPC
) $(OTVPPC
) $(PSPPC
) $(RASTERPPC
) sfnt.ppc.o ftcache.ppc.o
$(FONTDPPC
) gzip.ppc.o lzw.ppc.o
279 $(AR
) $@
$(BASEPPC
) $(AFITPPC
) $(GXVPPC
) $(OTVPPC
) $(PSPPC
) $(RASTERPPC
) sfnt.ppc.o ftcache.ppc.o
$(FONTDPPC
) gzip.ppc.o lzw.ppc.o
280 -@
($(RANLIB
) $@ || true
) >/dev
/null
2>&1