2 # Makefile for FreeType2 link library using gcc 4.0.3 from the
7 # Copyright 2005, 2006, 2007, 2009 by
8 # Werner Lemberg and Detlef Würkner.
10 # This file is part of the FreeType project, and may only be used, modified,
11 # and distributed under the terms of the FreeType project license,
12 # LICENSE.TXT. By continuing to use, modify, or distribute this file you
13 # indicate that you have read the license and understand and accept it
17 # to build from the builds/amiga directory call
19 # make -f makefile.os4
21 # Your programs source code should start with this
22 # (uncomment the parts you do not need to keep the program small):
24 #define FT_USE_AUTOFIT // autofitter
25 #define FT_USE_RASTER // monochrome rasterizer
26 #define FT_USE_SMOOTH // anti-aliasing rasterizer
27 #define FT_USE_TT // truetype font driver
28 #define FT_USE_T1 // type1 font driver
29 #define FT_USE_T42 // type42 font driver
30 #define FT_USE_T1CID // cid-keyed type1 font driver
31 #define FT_USE_CFF // opentype font driver
32 #define FT_USE_BDF // bdf bitmap font driver
33 #define FT_USE_PCF // pcf bitmap font driver
34 #define FT_USE_PFR // pfr font driver
35 #define FT_USE_WINFNT // windows .fnt|.fon bitmap font driver
36 #define FT_USE_OTV // opentype validator
37 #define FT_USE_GXV // truetype gx validator
38 #include "FT:src/base/ftinit.c"
41 # link your programs with libft2_ppc.a and either ftsystem.ppc.o or ftsystempure.ppc.o
42 # (and either ftdebug.ppc.o or ftdebugpure.ppc.o if you enabled FT_DEBUG_LEVEL_ERROR or
43 # FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h).
45 all: assign libft2_ppc.a ftsystem.ppc.o ftsystempure.ppc.o
52 RANLIB = ppc-amigaos-ranlib
54 DIRFLAGS = -Iinclude -I/FT/src -I/FT/include -I/SDK/include
56 WARNINGS = -Wall -W -Wundef -Wpointer-arith -Wbad-function-cast \
57 -Waggregate-return -Wwrite-strings -Wshadow
59 OPTIONS = -DFT2_BUILD_LIBRARY -DNDEBUG -fno-builtin
60 OPTIMIZE = -O2 -fomit-frame-pointer -fstrength-reduce -finline-functions
62 CFLAGS = -mcrt=clib2 $(DIRFLAGS) $(WARNINGS) $(FT2FLAGS) $(OPTIONS) $(OPTIMIZE)
65 # FreeType2 library base
67 ftbase.ppc.o: FT:src/base/ftbase.c
68 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftbase.c
70 ftinit.ppc.o: FT:src/base/ftinit.c
71 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftinit.c
73 ftsystem.ppc.o: FT:src/base/ftsystem.c
74 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftsystem.c
76 # pure version for use in run-time library etc
77 ftsystempure.ppc.o: src/base/ftsystem.c
78 $(CC) -c $(CFLAGS) -o $@ src/base/ftsystem.c
81 # FreeType2 library base extensions
83 ftbbox.ppc.o: FT:src/base/ftbbox.c
84 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftbbox.c
86 ftbdf.ppc.o: FT:src/base/ftbdf.c
87 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftbdf.c
89 ftbitmap.ppc.o: FT:src/base/ftbitmap.c
90 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftbitmap.c
92 ftcid.ppc.o: FT:src/base/ftcid.c
93 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftcid.c
95 ftdebug.ppc.o: FT:src/base/ftdebug.c
96 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftdebug.c
98 # pure version for use in run-time library etc
99 ftdebugpure.ppc.o: src/base/ftdebug.c
100 $(CC) -c $(CFLAGS) -o $@ src/base/ftdebug.c
102 ftfstype.ppc.o: FT:src/base/ftfstype.c
103 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftfstype.c
105 ftgasp.ppc.o: FT:src/base/ftgasp.c
106 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftgasp.c
108 ftglyph.ppc.o: FT:src/base/ftglyph.c
109 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftglyph.c
111 ftgxval.ppc.o: FT:src/base/ftgxval.c
112 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftgxval.c
114 ftlcdfil.ppc.o: FT:src/base/ftlcdfil.c
115 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftlcdfil.c
117 ftmm.ppc.o: FT:src/base/ftmm.c
118 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftmm.c
120 ftotval.ppc.o: FT:src/base/ftotval.c
121 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftotval.c
123 ftpatent.ppc.o: FT:src/base/ftpatent.c
124 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftpatent.c
126 ftpfr.ppc.o: FT:src/base/ftpfr.c
127 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftpfr.c
129 ftstroke.ppc.o: FT:src/base/ftstroke.c
130 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftstroke.c
132 ftsynth.ppc.o: FT:src/base/ftsynth.c
133 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftsynth.c
135 fttype1.ppc.o: FT:src/base/fttype1.c
136 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/fttype1.c
138 ftwinfnt.ppc.o: FT:src/base/ftwinfnt.c
139 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftwinfnt.c
141 ftxf86.ppc.o: FT:src/base/ftxf86.c
142 $(CC) -c $(CFLAGS) -o $@ /FT/src/base/ftxf86.c
145 # FreeType2 library autofitting module
147 autofit.ppc.o: FT:src/autofit/autofit.c
148 $(CC) -c $(CFLAGS) -o $@ /FT/src/autofit/autofit.c
151 # FreeType2 library postscript hinting module
153 pshinter.ppc.o: FT:src/pshinter/pshinter.c
154 $(CC) -c $(CFLAGS) -o $@ /FT/src/pshinter/pshinter.c
157 # FreeType2 library PS support module
159 psaux.ppc.o: FT:src/psaux/psaux.c
160 $(CC) -c $(CFLAGS) -o $@ /FT/src/psaux/psaux.c
163 # FreeType2 library PS glyph names module
165 psnames.ppc.o: FT:src/psnames/psnames.c
166 $(CC) -c $(CFLAGS) -o $@ /FT/src/psnames/psnames.c
169 # FreeType2 library monochrome raster module
171 raster.ppc.o: FT:src/raster/raster.c
172 $(CC) -c $(CFLAGS) -o $@ /FT/src/raster/raster.c
175 # FreeType2 library anti-aliasing raster module
177 smooth.ppc.o: FT:src/smooth/smooth.c
178 $(CC) -c $(CFLAGS) -o $@ /FT/src/smooth/smooth.c
181 # FreeType2 library 'sfnt' module
183 sfnt.ppc.o: FT:src/sfnt/sfnt.c
184 $(CC) -c $(CFLAGS) -o $@ /FT/src/sfnt/sfnt.c
187 # FreeType2 library glyph and image caching system
189 ftcache.ppc.o: FT:src/cache/ftcache.c
190 $(CC) -c $(CFLAGS) -o $@ /FT/src/cache/ftcache.c
193 # FreeType2 library OpenType font driver
195 cff.ppc.o: FT:src/cff/cff.c
196 $(CC) -c $(CFLAGS) -o $@ /FT/src/cff/cff.c
199 # FreeType2 library TrueType font driver
201 truetype.ppc.o: FT:src/truetype/truetype.c
202 $(CC) -c $(CFLAGS) -o $@ /FT/src/truetype/truetype.c
205 # FreeType2 library Type1 font driver
207 type1.ppc.o: FT:src/type1/type1.c
208 $(CC) -c $(CFLAGS) -o $@ /FT/src/type1/type1.c
211 # FreeType2 library Type42 font driver
213 type42.ppc.o: FT:src/type42/type42.c
214 $(CC) -c $(CFLAGS) -o $@ /FT/src/type42/type42.c
217 # FreeType2 library CID-keyed Type1 font driver
219 type1cid.ppc.o: FT:src/cid/type1cid.c
220 $(CC) -c $(CFLAGS) -o $@ /FT/src/cid/type1cid.c
223 # FreeType2 library BDF bitmap font driver
225 bdf.ppc.o: FT:src/bdf/bdf.c
226 $(CC) -c $(CFLAGS) -o $@ /FT/src/bdf/bdf.c
229 # FreeType2 library PCF bitmap font driver
231 pcf.ppc.o: FT:src/pcf/pcf.c
232 $(CC) -c $(CFLAGS) -o $@ /FT/src/pcf/pcf.c
235 # FreeType2 library gzip support for compressed PCF bitmap fonts
237 gzip.ppc.o: FT:src/gzip/ftgzip.c
238 $(CC) -c $(CFLAGS) -o $@ /FT/src/gzip/ftgzip.c
241 # FreeType2 library compress support for compressed PCF bitmap fonts
243 lzw.ppc.o: FT:src/lzw/ftlzw.c
244 $(CC) -c $(CFLAGS) -o $@ /FT/src/lzw/ftlzw.c
247 # FreeType2 library PFR font driver
249 pfr.ppc.o: FT:src/pfr/pfr.c
250 $(CC) -c $(CFLAGS) -o $@ /FT/src/pfr/pfr.c
253 # FreeType2 library Windows FNT/FON bitmap font driver
255 winfnt.ppc.o: FT:src/winfonts/winfnt.c
256 $(CC) -c $(CFLAGS) -o $@ /FT/src/winfonts/winfnt.c
259 # FreeType2 library TrueTypeGX Validator
261 gxvalid.ppc.o: FT:src/gxvalid/gxvalid.c
262 $(CC) -c $(CFLAGS) -Wno-aggregate-return -o $@ /FT/src/gxvalid/gxvalid.c
265 # FreeType2 library OpenType validator
267 otvalid.ppc.o: FT:src/otvalid/otvalid.c
268 $(CC) -c $(CFLAGS) -o $@ /FT/src/otvalid/otvalid.c
270 BASE = ftbase.ppc.o ftbbox.ppc.o ftbdf.ppc.o ftbitmap.ppc.o ftcid.ppc.o \
271 ftfstype.ppc.o ftgasp.ppc.o ftglyph.ppc.o ftgxval.ppc.o \
272 ftlcdfil.ppc.o ftmm.ppc.o ftotval.ppc.o ftpatent.ppc.o ftpfr.ppc.o \
273 ftstroke.ppc.o ftsynth.ppc.o fttype1.ppc.o ftwinfnt.ppc.o \
276 DEBUG = ftdebug.ppc.o ftdebugpure.ppc.o
284 PS = psaux.ppc.o psnames.ppc.o pshinter.ppc.o
286 RASTER = raster.ppc.o smooth.ppc.o
288 FONTD = cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\
289 bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o
291 libft2_ppc.a: $(BASE) $(AFIT) $(GXV) $(OTV) $(PS) $(RASTER) sfnt.ppc.o ftcache.ppc.o $(FONTD) gzip.ppc.o lzw.ppc.o
292 $(AR) r $@ $(BASE) $(AFIT) $(GXV) $(OTV) $(PS) $(RASTER) sfnt.ppc.o ftcache.ppc.o $(FONTD) gzip.ppc.o lzw.ppc.o