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