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