1
|
1 |
# %W% %E%
|
|
2 |
#
|
|
3 |
# -------------- no need to change anything below ----------
|
|
4 |
|
|
5 |
LIBNAME=libbasic
|
|
6 |
LIB=libbasic.$(A)
|
|
7 |
SUBDIRS=
|
|
8 |
|
|
9 |
TOP=..
|
|
10 |
I = $(INCLUDE)
|
|
11 |
|
|
12 |
STCFLAGS= -H../include -warnGlobalAssign $(STCOPT)
|
|
13 |
|
|
14 |
OBJS= Object.$(O) Unix.$(O) Magnitude.$(O) MsgTally.$(O) Point.$(O) \
|
|
15 |
Rectangle.$(O) Assoc.$(O) ArithVal.$(O) \
|
|
16 |
Context.$(O) BContext.$(O) CCReader.$(O) Block.$(O) Message.$(O) Smalltalk.$(O) \
|
|
17 |
UndefObj.$(O) Behavior.$(O) MiniDebug.$(O) MiniIns.$(O) Coll.$(O) \
|
|
18 |
Link.$(O) ValLink.$(O) Boolean.$(O) Stream.$(O) Character.$(O) \
|
|
19 |
Number.$(O) ObjMem.$(O) \
|
|
20 |
Time.$(O) OrdColl.$(O) SeqColl.$(O) Bag.$(O) Set.$(O) \
|
|
21 |
Date.$(O) True.$(O) False.$(O) ClassDescr.$(O) Class.$(O) Method.$(O) \
|
|
22 |
FileDir.$(O) Integer.$(O) \
|
|
23 |
Random.$(O) PosStream.$(O) Metaclass.$(O) Float.$(O) Fraction.$(O) \
|
|
24 |
LargeInt.$(O) \
|
|
25 |
SmallInt.$(O) Interval.$(O) LinkList.$(O) Dict.$(O) ArrColl.$(O) \
|
|
26 |
ReadStr.$(O) WriteStr.$(O) Array.$(O) VarArray.$(O) VarString.$(O) \
|
|
27 |
IntArray.$(O) ByteArray.$(O) RWStream.$(O) IdDict.$(O) ShIdDict.$(O) \
|
|
28 |
ShadowArr.$(O) Text.$(O) String.$(O) ActorStr.$(O) \
|
|
29 |
ExtStream.$(O) ByteString.$(O) \
|
|
30 |
FileText.$(O) Symbol.$(O) NPExtStr.$(O) FileStr.$(O) PipeStr.$(O) \
|
|
31 |
DirStr.$(O) PrintStr.$(O) Socket.$(O) \
|
|
32 |
Autoload.$(O) BCCReader.$(O) ExtBytes.$(O) \
|
|
33 |
Process.$(O) ProcSched.$(O) SortColl.$(O) UIBytes.$(O) \
|
|
34 |
ChangeSet.$(O) Change.$(O) ClsDefChg.$(O) ClsComChg.$(O) MethodChg.$(O) \
|
|
35 |
Signal.$(O) SignalSet.$(O) Exception.$(O) Semaphore.$(O) SharedQueue.$(O) \
|
2
|
36 |
Registry.$(O) SoundStr.$(O) \
|
|
37 |
FloatArray.$(O) DoubleArray.$(O) MappedColl.$(O)
|
1
|
38 |
|
|
39 |
AUXOBJS= Polygon.$(O) Filename.$(O) CacheDict.$(O) IdSet.$(O) Project.$(O)
|
|
40 |
|
|
41 |
all:: $(OBJTARGET)
|
|
42 |
|
|
43 |
objs:: level0 \
|
|
44 |
level1 \
|
|
45 |
level2 \
|
|
46 |
level3 \
|
|
47 |
level4 \
|
|
48 |
level5 \
|
|
49 |
level6 \
|
|
50 |
level7 \
|
|
51 |
level8 \
|
|
52 |
level9
|
|
53 |
|
|
54 |
level0:$(P) \
|
|
55 |
Object.$(O)
|
|
56 |
|
|
57 |
level1:$(P) \
|
|
58 |
Unix.$(O) \
|
|
59 |
Autoload.$(O) \
|
|
60 |
Magnitude.$(O) \
|
|
61 |
MsgTally.$(O) \
|
|
62 |
Rectangle.$(O) \
|
|
63 |
Assoc.$(O) \
|
|
64 |
Context.$(O) \
|
|
65 |
Signal.$(O) \
|
|
66 |
Exception.$(O) \
|
|
67 |
CCReader.$(O) \
|
|
68 |
Block.$(O) \
|
|
69 |
Message.$(O) \
|
|
70 |
Smalltalk.$(O) \
|
|
71 |
ObjMem.$(O) \
|
|
72 |
ProcSched.$(O) \
|
|
73 |
SharedQueue.$(O) \
|
|
74 |
UndefObj.$(O) \
|
|
75 |
Behavior.$(O) \
|
|
76 |
MiniDebug.$(O) \
|
|
77 |
MiniIns.$(O) \
|
|
78 |
Coll.$(O) \
|
|
79 |
Link.$(O) \
|
|
80 |
Boolean.$(O) \
|
|
81 |
Stream.$(O) \
|
|
82 |
Change.$(O) \
|
|
83 |
Registry.$(O) \
|
|
84 |
Project.$(O)
|
|
85 |
|
|
86 |
level2:$(P) \
|
|
87 |
BContext.$(O) \
|
|
88 |
Character.$(O) \
|
|
89 |
Process.$(O) \
|
|
90 |
ArithVal.$(O) \
|
|
91 |
Time.$(O) \
|
|
92 |
Date.$(O) \
|
|
93 |
True.$(O) \
|
|
94 |
False.$(O) \
|
|
95 |
ClassDescr.$(O) \
|
|
96 |
Method.$(O) \
|
2
|
97 |
MappedColl.$(O) \
|
1
|
98 |
SeqColl.$(O) \
|
|
99 |
Set.$(O) \
|
|
100 |
Bag.$(O) \
|
|
101 |
FileDir.$(O) \
|
|
102 |
Random.$(O) \
|
|
103 |
BCCReader.$(O) \
|
|
104 |
ValLink.$(O) \
|
|
105 |
ClassChg.$(O) \
|
|
106 |
PosStream.$(O)
|
|
107 |
|
|
108 |
level3:$(P) \
|
|
109 |
Class.$(O) \
|
|
110 |
Point.$(O) \
|
|
111 |
Number.$(O) \
|
|
112 |
Interval.$(O) \
|
|
113 |
LinkList.$(O) \
|
|
114 |
Dict.$(O) \
|
|
115 |
OrdColl.$(O) \
|
|
116 |
ArrColl.$(O) \
|
|
117 |
ReadStr.$(O) \
|
|
118 |
WriteStr.$(O) \
|
|
119 |
MethodChg.$(O) \
|
|
120 |
ClsDefChg.$(O) \
|
|
121 |
ClsComChg.$(O)
|
|
122 |
|
|
123 |
level4:$(P) \
|
|
124 |
Metaclass.$(O) \
|
|
125 |
Integer.$(O) \
|
|
126 |
Float.$(O) \
|
|
127 |
Fraction.$(O) \
|
|
128 |
Semaphore.$(O) \
|
|
129 |
Array.$(O) \
|
|
130 |
VarArray.$(O) \
|
|
131 |
VarString.$(O) \
|
|
132 |
IdDict.$(O) \
|
|
133 |
IntArray.$(O) \
|
|
134 |
FloatArray.$(O) \
|
|
135 |
DoubleArray.$(O) \
|
|
136 |
ExtBytes.$(O) \
|
|
137 |
SortColl.$(O) \
|
|
138 |
ChangeSet.$(O) \
|
|
139 |
RWStream.$(O)
|
|
140 |
|
|
141 |
level5:$(P) \
|
|
142 |
LargeInt.$(O) \
|
|
143 |
SmallInt.$(O) \
|
|
144 |
ShadowArr.$(O) \
|
|
145 |
ShIdDict.$(O) \
|
|
146 |
Text.$(O) \
|
|
147 |
ByteArray.$(O) \
|
|
148 |
ActorStr.$(O) \
|
|
149 |
ExtStream.$(O)
|
|
150 |
|
|
151 |
level6:$(P) \
|
|
152 |
FileText.$(O) \
|
|
153 |
String.$(O) \
|
|
154 |
UIBytes.$(O) \
|
|
155 |
NPExtStr.$(O) \
|
|
156 |
FileStr.$(O)
|
|
157 |
|
|
158 |
level7:$(P) \
|
|
159 |
ByteString.$(O) \
|
|
160 |
SoundStr.$(O) \
|
|
161 |
Symbol.$(O) \
|
|
162 |
PipeStr.$(O) \
|
|
163 |
Socket.$(O) \
|
|
164 |
DirStr.$(O)
|
|
165 |
|
|
166 |
level8:$(P) \
|
|
167 |
PrintStr.$(O)
|
|
168 |
|
|
169 |
level9:$(P)
|
|
170 |
|
|
171 |
level10: \
|
|
172 |
Polygon.$(O) \
|
|
173 |
Filename.$(O) \
|
|
174 |
CacheDict.$(O) \
|
|
175 |
IdSet.$(O) \
|
|
176 |
Project.$(O) \
|
|
177 |
PSPrStr.$(O) \
|
|
178 |
HPIIPrStr.$(O) \
|
|
179 |
FX1PrStr.$(O)
|
|
180 |
|
|
181 |
level11: \
|
|
182 |
SignalSet.$(O)
|
|
183 |
|
|
184 |
auxobjs:: level10 \
|
|
185 |
level11 \
|
|
186 |
$(AUXOBJS)
|
|
187 |
|
|
188 |
install::
|
|
189 |
-mkdir $(DESTLIBDIR)
|
|
190 |
-$(INSTALL) $(LIBNAME)$(OBJNAME) $(DESTLIBDIR)
|
|
191 |
|
|
192 |
libe: $(LIB)
|
|
193 |
|
|
194 |
PSPrStr.o:
|
|
195 |
$(STC) -CC="$(CC)" $(STCFLAGS) +limitSuperInclude $(CFLAGS) -c $*.st
|
|
196 |
|
|
197 |
HPIIPrStr.o:
|
|
198 |
$(STC) -CC="$(CC)" $(STCFLAGS) +limitSuperInclude $(CFLAGS) -c $*.st
|
|
199 |
|
|
200 |
FX1PrStr.o:
|
|
201 |
$(STC) -CC="$(CC)" $(STCFLAGS) +limitSuperInclude $(CFLAGS) -c $*.st
|
|
202 |
|
|
203 |
Class:
|
|
204 |
$(MAKE) Class.o OPT=""
|
|
205 |
|
|
206 |
Metaclass:
|
|
207 |
$(MAKE) Metaclass.o OPT=""
|
|
208 |
|
|
209 |
i_Class.o:
|
|
210 |
$(MAKE) I_CLASS OPT=""
|
|
211 |
|
|
212 |
i_Metaclass.o:
|
|
213 |
$(MAKE) I_METACLASS OPT=""
|
|
214 |
|
|
215 |
I_CLASS:
|
|
216 |
$(CC) -c $(CFLAGS) i_Class.c
|
|
217 |
|
|
218 |
I_METACLASS:
|
|
219 |
$(CC) -c $(CFLAGS) i_Metaclass.c
|
|
220 |
|
|
221 |
cleanjunk::
|
|
222 |
-rm -f *.c *.H
|
|
223 |
|
|
224 |
clean::
|
|
225 |
-rm -f *.c *.H
|
|
226 |
|
|
227 |
clobber::
|
|
228 |
-rm -f *.c *.H
|
|
229 |
|
|
230 |
tar:
|
|
231 |
rm -f $(TOP)/DISTRIB/libbasic.tar*
|
|
232 |
(cd $(TOP); tar cvf DISTRIB/libbasic.tar \
|
|
233 |
libbasic/*.st \
|
|
234 |
libbasic/Make.proto \
|
|
235 |
libbasic/*.stc)
|
|
236 |
compress $(TOP)/DISTRIB/libbasic.tar
|
|
237 |
|
|
238 |
#
|
|
239 |
# next thing I'll build into stc is a makedepend feature for this ...
|
|
240 |
#
|
|
241 |
|
|
242 |
STCHDR=$(I)/stc.h $(I)/stcIntern.h
|
|
243 |
OBJECT=$(I)/Object.H $(STCHDR)
|
|
244 |
BOOLEAN=$(I)/Boolean.H $(OBJECT)
|
|
245 |
BEHAVIOR=$(I)/Behavior.H $(OBJECT)
|
|
246 |
CLASS=$(I)/Class.H $(I)/ClassDescr.H $(BEHAVIOR)
|
|
247 |
|
|
248 |
Object.o: Object.st $(STCHDR)
|
|
249 |
UndefObj.o: UndefObj.st $(OBJECT)
|
|
250 |
|
|
251 |
Message.o: Message.st $(OBJECT)
|
|
252 |
|
|
253 |
Unix.o: Unix.st $(OBJECT)
|
|
254 |
Autoload.o: Autoload.st $(OBJECT)
|
|
255 |
Smalltalk.o: Smalltalk.st $(OBJECT)
|
|
256 |
ObjMem.o: ObjMem.st $(OBJECT)
|
|
257 |
Process.o: Process.st $(OBJECT)
|
|
258 |
ProcSched.o: ProcSched.st $(OBJECT)
|
|
259 |
Semaphore.o: Semaphore.st $(OBJECT)
|
|
260 |
SharedQueue.o: SharedQueue.st $(OBJECT)
|
|
261 |
MsgTally.o: MsgTally.st $(OBJECT)
|
|
262 |
MiniDebug.o: MiniDebug.st $(OBJECT)
|
|
263 |
MiniIns.o: MiniIns.st $(OBJECT)
|
|
264 |
Context.o: Context.st $(OBJECT)
|
|
265 |
BContext.o: BContext.st $(I)/Context.H $(OBJECT)
|
|
266 |
Method.o: Method.st $(OBJECT)
|
|
267 |
Block.o: Block.st $(OBJECT)
|
|
268 |
BlckContext.o: BlckContext.st $(OBJECT)
|
|
269 |
|
|
270 |
Signal.o: Signal.st $(OBJECT)
|
|
271 |
|
|
272 |
Exception.o: Exception.st $(OBJECT)
|
|
273 |
Rectangle.o: Rectangle.st $(OBJECT)
|
|
274 |
|
|
275 |
Assoc.o: Assoc.st $(OBJECT)
|
|
276 |
Boolean.o: Boolean.st $(OBJECT)
|
|
277 |
True.o: True.st $(BOOLEAN)
|
|
278 |
False.o: False.st $(BOOLEAN)
|
|
279 |
ExtSource.o: ExtSource.st $(OBJECT)
|
|
280 |
|
|
281 |
Behavior.o: Behavior.st $(OBJECT)
|
|
282 |
ClassDescr.o: ClassDescr.st $(BEHAVIOR)
|
|
283 |
Class.o: Class.st $(I)/ClassDescr.H $(BEHAVIOR)
|
|
284 |
Metaclass.o: Metaclass.st $(CLASS)
|
|
285 |
CCReader.o: CCReader.st $(OBJECT)
|
|
286 |
BCCReader.o: BCCReader.st $(I)/CCReader.H $(OBJECT)
|
|
287 |
Project.o: Project.st $(OBJECT)
|
|
288 |
|
|
289 |
MAGNITUDE=$(I)/Magnitude.H $(OBJECT)
|
|
290 |
ARITHVAL=$(I)/ArithVal.H $(MAGNITUDE)
|
|
291 |
NUMBER=$(I)/Number.H $(ARITHVAL)
|
|
292 |
INTEGER=$(I)/Integer.H $(NUMBER)
|
|
293 |
|
|
294 |
Magnitude.o: Magnitude.st $(OBJECT)
|
|
295 |
Point.o: Point.st $(MAGNITUDE)
|
|
296 |
Character.o: Character.st $(MAGNITUDE)
|
|
297 |
ArithVal.o: ArithVal.st $(MAGNITUDE)
|
|
298 |
Number.o: Number.st $(ARITHVAL)
|
|
299 |
Integer.o: Integer.st $(NUMBER)
|
|
300 |
Float.o: Float.st $(NUMBER)
|
|
301 |
Fraction.o: Fraction.st $(NUMBER)
|
|
302 |
SmallInt.o: SmallInt.st $(INTEGER)
|
|
303 |
LargeInt.o: LargeInt.st $(INTEGER)
|
|
304 |
Time.o: Time.st $(MAGNITUDE)
|
|
305 |
Date.o: Date.st $(MAGNITUDE)
|
|
306 |
|
|
307 |
COLL=$(I)/Coll.H $(OBJECT)
|
|
308 |
SET=$(I)/Set.H $(COLL)
|
|
309 |
DICT=$(I)/Dict.H $(COLL)
|
|
310 |
IDDICT=$(I)/IdDict.H $(DICT)
|
|
311 |
SHADOWIDDICT=$(I)/ShIdDict.H $(IDDICT)
|
|
312 |
SEQCOLL=$(I)/SeqColl.H $(COLL)
|
|
313 |
ARRCOLL=$(I)/ArrColl.H $(SEQCOLL)
|
|
314 |
ARRAY=$(I)/Array.H $(ARRCOLL)
|
|
315 |
VARARRAY=$(I)/VarArray.H $(ARRCOLL)
|
|
316 |
INTARRAY=$(I)/IntArray.H $(ARRCOLL)
|
|
317 |
BYTEARRAY=$(I)/ByteArray.H $(INTARRAY)
|
|
318 |
STRING=$(I)/String.H $(BYTEARRAY)
|
|
319 |
|
|
320 |
Registry.o: Registry.st $(OBJECT)
|
|
321 |
Coll.o: Coll.st $(OBJECT)
|
|
322 |
FileDir.o: FileDir.st $(COLL)
|
|
323 |
SeqColl.o: SeqColl.st $(COLL)
|
2
|
324 |
MappedColl.o: MappedColl.st $(COLL)
|
1
|
325 |
Set.o: Set.st $(COLL)
|
|
326 |
IdSet.o: IdSet.st $(SET)
|
|
327 |
SignalSet.o: SignalSet.st $(I)/IdSet.H $(SET)
|
|
328 |
Bag.o: Bag.st $(COLL)
|
|
329 |
Dict.o: Dict.st $(COLL)
|
|
330 |
IdDict.o: IdDict.st $(DICT)
|
|
331 |
CacheDict.o: CacheDict.st $(DICT)
|
|
332 |
ShIdDict.o: ShIdDict.st $(IDDICT)
|
|
333 |
OrdColl.o: OrdColl.st $(SEQCOLL)
|
|
334 |
SortColl.o: SortColl.st $(I)/OrdColl.H $(SEQCOLL)
|
|
335 |
ChangeSet.o: ChangeSet.st $(I)/OrdColl.H $(SEQCOLL)
|
|
336 |
Interval.o: Interval.st $(SEQCOLL)
|
|
337 |
Node.o: Node.st $(COLL)
|
|
338 |
Tree.o: Tree.st $(COLL)
|
|
339 |
LinkList.o: LinkList.st $(SEQCOLL)
|
|
340 |
Link.o: Link.st $(OBJECT)
|
|
341 |
ValLink.o: ValLink.st $(I)/Link.H $(OBJECT)
|
|
342 |
ArrColl.o: ArrColl.st $(SEQCOLL)
|
|
343 |
VarArray.o: VarArray.st $(ARRCOLL)
|
|
344 |
VarString.o: VarString.st $(ARRCOLL)
|
|
345 |
Text.o: Text.st $(VARARRAY)
|
|
346 |
FileText.o: FileText.st $(I)/Text.H $(VARARRAY)
|
|
347 |
Array.o: Array.st $(ARRCOLL)
|
|
348 |
Polygon.o: Polygon.st $(ARRAY)
|
|
349 |
ShadowArr.o: ShadowArr.st $(ARRAY)
|
|
350 |
IntArray.o: IntArray.st $(ARRCOLL)
|
|
351 |
FloatArray.o: FloatArray.st $(ARRCOLL)
|
|
352 |
DoubleArray.o: DoubleArray.st $(ARRCOLL)
|
|
353 |
ExtBytes.o: ExtBytes.st $(ARRCOLL)
|
|
354 |
ByteArray.o: ByteArray.st $(INTARRAY)
|
|
355 |
UIBytes.o: UIBytes.st $(I)/ByteArray.H $(INTARRAY)
|
|
356 |
String.o: String.st $(BYTEARRAY)
|
|
357 |
ByteString.o: ByteString.st $(STRING)
|
|
358 |
Symbol.o: Symbol.st $(STRING)
|
|
359 |
Filename.o: Filename.st $(STRING)
|
|
360 |
|
|
361 |
Change.o: Change.st $(OBJECT)
|
|
362 |
ClassChg.o: ClassChg.st $(OBJECT)
|
|
363 |
ClsDefChg.o: ClsDefChg.st $(OBJECT)
|
|
364 |
ClsComChg.o: ClsComChg.st $(OBJECT)
|
|
365 |
MethodChg.o: MethodChg.st $(OBJECT)
|
|
366 |
|
|
367 |
STREAM=$(I)/Stream.H $(OBJECT)
|
|
368 |
POSSTREAM=$(I)/PosStream.H $(STREAM)
|
|
369 |
WRITESTREAM=$(I)/WriteStr.H $(POSSTREAM)
|
|
370 |
RWSTREAM=$(I)/RWStream.H $(WRITESTREAM)
|
|
371 |
EXTSTREAM=$(I)/ExtStream.H $(RWSTREAM)
|
|
372 |
NPEXTSTREAM=$(I)/NPExtStr.H $(EXTSTREAM)
|
|
373 |
PIPESTREAM=$(I)/PipeStr.H $(NPEXTSTREAM)
|
|
374 |
|
|
375 |
Stream.o: Stream.st $(OBJECT)
|
|
376 |
Random.o: Random.st $(STREAM)
|
|
377 |
PosStream.o: PosStream.st $(STREAM)
|
|
378 |
ReadStr.o: ReadStr.st $(POSSTREAM)
|
|
379 |
WriteStr.o: WriteStr.st $(POSSTREAM)
|
|
380 |
RWStream.o: RWStream.st $(WRITESTREAM)
|
|
381 |
ActorStr.o: ActorStr.st $(RWSTREAM)
|
|
382 |
ExtStream.o: ExtStream.st $(RWSTREAM)
|
|
383 |
NPExtStr.o: NPExtStr.st $(EXTSTREAM)
|
|
384 |
TTYStream.o: TTYStream.st $(NPEXTSTREAM)
|
|
385 |
PipeStr.o: PipeStr.st $(NPEXTSTREAM)
|
|
386 |
Socket.o: Socket.st $(NPEXTSTREAM)
|
|
387 |
PrintStr.o: PrintStr.st $(PIPESTREAM)
|
|
388 |
PSPrStr.o: PSPrStr.st $(I)/PrintStr.H $(PIPESTREAM)
|
|
389 |
HPIIPrStr.o: HPIIPrStr.st $(I)/PrintStr.H $(PIPESTREAM)
|
|
390 |
FX1PrStr.o: FX1PrStr.st $(I)/PrintStr.H $(PIPESTREAM)
|
|
391 |
FileStr.o: FileStr.st $(EXTSTREAM)
|
|
392 |
SoundStr.o: SoundStr.st $(I)/FileStr.H $(EXTSTREAM)
|
|
393 |
DirStr.o: DirStr.st $(I)/FileStr.H $(EXTSTREAM)
|