1 # |
|
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) |
|
5 # |
|
6 |
|
7 |
|
8 # Copyright 2005, 2006, 2007, 2009 by |
|
9 # Werner Lemberg and Detlef Würkner. |
|
10 # |
|
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 |
|
15 # fully. |
|
16 |
|
17 |
|
18 # |
|
19 # to build from the builds/amiga directory call |
|
20 # |
|
21 # make assign |
|
22 # make |
|
23 # |
|
24 # Your programs source code should start with this |
|
25 # (uncomment the parts you do not need to keep the program small): |
|
26 # ---8<--- |
|
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" |
|
42 # ---8<--- |
|
43 # |
|
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). |
|
47 |
|
48 all: libft2_ppc.a ftsystem.ppc.o ftsystempure.ppc.o |
|
49 |
|
50 assign: |
|
51 assign FT: // |
|
52 |
|
53 FTSRC = /FT/src |
|
54 |
|
55 CC = ppc-morphos-gcc |
|
56 AR = ppc-morphos-ar rc |
|
57 RANLIB = ppc-morphos-ranlib |
|
58 LD = ppc-morphos-ld |
|
59 CFLAGS = -DFT2_BUILD_LIBRARY -O2 -I/emu/emulinclude/includegcc -I/emu/include -Iinclude -I$(FTSRC) -I/FT/include |
|
60 |
|
61 # |
|
62 # FreeType2 library base |
|
63 # |
|
64 ftbase.ppc.o: $(FTSRC)/base/ftbase.c |
|
65 $(CC) -c $(CFLAGS) -o $@ $< |
|
66 |
|
67 ftinit.ppc.o: $(FTSRC)/base/ftinit.c |
|
68 $(CC) -c $(CFLAGS) -o $@ $< |
|
69 |
|
70 ftsystem.ppc.o: $(FTSRC)/base/ftsystem.c |
|
71 $(CC) -c $(CFLAGS) -o $@ $< |
|
72 |
|
73 # pure version for use in run-time library etc |
|
74 ftsystempure.ppc.o: src/base/ftsystem.c |
|
75 $(CC) -c $(CFLAGS) -o $@ $< |
|
76 |
|
77 ftdebug.ppc.o: $(FTSRC)/base/ftdebug.c |
|
78 $(CC) -c $(CFLAGS) -o $@ $< |
|
79 |
|
80 # pure version for use in run-time library etc |
|
81 ftdebugpure.ppc.o: src/base/ftdebug.c |
|
82 $(CC) -c $(CFLAGS) -o $@ $< |
|
83 |
|
84 # |
|
85 # FreeType2 library base extensions |
|
86 # |
|
87 ftbbox.ppc.o: $(FTSRC)/base/ftbbox.c |
|
88 $(CC) -c $(CFLAGS) -o $@ $< |
|
89 |
|
90 ftbdf.ppc.o: $(FTSRC)/base/ftbdf.c |
|
91 $(CC) -c $(CFLAGS) -o $@ $< |
|
92 |
|
93 ftbitmap.ppc.o: $(FTSRC)/base/ftbitmap.c |
|
94 $(CC) -c $(CFLAGS) -o $@ $< |
|
95 |
|
96 ftcid.ppc.o: $(FTSRC)/base/ftcid.c |
|
97 $(CC) -c $(CFLAGS) -o $@ $< |
|
98 |
|
99 ftfstype.ppc.o: $(FTSRC)/base/ftfstype.c |
|
100 $(CC) -c $(CFLAGS) -o $@ $< |
|
101 |
|
102 ftgasp.ppc.o: $(FTSRC)/base/ftgasp.c |
|
103 $(CC) -c $(CFLAGS) -o $@ $< |
|
104 |
|
105 ftglyph.ppc.o: $(FTSRC)/base/ftglyph.c |
|
106 $(CC) -c $(CFLAGS) -o $@ $< |
|
107 |
|
108 ftgxval.ppc.o: $(FTSRC)/base/ftgxval.c |
|
109 $(CC) -c $(CFLAGS) -o $@ $< |
|
110 |
|
111 ftlcdfil.ppc.o: $(FTSRC)/base/ftlcdfil.c |
|
112 $(CC) -c $(CFLAGS) -o $@ $< |
|
113 |
|
114 ftmm.ppc.o: $(FTSRC)/base/ftmm.c |
|
115 $(CC) -c $(CFLAGS) -o $@ $< |
|
116 |
|
117 ftotval.ppc.o: $(FTSRC)/base/ftotval.c |
|
118 $(CC) -c $(CFLAGS) -o $@ $< |
|
119 |
|
120 ftpatent.ppc.o: $(FTSRC)/base/ftpatent.c |
|
121 $(CC) -c $(CFLAGS) -o $@ $< |
|
122 |
|
123 ftpfr.ppc.o: $(FTSRC)/base/ftpfr.c |
|
124 $(CC) -c $(CFLAGS) -o $@ $< |
|
125 |
|
126 ftstroke.ppc.o: $(FTSRC)/base/ftstroke.c |
|
127 $(CC) -c $(CFLAGS) -o $@ $< |
|
128 |
|
129 ftsynth.ppc.o: $(FTSRC)/base/ftsynth.c |
|
130 $(CC) -c $(CFLAGS) -o $@ $< |
|
131 |
|
132 fttype1.ppc.o: $(FTSRC)/base/fttype1.c |
|
133 $(CC) -c $(CFLAGS) -o $@ $< |
|
134 |
|
135 ftwinfnt.ppc.o: $(FTSRC)/base/ftwinfnt.c |
|
136 $(CC) -c $(CFLAGS) -o $@ $< |
|
137 |
|
138 ftxf86.ppc.o: $(FTSRC)/base/ftxf86.c |
|
139 $(CC) -c $(CFLAGS) -o $@ $< |
|
140 |
|
141 # |
|
142 # FreeType2 library autofitting module |
|
143 # |
|
144 autofit.ppc.o: $(FTSRC)/autofit/autofit.c |
|
145 $(CC) -c $(CFLAGS) -o $@ $< |
|
146 |
|
147 # |
|
148 # FreeType2 library postscript hinting module |
|
149 # |
|
150 pshinter.ppc.o: $(FTSRC)/pshinter/pshinter.c |
|
151 $(CC) -c $(CFLAGS) -o $@ $< |
|
152 |
|
153 # |
|
154 # FreeType2 library PS support module |
|
155 # |
|
156 psaux.ppc.o: $(FTSRC)/psaux/psaux.c |
|
157 $(CC) -c $(CFLAGS) -o $@ $< |
|
158 |
|
159 # |
|
160 # FreeType2 library PS glyph names module |
|
161 # |
|
162 psnames.ppc.o: $(FTSRC)/psnames/psnames.c |
|
163 $(CC) -c $(CFLAGS) -o $@ $< |
|
164 |
|
165 # |
|
166 # FreeType2 library monochrome raster module |
|
167 # |
|
168 raster.ppc.o: $(FTSRC)/raster/raster.c |
|
169 $(CC) -c $(CFLAGS) -o $@ $< |
|
170 |
|
171 # |
|
172 # FreeType2 library anti-aliasing raster module |
|
173 # |
|
174 smooth.ppc.o: $(FTSRC)/smooth/smooth.c |
|
175 $(CC) -c $(CFLAGS) -o $@ $< |
|
176 |
|
177 # |
|
178 # FreeType2 library 'sfnt' module |
|
179 # |
|
180 sfnt.ppc.o: $(FTSRC)/sfnt/sfnt.c |
|
181 $(CC) -c $(CFLAGS) -o $@ $< |
|
182 |
|
183 # |
|
184 # FreeType2 library glyph and image caching system |
|
185 # |
|
186 ftcache.ppc.o: $(FTSRC)/cache/ftcache.c |
|
187 $(CC) -c $(CFLAGS) -o $@ $< |
|
188 |
|
189 # |
|
190 # FreeType2 library OpenType font driver |
|
191 # |
|
192 cff.ppc.o: $(FTSRC)/cff/cff.c |
|
193 $(CC) -c $(CFLAGS) -o $@ $< |
|
194 |
|
195 # |
|
196 # FreeType2 library TrueType font driver |
|
197 # |
|
198 truetype.ppc.o: $(FTSRC)/truetype/truetype.c |
|
199 $(CC) -c $(CFLAGS) -o $@ $< |
|
200 |
|
201 # |
|
202 # FreeType2 library Type1 font driver |
|
203 # |
|
204 type1.ppc.o: $(FTSRC)/type1/type1.c |
|
205 $(CC) -c $(CFLAGS) -o $@ $< |
|
206 |
|
207 # |
|
208 # FreeType2 library Type42 font driver |
|
209 # |
|
210 type42.ppc.o: $(FTSRC)/type42/type42.c |
|
211 $(CC) -c $(CFLAGS) -o $@ $< |
|
212 |
|
213 # |
|
214 # FreeType2 library CID-keyed Type1 font driver |
|
215 # |
|
216 type1cid.ppc.o: $(FTSRC)/cid/type1cid.c |
|
217 $(CC) -c $(CFLAGS) -o $@ $< |
|
218 |
|
219 # |
|
220 # FreeType2 library BDF bitmap font driver |
|
221 # |
|
222 bdf.ppc.o: $(FTSRC)/bdf/bdf.c |
|
223 $(CC) -c $(CFLAGS) -o $@ $< |
|
224 |
|
225 # |
|
226 # FreeType2 library PCF bitmap font driver |
|
227 # |
|
228 pcf.ppc.o: $(FTSRC)/pcf/pcf.c |
|
229 $(CC) -c $(CFLAGS) -o $@ $< |
|
230 |
|
231 # |
|
232 # FreeType2 library gzip support for compressed PCF bitmap fonts |
|
233 # |
|
234 gzip.ppc.o: $(FTSRC)/gzip/ftgzip.c |
|
235 $(CC) -c $(CFLAGS) -o $@ $< |
|
236 |
|
237 # FreeType2 library bzip2 support for compressed PCF bitmap fonts |
|
238 # |
|
239 bzip2.ppc.o: $(FTSRC)/bzip2/ftbzip2.c |
|
240 $(CC) -c $(CFLAGS) -o $@ $< |
|
241 |
|
242 # |
|
243 # FreeType2 library compress support for compressed PCF bitmap fonts |
|
244 # |
|
245 lzw.ppc.o: $(FTSRC)/lzw/ftlzw.c |
|
246 $(CC) -c $(CFLAGS) -o $@ $< |
|
247 |
|
248 # |
|
249 # FreeType2 library PFR font driver |
|
250 # |
|
251 pfr.ppc.o: $(FTSRC)/pfr/pfr.c |
|
252 $(CC) -c $(CFLAGS) -o $@ $< |
|
253 |
|
254 # |
|
255 # FreeType2 library Windows FNT/FON bitmap font driver |
|
256 # |
|
257 winfnt.ppc.o: $(FTSRC)/winfonts/winfnt.c |
|
258 $(CC) -c $(CFLAGS) -o $@ $< |
|
259 |
|
260 # |
|
261 # FreeType2 library TrueTypeGX Validator |
|
262 # |
|
263 gxvalid.ppc.o: $(FTSRC)/gxvalid/gxvalid.c |
|
264 $(CC) -c $(CFLAGS) -o $@ $< |
|
265 |
|
266 # |
|
267 # FreeType2 library OpenType validator |
|
268 # |
|
269 otvalid.ppc.o: $(FTSRC)/otvalid/otvalid.c |
|
270 $(CC) -c $(CFLAGS) -o $@ $< |
|
271 |
|
272 BASEPPC = ftbase.ppc.o ftbbox.ppc.o ftbdf.ppc.o ftbitmap.ppc.o ftcid.ppc.o \ |
|
273 ftfstype.ppc.o ftgasp.ppc.o ftglyph.ppc.o ftgxval.ppc.o \ |
|
274 ftlcdfil.ppc.o ftmm.ppc.o ftotval.ppc.o ftpatent.ppc.o ftpfr.ppc.o \ |
|
275 ftstroke.ppc.o ftsynth.ppc.o fttype1.ppc.o ftwinfnt.ppc.o \ |
|
276 ftxf86.ppc.o |
|
277 |
|
278 DEBUGPPC = ftdebug.ppc.o ftdebugpure.ppc.o |
|
279 |
|
280 AFITPPC = autofit.ppc.o |
|
281 |
|
282 GXVPPC = gxvalid.ppc.o |
|
283 |
|
284 OTVPPC = otvalid.ppc.o |
|
285 |
|
286 PSPPC = psaux.ppc.o psnames.ppc.o pshinter.ppc.o |
|
287 |
|
288 RASTERPPC = raster.ppc.o smooth.ppc.o |
|
289 |
|
290 FONTDPPC = cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\ |
|
291 bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o |
|
292 |
|
293 libft2_ppc.a: $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o bzip2.ppc.o lzw.ppc.o |
|
294 $(AR) $@ $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o bzip2.ppc.o lzw.ppc.o |
|
295 -@ ($(RANLIB) $@ || true) >/dev/null 2>&1 |
|
296 |
|
297 #Local Variables: |
|
298 #coding: latin-1 |
|
299 #End: |
|