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