update for HEAD-2003050101
[reactos.git] / lib / freetype / builds / amiga / smakefile
1 #
2 # Makefile for FreeType2 link library using Amiga SAS/C 6.58
3 #
4 # to build from the builds/amiga directory call
5 #
6 #  smake assign
7 #  smake
8 #
9 # Your programs source code should start with this
10 # (uncomment the parts you do not need to keep the program small):
11 # ---8<---
12 #define FT_USE_AUTOHINT // autohinter
13 #define FT_USE_RASTER   // monochrome rasterizer
14 #define FT_USE_SMOOTH   // anti-aliasing rasterizer
15 #define FT_USE_TT       // truetype font driver
16 #define FT_USE_T1       // type1 font driver
17 #define FT_USE_T42      // type42 font driver
18 #define FT_USE_T1CID    // cid-keyed type1 font driver
19 #define FT_USE_CFF      // opentype font driver
20 #define FT_USE_BDF      // bdf bitmap font driver
21 #define FT_USE_PCF      // pcf bitmap font driver
22 #define FT_USE_PFR      // pfr font driver
23 #define FT_USE_WINFNT   // windows .fnt|.fon bitmap font driver
24 #include "FT:src/base/ftinit.c"
25 # ---8<---
26 #
27 # link your programs with ft2_680x0.lib and either ftsystem.o or ftsystempure.o
28 # (and either ftdebug.o or ftdebugpure.o if you enabled FT_DEBUG_LEVEL_ERROR or
29 # FT_DEBUG_LEVEL_TRACE in include/freetype/config/ftoption.h).
30
31 OBJBASE = ftbase.o ftglyph.o ftbbox.o ftmm.o ftsynth.o
32
33 OBJSYSTEM = ftsystem.o ftsystempure.o
34
35 OBJDEBUG = ftdebug.o ftdebugpure.o
36
37 OBJAHINT = autohint.o ahoptim.o
38
39 OBJPSHINT = pshinter.o
40
41 OBJPSAUX = psaux.o
42
43 OBJPSNAM = psnames.o
44
45 OBJRAST = raster.o
46
47 OBJSMOOTH = smooth.o
48
49 OBJSFNT = sfnt.o
50
51 OBJCACHE = ftcache.o
52
53 OBJPS = $(OBJPSAUX) $(OBJPSNAM) $(OBJPSHINT)
54
55 OBJRASTER = $(OBJRAST) $(OBJSMOOTH)
56
57 OBJFONTD = cff.o type1.o type42.o type1cid.o\
58            truetype.o winfnt.o bdf.o pcf.o pfr.o
59
60 CORE = FT:src/
61
62 CPU       = 68000
63 #CPU      = 68020
64 #CPU      = 68030
65 #CPU      = 68040
66 #CPU      = 68060
67
68 OPTIMIZER = optinlocal
69
70 SCFLAGS = optimize opttime optsched strmerge strsect=near idlen=40 cpu=$(CPU)\
71           idir=include/ idir=$(CORE) idir=FT:include/ nostackcheck nochkabort\
72           noicons ignore=79,85,110,306 parameters=both
73
74 LIB  = ft2_$(CPU).lib
75
76 # sample linker options
77 OPTS = link lib=$(LIB),lib:sc.lib,lib:amiga.lib,lib:debug.lib\
78        smallcode smalldata noicons utillib
79
80 # sample program entry
81 #myprog: myprog.c ftsystem.o $(LIB)
82 #       sc $< programname=$@ ftsystem.o $(SCFLAGS) $(OPTS)
83
84 all:    $(LIB) $(OBJSYSTEM) $(OBJDEBUG)
85
86 assign:
87         assign FT: //
88
89 # uses separate object modules in lib to make for easier debugging
90 # also, can make smaller programs if entire engine is not used
91 ft2_$(CPU).lib:  $(OBJBASE) $(OBJAHINT) $(OBJPS) $(OBJRASTER) $(OBJSFNT) $(OBJCACHE) $(OBJFONTD)
92         oml $@ r $(OBJBASE) $(OBJAHINT) $(OBJPS) $(OBJRASTER) $(OBJSFNT) $(OBJCACHE) $(OBJFONTD)
93
94 clean:
95         -delete \#?.o
96
97 realclean: clean
98         -delete ft2$(CPU).lib
99
100 #
101 # freetype library base
102 #
103 ftbase.o: $(CORE)base/ftbase.c
104         sc $(SCFLAGS) objname=$@ $<
105 ftinit.o: $(CORE)base/ftinit.c
106         sc $(SCFLAGS) objname=$@ $<
107 ftsystem.o: $(CORE)base/ftsystem.c
108         sc $(SCFLAGS) objname=$@ $<
109 ftsystempure.o: src/base/ftsystem.c     ## pure version for use in run-time library etc
110         sc $(SCFLAGS) objname=$@ $<
111 ftdebug.o: $(CORE)base/ftdebug.c
112         sc $(SCFLAGS) objname=$@ $<
113 ftdebugpure.o: src/base/ftdebug.c       ## pure version for use in run-time library etc
114         sc $(SCFLAGS) objname=$@ $<
115 #
116 # freetype library base extensions
117 #
118 ftglyph.o: $(CORE)base/ftglyph.c
119         sc $(SCFLAGS) objname=$@ $<
120 ftbbox.o: $(CORE)base/ftbbox.c
121         sc $(SCFLAGS) objname=$@ $<
122 ftmm.o: $(CORE)base/ftmm.c
123         sc $(SCFLAGS) objname=$@ $<
124 ftsynth.o: $(CORE)base/ftsynth.c
125         sc $(SCFLAGS) objname=$@ $<
126
127 #
128 # freetype library autohinting module
129 #
130 autohint.o: $(CORE)autohint/autohint.c
131         sc $(SCFLAGS) objname=$@ $<
132 #
133 # freetype library autohinting module extensions
134 #
135 ahoptim.o: $(CORE)autohint/ahoptim.c
136         sc $(SCFLAGS) objname=$@ $<
137
138 #
139 # freetype library PS hinting module
140 #
141 pshinter.o: $(CORE)pshinter/pshinter.c
142         sc $(SCFLAGS) objname=$@ $<
143 #
144 # freetype library PS support module
145 #
146 psaux.o: $(CORE)psaux/psaux.c
147         sc $(SCFLAGS) objname=$@ $<
148
149 #
150 # freetype library PS glyph names module
151 #
152 psnames.o: $(CORE)psnames/psnames.c
153         sc $(SCFLAGS) objname=$@ $<
154
155 #
156 # freetype library monochrome raster module
157 #
158 raster.o: $(CORE)raster/raster.c
159         sc $(SCFLAGS) objname=$@ $<
160
161 #
162 # freetype library anti-aliasing raster module
163 #
164 smooth.o: $(CORE)smooth/smooth.c
165         sc $(SCFLAGS) objname=$@ $<
166
167 #
168 # freetype library 'sfnt' module
169 #
170 sfnt.o: $(CORE)sfnt/sfnt.c
171         sc $(SCFLAGS) objname=$@ $<
172
173 #
174 # freetype library glyph and image caching system (still experimental)
175 #
176 ftcache.o: $(CORE)cache/ftcache.c
177         sc $(SCFLAGS) objname=$@ $<
178
179 #
180 # freetype library OpenType font driver
181 #
182 cff.o: $(CORE)cff/cff.c
183         sc $(SCFLAGS) objname=$@ $<
184
185 #
186 # freetype library TrueType font driver
187 #
188 truetype.o: $(CORE)truetype/truetype.c
189         sc $(SCFLAGS) objname=$@ $<
190
191 #
192 # freetype library Type1 font driver
193 #
194 type1.o: $(CORE)type1/type1.c
195         sc $(SCFLAGS) objname=$@ $<
196
197 #
198 # FreeType2 library Type42 font driver
199 #
200 type42.o: $(CORE)type42/type42.c
201         sc $(SCFLAGS) objname=$@ $<
202
203 #
204 # freetype library CID-keyed Type1 font driver
205 #
206 type1cid.o: $(CORE)cid/type1cid.c
207         sc $(SCFLAGS) objname=$@ $<
208 #
209 # freetype library CID-keyed Type1 font driver extensions
210 #
211 #cidafm.o: $(CORE)cid/cidafm.c
212 #       sc $(SCFLAGS) objname=$@ $<
213
214 #
215 # freetype library BDF bitmap font driver
216 #
217 bdf.o: $(CORE)bdf/bdf.c
218         sc $(SCFLAGS) objname=$@ $<
219
220 #
221 # freetype library PCF bitmap font driver
222 #
223 pcf.o: $(CORE)pcf/pcf.c
224         sc $(SCFLAGS) objname=$@ $<
225
226 #
227 # freetype library PFR font driver
228 #
229 pfr.o: $(CORE)pfr/pfr.c
230         sc $(SCFLAGS) objname=$@ $<
231
232 #
233 # freetype library Windows FNT/FON bitmap font driver
234 #
235 winfnt.o: $(CORE)winfonts/winfnt.c
236         sc $(SCFLAGS) objname=$@ $<