summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype/freetype-1.5/test/arch/amigaos/smakefile
blob: 07f0ed50fc20788786a20a0a05723039effe4d09 (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
# This file is part of the FreeType project.
#
# It builds the library and test programs for amiga using SAS/C
# and smake
#
# Use this file while in the 'test/arch/amigaos' directory with
# the following statements:
#
#  smake assign
#  smake
#
# the 'assign' step creates an assignment to simplify referencing
# the core library module, as smake has quite a few limitations in
# dealing with multi-directory projects.
#
#
# Copyright 1996-2001 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# 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.

OBJB = ttapi.o    ttcache.o ttcalc.o  ttcmap.o   ttdebug.o \
       ttextend.o ttfile.o  ttgload.o ttinterp.o ttload.o \
       ttmemory.o ttmutex.o ttobjs.o  ttraster.o

OBJS = freetype.o

OBJX = ftxgasp.o ftxkern.o ftxpost.o ftxcmap.o ftxwidth.o \
       ftxsbit.o ftxgsub.o ftxgpos.o ftxgdef.o ftxopen.o

CORE = FT:lib/
COREXT = $(CORE)extend/
TST = FT:test/

OPTIMIZER = optimize optcomp=5 optdep=4 optinlocal optrdep=4

SCFLAGS = idlen=40 idir=$(CORE)arch/amigaos idir=$(CORE) idir=$(COREXT)

TSCFLAGS = $(SCFLAGS) idir=$(TST)

LIB=ttf.lib
TOPTS=$(TSCFLAGS) link lib=$(LIB) lib=lib:scm.lib \
      lib=lib:sc.lib lib=lib:amiga.lib

EXE = ftzoom ftlint ftview fttimer ftmetric \
      ftdump ftstring ftstrpnm ftsbit ftstrtto

TOBJ = gw_amiga.o gmain.o common.o textdisp.o blitter.o display.o

all:	ttf.lib $(EXE)

assign:
	assign FT: ///

ttf.lib: $(OBJS) $(OBJX)
	oml $@ r $(OBJS) $(OBJX) 

ttfdbg.lib: $(OBJB) $(OBJX)
	oml $@ r $(OBJB) $(OBJX) 

clean:
	-delete \#?.o
	-delete //\#?.o
	-delete \#?.lib
	-delete $(EXE)


#
# freetype library core single object
#
freetype.o: $(CORE)arch/amigaos/freetype.c
	sc $(SCFLAGS) code=far $(OPTIMIZER) objname=$@ $<

#
# freetype library core as separate objects
#
ttapi.o: $(CORE)ttapi.c
	sc $(SCFLAGS) objname=$@ $<
ttcache.o: $(CORE)ttcache.c
	sc $(SCFLAGS) objname=$@ $<
ttcalc.o: $(CORE)ttcalc.c
	sc $(SCFLAGS) objname=$@ $<
ttcmap.o: $(CORE)ttcmap.c
	sc $(SCFLAGS) objname=$@ $<
ttdebug.o: $(CORE)ttdebug.c
	sc $(SCFLAGS) objname=$@ $<
ttextend.o: $(CORE)ttextend.c
	sc $(SCFLAGS) objname=$@ $<
ttfile.o: $(CORE)ttfile.c
	sc $(SCFLAGS) objname=$@ $<
ttgload.o: $(CORE)ttgload.c
	sc $(SCFLAGS) objname=$@ $<
ttinterp.o: $(CORE)ttinterp.c
	sc $(SCFLAGS) objname=$@ $<
ttload.o: $(CORE)ttload.c
	sc $(SCFLAGS) objname=$@ $<
ttmemory.o: $(CORE)ttmemory.c
	sc $(SCFLAGS) objname=$@ $<
ttmutex.o: $(CORE)ttmutex.c
	sc $(SCFLAGS) objname=$@ $<
ttobjs.o: $(CORE)ttobjs.c
	sc $(SCFLAGS) objname=$@ $<
ttraster.o: $(CORE)ttraster.c
	sc $(SCFLAGS) objname=$@ $<

#
# library extentions
#
ftxgasp.o: $(COREXT)ftxgasp.c
	sc $(SCFLAGS) objname=$@ $<
ftxkern.o: $(COREXT)ftxkern.c
	sc $(SCFLAGS) objname=$@ $<
ftxpost.o: $(COREXT)ftxpost.c
	sc $(SCFLAGS) objname=$@ $<
ftxcmap.o: $(COREXT)ftxcmap.c
	sc $(SCFLAGS) objname=$@ $<
ftxwidth.o: $(COREXT)ftxwidth.c
	sc $(SCFLAGS) objname=$@ $<
ftxsbit.o: $(COREXT)ftxsbit.c
	sc $(SCFLAGS) objname=$@ $<
ftxgsub.o: $(COREXT)ftxgsub.c
	sc $(SCFLAGS) objname=$@ $<
ftxgpos.o: $(COREXT)ftxgpos.c
	sc $(SCFLAGS) objname=$@ $< code=far
ftxgdef.o: $(COREXT)ftxgdef.c
	sc $(SCFLAGS) objname=$@ $<
ftxopen.o: $(COREXT)ftxopen.c
	sc $(SCFLAGS) objname=$@ $<

#
# Test programs
#
ftzoom: $(TST)ftzoom.c $(TOBJ) $(LIB)
	sc $(TST)ftzoom.c programname=$@ $(TOBJ) $(TOPTS)

ftlint: $(TST)ftlint.c common.o $(LIB)
	sc $(TST)ftlint.c programname=$@ common.o $(TOPTS)

ftdump: $(TST)ftdump.c common.o $(LIB)
	sc $(TST)ftdump.c programname=$@ common.o $(TOPTS)

# use unsigned char so full latin1 encoding may be used in string argument
ftstring: $(TST)ftstring.c $(TOBJ) $(LIB)
	sc $(TST)ftstring.c uchar programname=$@ $(TOBJ) $(TOPTS)

ftview: $(TST)ftview.c $(TOBJ) $(LIB)
	sc $(TST)ftview.c programname=$@ $(TOBJ) $(TOPTS)

fttimer: $(TST)fttimer.c $(TOBJ) $(LIB)
	sc $(TST)fttimer.c programname=$@ $(TOBJ) $(TOPTS)

ftstrpnm: $(TST)ftstrpnm.c common.o $(LIB)
	sc $(TST)ftstrpnm.c uchar programname=$@ common.o $(TOPTS)

ftsbit: $(TST)ftsbit.c common.o textdisp.o $(LIB)
	sc $(TST)ftsbit.c programname=$@ common.o textdisp.o $(TOPTS)

ftmetric: $(TST)ftmetric.c common.o textdisp.o $(LIB)
	sc $(TST)ftmetric.c programname=$@ common.o textdisp.o $(TOPTS)

# use unsigned char so full latin1/UTF8 encoding may be used in argument
ftstrtto: $(TST)ftstrtto.c $(TOBJ) arabic.o $(LIB)
	sc $(TST)ftstrtto.c uchar programname=$@ $(TOBJ) \
           arabic.o $(TOPTS)

#
# Test program support modules
#

gw_amiga.o: gw_amiga.c 
	sc gw_amiga.c $(TSCFLAGS)

common.o: $(TST)common.c
	sc $(TSCFLAGS) objname=$@ $<

textdisp.o: $(TST)textdisp.c
	sc $(TSCFLAGS) objname=$@ $<

blitter.o: $(TST)blitter.c
	sc $(TSCFLAGS) objname=$@ $<

display.o: $(TST)display.c
	sc $(TSCFLAGS) objname=$@ $<

gmain.o: $(TST)gmain.c
	sc $(TSCFLAGS) objname=$@ $<

arabic.o: $(TST)arabic.c
	sc $(TSCFLAGS) objname=$@ $<

# end of smakefile