213
|
1 |
# $Header: /cvs/stx/stx/libbasic/Make.proto,v 1.18 1994-11-28 20:34:28 claus Exp $
|
1
|
2 |
#
|
|
3 |
# -------------- no need to change anything below ----------
|
|
4 |
|
95
|
5 |
TOP=..
|
1
|
6 |
SUBDIRS=
|
|
7 |
|
95
|
8 |
LIBNAME=libbasic
|
15
|
9 |
|
213
|
10 |
STCOPT=$(LIBBASIC_STCOPT)
|
|
11 |
STCLOCALOPT=-Pbasic-classes -warnGlobalAssign +optinline2
|
1
|
12 |
|
147
|
13 |
all:: abbrev.stc objs classList.stc $(OBJTARGET)
|
15
|
14 |
|
159
|
15 |
objs:: \
|
|
16 |
Object.$(O) \
|
65
|
17 |
Autoload.$(O) \
|
|
18 |
Behavior.$(O) \
|
159
|
19 |
ClassDescr.$(O) \
|
|
20 |
Class.$(O) \
|
|
21 |
Metaclass.$(O) \
|
65
|
22 |
Boolean.$(O) \
|
159
|
23 |
True.$(O) \
|
|
24 |
False.$(O) \
|
65
|
25 |
CCReader.$(O) \
|
|
26 |
Coll.$(O) \
|
159
|
27 |
Bag.$(O) \
|
|
28 |
FileDir.$(O) \
|
|
29 |
SeqColl.$(O) \
|
|
30 |
ArrColl.$(O) \
|
|
31 |
Array.$(O) \
|
|
32 |
WeakArr.$(O) \
|
|
33 |
ByteArray.$(O) \
|
|
34 |
AbstrStr.$(O) \
|
|
35 |
String.$(O) \
|
|
36 |
Symbol.$(O) \
|
|
37 |
UIBytes.$(O) \
|
|
38 |
DoubleArray.$(O) \
|
|
39 |
ExtBytes.$(O) \
|
|
40 |
FloatArray.$(O) \
|
|
41 |
Interval.$(O) \
|
|
42 |
LinkList.$(O) \
|
|
43 |
Semaphore.$(O) \
|
|
44 |
OrdColl.$(O) \
|
|
45 |
SortColl.$(O) \
|
|
46 |
Set.$(O) \
|
|
47 |
Dict.$(O) \
|
|
48 |
IdDict.$(O) \
|
|
49 |
WeakIdDict.$(O) \
|
|
50 |
IdSet.$(O) \
|
|
51 |
WeakIdSet.$(O) \
|
|
52 |
SignalSet.$(O) \
|
65
|
53 |
Context.$(O) \
|
159
|
54 |
BContext.$(O) \
|
|
55 |
Delay.$(O) \
|
65
|
56 |
Exception.$(O) \
|
86
|
57 |
ExecFunc.$(O) \
|
159
|
58 |
ExecCode.$(O) \
|
|
59 |
Block.$(O) \
|
|
60 |
CheapBlk.$(O) \
|
|
61 |
Method.$(O) \
|
65
|
62 |
Filename.$(O) \
|
|
63 |
Link.$(O) \
|
159
|
64 |
Process.$(O) \
|
65
|
65 |
Magnitude.$(O) \
|
159
|
66 |
LookupKey.$(O) \
|
|
67 |
Assoc.$(O) \
|
|
68 |
AbsTime.$(O) \
|
|
69 |
Time.$(O) \
|
|
70 |
ArithVal.$(O) \
|
|
71 |
Number.$(O) \
|
|
72 |
Fraction.$(O) \
|
|
73 |
Integer.$(O) \
|
|
74 |
LargeInt.$(O) \
|
|
75 |
SmallInt.$(O) \
|
|
76 |
LPReal.$(O) \
|
|
77 |
Float.$(O) \
|
|
78 |
Point.$(O) \
|
|
79 |
Character.$(O) \
|
|
80 |
Date.$(O) \
|
65
|
81 |
Message.$(O) \
|
95
|
82 |
MiniDebug.$(O) \
|
|
83 |
MiniIns.$(O) \
|
65
|
84 |
ObjMem.$(O) \
|
|
85 |
ProcSched.$(O) \
|
159
|
86 |
Queue.$(O) \
|
|
87 |
SharedQueue.$(O) \
|
65
|
88 |
Rectangle.$(O) \
|
|
89 |
Registry.$(O) \
|
|
90 |
Signal.$(O) \
|
86
|
91 |
SMALLTALK \
|
65
|
92 |
Stream.$(O) \
|
159
|
93 |
PeekStr.$(O) \
|
|
94 |
PosStream.$(O) \
|
|
95 |
ReadStr.$(O) \
|
|
96 |
WriteStr.$(O) \
|
|
97 |
RWStream.$(O) \
|
|
98 |
ActorStr.$(O) \
|
|
99 |
ExtStream.$(O) \
|
|
100 |
FileStr.$(O) \
|
|
101 |
DirStr.$(O) \
|
|
102 |
UnbndExtStr.$(O) \
|
|
103 |
NPExtStr.$(O) \
|
|
104 |
PipeStr.$(O) \
|
65
|
105 |
UndefObj.$(O) \
|
|
106 |
Unix.$(O)
|
1
|
107 |
|
21
|
108 |
#
|
147
|
109 |
# generate class list from what is found here
|
|
110 |
#
|
|
111 |
classList.stc:: Make.proto
|
|
112 |
$(MAKE) genClassList
|
|
113 |
|
|
114 |
#
|
21
|
115 |
# only needed for NeXT - assembler dumps core with long name ?!?!
|
|
116 |
#
|
15
|
117 |
SeqColl.$(O):
|
|
118 |
$(STC) -CC="$(CC)" $(STCFLAGS) +shortNames $(CFLAGS) -c $*.st
|
|
119 |
|
136
|
120 |
#
|
|
121 |
# special rule, to define the config-string while compiling
|
|
122 |
#
|
86
|
123 |
CONF_STRING="$(CONF)"
|
|
124 |
|
|
125 |
SMALLTALK:
|
|
126 |
$(MAKE) Smalltalk.$(O) \
|
159
|
127 |
DEFS="$(DEFS) -DCONFIGURATION_STRING='\\\"$(CONF_STRING)\\\"' "
|
86
|
128 |
|
136
|
129 |
# Class:
|
159
|
130 |
# $(MAKE) Class.$(O) OPT=""
|
136
|
131 |
#
|
|
132 |
# Metaclass:
|
159
|
133 |
# $(MAKE) Metaclass.$(O) OPT=""
|
136
|
134 |
#
|
|
135 |
# i_Class.$(O):
|
159
|
136 |
# $(MAKE) I_CLASS OPT=""
|
136
|
137 |
#
|
|
138 |
# i_Metaclass.$(O):
|
159
|
139 |
# $(MAKE) I_METACLASS OPT=""
|
136
|
140 |
#
|
|
141 |
# I_CLASS:
|
159
|
142 |
# $(CC) -c $(CFLAGS) i_Class.c
|
136
|
143 |
#
|
|
144 |
# I_METACLASS:
|
159
|
145 |
# $(CC) -c $(CFLAGS) i_Metaclass.c
|
1
|
146 |
|
|
147 |
cleanjunk::
|
|
148 |
-rm -f *.c *.H
|
|
149 |
|
|
150 |
clean::
|
147
|
151 |
-rm -f *.c *.H abbrev.stc classList.stc
|
1
|
152 |
|
|
153 |
clobber::
|
147
|
154 |
-rm -f *.c *.H abbrev.stc classList.stc
|
1
|
155 |
|
|
156 |
tar:
|
|
157 |
rm -f $(TOP)/DISTRIB/libbasic.tar*
|
|
158 |
(cd $(TOP); tar cvf DISTRIB/libbasic.tar \
|
159
|
159 |
libbasic/Make.proto \
|
|
160 |
libbasic/*.st \
|
190
|
161 |
libbasic/resources)
|
|
162 |
gzip $(TOP)/DISTRIB/libbasic.tar
|
|
163 |
|
|
164 |
uutar:
|
|
165 |
$(MAKE) tar
|
|
166 |
(cd $(TOP)/DISTRIB; uuencode libbasic.tar.gz libbasic.tar.gz > libbasic.tar.gz.uue)
|
1
|
167 |
|
95
|
168 |
|
1
|
169 |
#
|
|
170 |
# next thing I'll build into stc is a makedepend feature for this ...
|
|
171 |
#
|
|
172 |
|
136
|
173 |
I = $(INCLUDE)
|
213
|
174 |
STCHDR =$(I)/stc.h $(I)/stcIntern.h $(CPUINTERN_H)
|
136
|
175 |
OBJECT =$(I)/Object.H $(STCHDR)
|
|
176 |
BOOLEAN =$(I)/Boolean.H $(OBJECT)
|
1
|
177 |
BEHAVIOR=$(I)/Behavior.H $(OBJECT)
|
136
|
178 |
CLASS =$(I)/Class.H $(I)/ClassDescr.H $(BEHAVIOR)
|
1
|
179 |
|
95
|
180 |
Object.$(O): Object.st $(STCHDR)
|
|
181 |
UndefObj.$(O): UndefObj.st $(OBJECT)
|
1
|
182 |
|
95
|
183 |
Message.$(O): Message.st $(OBJECT)
|
|
184 |
MiniDebug.$(O): MiniDebug.st $(OBJECT)
|
|
185 |
MiniIns.$(O): MiniIns.st $(OBJECT)
|
1
|
186 |
|
86
|
187 |
Unix.$(O): Unix.st $(OBJECT)
|
|
188 |
Autoload.$(O): Autoload.st $(OBJECT)
|
|
189 |
Smalltalk.$(O): Smalltalk.st $(OBJECT)
|
|
190 |
ObjMem.$(O): ObjMem.st $(OBJECT)
|
159
|
191 |
Process.$(O): Process.st $(I)/Link.H $(OBJECT)
|
86
|
192 |
ProcSched.$(O): ProcSched.st $(OBJECT)
|
159
|
193 |
Semaphore.$(O): Semaphore.st $(I)/LinkList.H $(OBJECT)
|
86
|
194 |
Queue.$(O): Queue.st $(OBJECT)
|
|
195 |
Delay.$(O): Delay.st $(OBJECT)
|
|
196 |
SharedQueue.$(O): SharedQueue.st $(I)/Queue.H $(OBJECT)
|
|
197 |
MsgTally.$(O): MsgTally.st $(OBJECT)
|
|
198 |
MiniDebug.$(O): MiniDebug.st $(OBJECT)
|
|
199 |
MiniIns.$(O): MiniIns.st $(OBJECT)
|
|
200 |
Context.$(O): Context.st $(OBJECT)
|
|
201 |
BContext.$(O): BContext.st $(I)/Context.H $(OBJECT)
|
159
|
202 |
ExecFunc.$(O): ExecFunc.st $(OBJECT)
|
|
203 |
ExecCode.$(O): ExecCode.st $(I)/ExecFunc.H $(OBJECT)
|
86
|
204 |
Method.$(O): Method.st $(I)/ExecCode.H $(I)/ExecFunc.H $(OBJECT)
|
|
205 |
Block.$(O): Block.st $(I)/ExecCode.H $(I)/ExecFunc.H $(OBJECT)
|
159
|
206 |
CheapBlk.$(O): CheapBlk.st $(I)/Block.H $(I)/ExecCode.H $(I)/ExecFunc.H $(OBJECT)
|
86
|
207 |
BlckContext.$(O): BlckContext.st $(OBJECT)
|
1
|
208 |
|
86
|
209 |
Signal.$(O): Signal.st $(OBJECT)
|
1
|
210 |
|
86
|
211 |
Exception.$(O): Exception.st $(OBJECT)
|
|
212 |
Rectangle.$(O): Rectangle.st $(OBJECT)
|
1
|
213 |
|
86
|
214 |
Boolean.$(O): Boolean.st $(OBJECT)
|
|
215 |
True.$(O): True.st $(BOOLEAN)
|
|
216 |
False.$(O): False.st $(BOOLEAN)
|
|
217 |
ExtSource.$(O): ExtSource.st $(OBJECT)
|
1
|
218 |
|
86
|
219 |
Behavior.$(O): Behavior.st $(OBJECT)
|
|
220 |
ClassDescr.$(O): ClassDescr.st $(BEHAVIOR)
|
|
221 |
Class.$(O): Class.st $(I)/ClassDescr.H $(BEHAVIOR)
|
|
222 |
Metaclass.$(O): Metaclass.st $(CLASS)
|
|
223 |
CCReader.$(O): CCReader.st $(OBJECT)
|
|
224 |
BCCReader.$(O): BCCReader.st $(I)/CCReader.H $(OBJECT)
|
|
225 |
Project.$(O): Project.st $(OBJECT)
|
1
|
226 |
|
|
227 |
MAGNITUDE=$(I)/Magnitude.H $(OBJECT)
|
35
|
228 |
ABSTIME=$(I)/AbsTime.H $(MAGNITUDE)
|
1
|
229 |
ARITHVAL=$(I)/ArithVal.H $(MAGNITUDE)
|
|
230 |
NUMBER=$(I)/Number.H $(ARITHVAL)
|
|
231 |
INTEGER=$(I)/Integer.H $(NUMBER)
|
|
232 |
|
86
|
233 |
Magnitude.$(O): Magnitude.st $(OBJECT)
|
159
|
234 |
LookupKey.$(O): LookupKey.st $(MAGNITUDE)
|
|
235 |
Assoc.$(O): Assoc.st $(I)/LookupKey.H $(MAGNITUDE)
|
86
|
236 |
Point.$(O): Point.st $(MAGNITUDE)
|
|
237 |
Character.$(O): Character.st $(MAGNITUDE)
|
|
238 |
ArithVal.$(O): ArithVal.st $(MAGNITUDE)
|
|
239 |
Number.$(O): Number.st $(ARITHVAL)
|
|
240 |
Integer.$(O): Integer.st $(NUMBER)
|
|
241 |
LPReal.$(O): LPReal.st $(NUMBER)
|
|
242 |
Float.$(O): Float.st $(I)/LPReal.H $(NUMBER)
|
|
243 |
Fraction.$(O): Fraction.st $(NUMBER)
|
|
244 |
SmallInt.$(O): SmallInt.st $(INTEGER)
|
|
245 |
LargeInt.$(O): LargeInt.st $(INTEGER)
|
|
246 |
AbsTime.$(O): AbsTime.st $(MAGNITUDE)
|
|
247 |
Time.$(O): Time.st $(ABSTIME)
|
|
248 |
Date.$(O): Date.st $(ABSTIME)
|
1
|
249 |
|
|
250 |
COLL=$(I)/Coll.H $(OBJECT)
|
|
251 |
SET=$(I)/Set.H $(COLL)
|
|
252 |
DICT=$(I)/Dict.H $(COLL)
|
|
253 |
IDDICT=$(I)/IdDict.H $(DICT)
|
10
|
254 |
WEAKIDDICT=$(I)/WeakIdDict.H $(IDDICT)
|
1
|
255 |
SEQCOLL=$(I)/SeqColl.H $(COLL)
|
|
256 |
ARRCOLL=$(I)/ArrColl.H $(SEQCOLL)
|
|
257 |
ARRAY=$(I)/Array.H $(ARRCOLL)
|
|
258 |
VARARRAY=$(I)/VarArray.H $(ARRCOLL)
|
10
|
259 |
BYTEARRAY=$(I)/ByteArray.H $(ARRCOLL)
|
65
|
260 |
STRING=$(I)/String.H $(I)/AbstrStr.H $(BYTEARRAY)
|
1
|
261 |
|
86
|
262 |
Registry.$(O): Registry.st $(OBJECT)
|
|
263 |
Coll.$(O): Coll.st $(OBJECT)
|
|
264 |
FileDir.$(O): FileDir.st $(COLL)
|
|
265 |
SeqColl.$(O): SeqColl.st $(COLL)
|
159
|
266 |
# MappedColl.$(O): MappedColl.st $(COLL)
|
86
|
267 |
Set.$(O): Set.st $(COLL)
|
|
268 |
IdSet.$(O): IdSet.st $(SET)
|
|
269 |
SignalSet.$(O): SignalSet.st $(I)/IdSet.H $(SET)
|
|
270 |
Bag.$(O): Bag.st $(COLL)
|
|
271 |
Dict.$(O): Dict.st $(COLL)
|
|
272 |
IdDict.$(O): IdDict.st $(DICT)
|
95
|
273 |
WeakIdSet.$(O): WeakIdSet.st $(IDDICT)
|
159
|
274 |
# CacheDict.$(O): CacheDict.st $(DICT)
|
86
|
275 |
WeakIdDict.$(O): WeakIdDict.st $(IDDICT)
|
|
276 |
OrdColl.$(O): OrdColl.st $(SEQCOLL)
|
|
277 |
SortColl.$(O): SortColl.st $(I)/OrdColl.H $(SEQCOLL)
|
159
|
278 |
# ChangeSet.$(O): ChangeSet.st $(I)/OrdColl.H $(SEQCOLL)
|
86
|
279 |
Interval.$(O): Interval.st $(SEQCOLL)
|
159
|
280 |
# Node.$(O): Node.st $(COLL)
|
|
281 |
# Tree.$(O): Tree.st $(COLL)
|
86
|
282 |
LinkList.$(O): LinkList.st $(SEQCOLL)
|
|
283 |
Link.$(O): Link.st $(OBJECT)
|
159
|
284 |
# ValLink.$(O): ValLink.st $(I)/Link.H $(OBJECT)
|
86
|
285 |
ArrColl.$(O): ArrColl.st $(SEQCOLL)
|
159
|
286 |
# VarArray.$(O): VarArray.st $(ARRCOLL)
|
|
287 |
# VarString.$(O): VarString.st $(ARRCOLL)
|
|
288 |
# Text.$(O): Text.st $(VARARRAY)
|
|
289 |
# FileText.$(O): FileText.st $(I)/Text.H $(VARARRAY)
|
86
|
290 |
Array.$(O): Array.st $(ARRCOLL)
|
|
291 |
WeakArr.$(O): WeakArr.st $(ARRAY)
|
|
292 |
FloatArray.$(O): FloatArray.st $(ARRCOLL)
|
|
293 |
DoubleArray.$(O): DoubleArray.st $(ARRCOLL)
|
|
294 |
ExtBytes.$(O): ExtBytes.st $(ARRCOLL)
|
|
295 |
ByteArray.$(O): ByteArray.st $(ARRCOLL)
|
|
296 |
UIBytes.$(O): UIBytes.st $(BYTEARRAY)
|
|
297 |
AbstrStr.$(O): AbstrStr.st $(BYTEARRAY)
|
|
298 |
String.$(O): String.st $(I)/AbstrStr.H $(BYTEARRAY)
|
159
|
299 |
# TwoByteStr.$(O): TwoByteStr.st $(I)/AbstrStr.H $(BYTEARRAY)
|
86
|
300 |
Symbol.$(O): Symbol.st $(STRING)
|
|
301 |
Filename.$(O): Filename.st $(STRING)
|
1
|
302 |
|
159
|
303 |
# Change.$(O): Change.st $(OBJECT)
|
|
304 |
# ClassChg.$(O): ClassChg.st $(OBJECT)
|
|
305 |
# ClsDefChg.$(O): ClsDefChg.st $(OBJECT)
|
|
306 |
# ClsComChg.$(O): ClsComChg.st $(OBJECT)
|
|
307 |
# MethodChg.$(O): MethodChg.st $(OBJECT)
|
1
|
308 |
|
|
309 |
STREAM=$(I)/Stream.H $(OBJECT)
|
|
310 |
POSSTREAM=$(I)/PosStream.H $(STREAM)
|
|
311 |
WRITESTREAM=$(I)/WriteStr.H $(POSSTREAM)
|
|
312 |
RWSTREAM=$(I)/RWStream.H $(WRITESTREAM)
|
|
313 |
EXTSTREAM=$(I)/ExtStream.H $(RWSTREAM)
|
159
|
314 |
UNBNDEXTSTREAM=$(I)/UnbndExtStr.H $(EXTSTREAM)
|
|
315 |
NPEXTSTREAM=$(I)/NPExtStr.H $(UNBNDEXTSTREAM)
|
|
316 |
PIPESTREAM=$(I)/PipeStr.H $(UNBNDEXTSTREAM)
|
1
|
317 |
|
86
|
318 |
Stream.$(O): Stream.st $(OBJECT)
|
159
|
319 |
# Random.$(O): Random.st $(STREAM)
|
86
|
320 |
PeekStr.$(O): PeekStr.st $(STREAM)
|
|
321 |
PosStream.$(O): PosStream.st $(I)/PeekStr.H $(STREAM)
|
|
322 |
ReadStr.$(O): ReadStr.st $(POSSTREAM)
|
|
323 |
WriteStr.$(O): WriteStr.st $(POSSTREAM)
|
|
324 |
RWStream.$(O): RWStream.st $(WRITESTREAM)
|
|
325 |
ActorStr.$(O): ActorStr.st $(RWSTREAM)
|
|
326 |
ExtStream.$(O): ExtStream.st $(RWSTREAM)
|
159
|
327 |
UnbndExtStr.$(O): UnbndExtStr.st $(EXTSTREAM)
|
|
328 |
NPExtStr.$(O): NPExtStr.st $(UNBNDEXTSTREAM)
|
|
329 |
# TTYStream.$(O): TTYStream.st $(UNBNDEXTSTREAM)
|
|
330 |
PipeStr.$(O): PipeStr.st $(UNBNDEXTSTREAM)
|
|
331 |
# Socket.$(O): Socket.st $(NPEXTSTREAM)
|
86
|
332 |
FileStr.$(O): FileStr.st $(EXTSTREAM)
|
159
|
333 |
# SoundStr.$(O): SoundStr.st $(I)/FileStr.H $(EXTSTREAM)
|
86
|
334 |
DirStr.$(O): DirStr.st $(I)/FileStr.H $(EXTSTREAM)
|