aboutsummaryrefslogtreecommitdiff
path: root/freetype/builds/amiga/makefile
blob: 379883deec0d9fbabbd47595e5e0099373609e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
#
# Makefile for FreeType2 link library using ppc-morphos-gcc-2.95.3-bin.tgz
# (gcc 2.95.3 hosted on 68k-Amiga producing MorphOS-PPC-binaries from
# http://www.morphos.de)
#


# Copyright 2005, 2006, 2007, 2009 by
# Werner Lemberg and Detlef Würkner.
#
# This file is part of the FreeType project, and may only be used, modified,
# and distributed under the terms of the FreeType project license,
# LICENSE.TXT.  By continuing to use, modify, or distribute this file you
# indicate that you have read the license and understand and accept it
# fully.


#
# to build from the builds/amiga directory call
#
#  make assign
#  make
#
# Your programs source code should start with this
# (uncomment the parts you do not need to keep the program small):
# ---8<---
#define FT_USE_AUTOFIT // autofitter
#define FT_USE_RASTER  // monochrome rasterizer
#define FT_USE_SMOOTH  // anti-aliasing rasterizer
#define FT_USE_TT      // truetype font driver
#define FT_USE_T1      // type1 font driver
#define FT_USE_T42     // type42 font driver
#define FT_USE_T1CID   // cid-keyed type1 font driver
#define FT_USE_CFF     // opentype font driver
#define FT_USE_BDF     // bdf bitmap font driver
#define FT_USE_PCF     // pcf bitmap font driver
#define FT_USE_PFR     // pfr font driver
#define FT_USE_WINFNT  // windows .fnt|.fon bitmap font driver
#define FT_USE_OTV     // opentype validator
#define FT_USE_GXV     // truetype gx validator
#include "FT:src/base/ftinit.c"
# ---8<---
#
# link your programs with libft2_ppc.a and either ftsystem.ppc.o or ftsystempure.ppc.o
# (and either ftdebug.ppc.o or ftdebugpure.ppc.o if you enabled FT_DEBUG_LEVEL_ERROR or
# FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h).

all:	libft2_ppc.a ftsystem.ppc.o ftsystempure.ppc.o

assign:
	assign FT: //

FTSRC = /FT/src

CC =     ppc-morphos-gcc
AR =     ppc-morphos-ar rc
RANLIB = ppc-morphos-ranlib
LD =     ppc-morphos-ld
CFLAGS = -DFT2_BUILD_LIBRARY -O2 -I/emu/emulinclude/includegcc -I/emu/include -Iinclude -I$(FTSRC) -I/FT/include

#
# FreeType2 library base
#
ftbase.ppc.o: $(FTSRC)/base/ftbase.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftinit.ppc.o: $(FTSRC)/base/ftinit.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftsystem.ppc.o: $(FTSRC)/base/ftsystem.c
	$(CC) -c $(CFLAGS) -o $@ $<

# pure version for use in run-time library etc
ftsystempure.ppc.o: src/base/ftsystem.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftdebug.ppc.o: $(FTSRC)/base/ftdebug.c
	$(CC) -c $(CFLAGS) -o $@ $<

# pure version for use in run-time library etc
ftdebugpure.ppc.o: src/base/ftdebug.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library base extensions
#
ftbbox.ppc.o: $(FTSRC)/base/ftbbox.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftbdf.ppc.o: $(FTSRC)/base/ftbdf.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftbitmap.ppc.o: $(FTSRC)/base/ftbitmap.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftcid.ppc.o: $(FTSRC)/base/ftcid.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftfstype.ppc.o: $(FTSRC)/base/ftfstype.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftgasp.ppc.o: $(FTSRC)/base/ftgasp.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftglyph.ppc.o: $(FTSRC)/base/ftglyph.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftgxval.ppc.o: $(FTSRC)/base/ftgxval.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftlcdfil.ppc.o: $(FTSRC)/base/ftlcdfil.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftmm.ppc.o: $(FTSRC)/base/ftmm.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftotval.ppc.o: $(FTSRC)/base/ftotval.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftpatent.ppc.o: $(FTSRC)/base/ftpatent.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftpfr.ppc.o: $(FTSRC)/base/ftpfr.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftstroke.ppc.o: $(FTSRC)/base/ftstroke.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftsynth.ppc.o: $(FTSRC)/base/ftsynth.c
	$(CC) -c $(CFLAGS) -o $@ $<

fttype1.ppc.o: $(FTSRC)/base/fttype1.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftwinfnt.ppc.o: $(FTSRC)/base/ftwinfnt.c
	$(CC) -c $(CFLAGS) -o $@ $<

ftxf86.ppc.o: $(FTSRC)/base/ftxf86.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library autofitting module
#
autofit.ppc.o: $(FTSRC)/autofit/autofit.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library postscript hinting module
#
pshinter.ppc.o: $(FTSRC)/pshinter/pshinter.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library PS support module
#
psaux.ppc.o: $(FTSRC)/psaux/psaux.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library PS glyph names module
#
psnames.ppc.o: $(FTSRC)/psnames/psnames.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library monochrome raster module
#
raster.ppc.o: $(FTSRC)/raster/raster.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library anti-aliasing raster module
#
smooth.ppc.o: $(FTSRC)/smooth/smooth.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library 'sfnt' module
#
sfnt.ppc.o: $(FTSRC)/sfnt/sfnt.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library glyph and image caching system
#
ftcache.ppc.o: $(FTSRC)/cache/ftcache.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library OpenType font driver
#
cff.ppc.o: $(FTSRC)/cff/cff.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library TrueType font driver
#
truetype.ppc.o: $(FTSRC)/truetype/truetype.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library Type1 font driver
#
type1.ppc.o: $(FTSRC)/type1/type1.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library Type42 font driver
#
type42.ppc.o: $(FTSRC)/type42/type42.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library CID-keyed Type1 font driver
#
type1cid.ppc.o: $(FTSRC)/cid/type1cid.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library BDF bitmap font driver
#
bdf.ppc.o: $(FTSRC)/bdf/bdf.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library PCF bitmap font driver
#
pcf.ppc.o: $(FTSRC)/pcf/pcf.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library gzip support for compressed PCF bitmap fonts
#
gzip.ppc.o: $(FTSRC)/gzip/ftgzip.c
	$(CC) -c $(CFLAGS) -o $@ $<

# FreeType2 library bzip2 support for compressed PCF bitmap fonts
#
bzip2.ppc.o: $(FTSRC)/bzip2/ftbzip2.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library compress support for compressed PCF bitmap fonts
#
lzw.ppc.o: $(FTSRC)/lzw/ftlzw.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library PFR font driver
#
pfr.ppc.o: $(FTSRC)/pfr/pfr.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library Windows FNT/FON bitmap font driver
#
winfnt.ppc.o: $(FTSRC)/winfonts/winfnt.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library TrueTypeGX Validator
#
gxvalid.ppc.o: $(FTSRC)/gxvalid/gxvalid.c
	$(CC) -c $(CFLAGS) -o $@ $<

#
# FreeType2 library OpenType validator
#
otvalid.ppc.o: $(FTSRC)/otvalid/otvalid.c
	$(CC) -c $(CFLAGS) -o $@ $<

BASEPPC = ftbase.ppc.o ftbbox.ppc.o ftbdf.ppc.o ftbitmap.ppc.o ftcid.ppc.o   \
	  ftfstype.ppc.o ftgasp.ppc.o ftglyph.ppc.o ftgxval.ppc.o            \
	  ftlcdfil.ppc.o ftmm.ppc.o ftotval.ppc.o ftpatent.ppc.o ftpfr.ppc.o \
	  ftstroke.ppc.o ftsynth.ppc.o fttype1.ppc.o ftwinfnt.ppc.o          \
	  ftxf86.ppc.o

DEBUGPPC = ftdebug.ppc.o ftdebugpure.ppc.o

AFITPPC = autofit.ppc.o

GXVPPC = gxvalid.ppc.o

OTVPPC = otvalid.ppc.o

PSPPC = psaux.ppc.o psnames.ppc.o pshinter.ppc.o

RASTERPPC = raster.ppc.o smooth.ppc.o

FONTDPPC = cff.ppc.o type1.ppc.o type42.ppc.o type1cid.ppc.o truetype.ppc.o\
	   bdf.ppc.o pcf.ppc.o pfr.ppc.o winfnt.ppc.o

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
	$(AR) $@ $(BASEPPC) $(AFITPPC) $(GXVPPC) $(OTVPPC) $(PSPPC) $(RASTERPPC) sfnt.ppc.o ftcache.ppc.o $(FONTDPPC) gzip.ppc.o bzip2.ppc.o lzw.ppc.o
	-@ ($(RANLIB) $@ || true) >/dev/null 2>&1

#Local Variables:
#coding: latin-1
#End: