author | Claus Gittinger <cg@exept.de> |
Sat, 20 Jul 1996 13:04:13 +0200 | |
changeset 315 | 2d4a19a6a8b8 |
parent 314 | 9483a4408bbc |
child 340 | fcc2a3a1ced3 |
permissions | -rw-r--r-- |
315 | 1 |
# $Header: /cvs/stx/stx/libcomp/Make.proto,v 1.45 1996-07-20 11:04:13 cg Exp $ |
43 | 2 |
# |
0 | 3 |
# -------------- no need to change anything below ---------- |
4 |
||
22 | 5 |
TOP=.. |
6 |
SUBDIRS= |
|
7 |
||
0 | 8 |
LIBNAME=libcomp |
9 |
||
8 | 10 |
STCOPT=$(LIBCOMP_STCOPT) |
315 | 11 |
ZFLAG=-varPrefix=$(LIBNAME) |
12 |
STCLOCALOPT='-package=compiler-classes-(stx:libcomp)' $(COMMONSYMBOLS) $(SEPINITCODE) $(ZFLAG) |
|
233 | 13 |
LINKOBJRULE=$(SEPINITLINKOBJRULE) |
95 | 14 |
|
15 |
LOCALDEFS=$(DLDEFS) |
|
8 | 16 |
|
185 | 17 |
DELIVERBINARIES=lib*.o lib*.so lib*.a $(LIBCOMP_EXTRA_TARGETS) |
18 |
||
240 | 19 |
all:: classLibRule $(LIBCOMP_EXTRA_TARGETS) |
36 | 20 |
|
21 |
# |
|
22 |
# although all files are compiled in here, |
|
23 |
# not everything goes into the target library |
|
24 |
# ObjFLoader is optional |
|
25 |
# |
|
239
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
26 |
LINKOBJS=`ls *.o \ |
67 | 27 |
| grep -v ObjFLoader.$(O) \ |
234
f9ffa6910f0f
oops - grep did not like ^ on sgi
Claus Gittinger <cg@exept.de>
parents:
233
diff
changeset
|
28 |
| grep -v libcompInit.$(O) | grep -v i_` |
213 | 29 |
|
74 | 30 |
# |
31 |
# these are uncritical - save some bytes by compiling with optspace |
|
32 |
# |
|
233 | 33 |
UNCRITICALOBJS=\ |
34 |
Explainer.$(O) |
|
35 |
||
74 | 36 |
OBJS= \ |
71 | 37 |
Scanner.$(O) \ |
38 |
Parser.$(O) \ |
|
39 |
BCompiler.$(O) \ |
|
74 | 40 |
Explainer.$(O) \ |
71 | 41 |
Variable.$(O) \ |
42 |
ParseNode.$(O) \ |
|
43 |
PrimaryNd.$(O) \ |
|
44 |
VarNode.$(O) \ |
|
45 |
SelfNode.$(O) \ |
|
46 |
SuperNode.$(O) \ |
|
47 |
ConstNode.$(O) \ |
|
48 |
StatNode.$(O) \ |
|
49 |
RetNode.$(O) \ |
|
50 |
PrimNd.$(O) \ |
|
51 |
AssignNd.$(O) \ |
|
52 |
BlockNode.$(O) \ |
|
53 |
MessageNd.$(O) \ |
|
54 |
UnaryNd.$(O) \ |
|
55 |
BinaryNd.$(O) \ |
|
56 |
CascadeNd.$(O) \ |
|
74 | 57 |
UndefVar.$(O) \ |
71 | 58 |
LazyMethod.$(O) \ |
120 | 59 |
SrcFLoader.$(O) \ |
71 | 60 |
ImmArray.$(O) \ |
120 | 61 |
ObjFHandle.$(O) \ |
22 | 62 |
$(EXTRA_LIBCOMP) |
0 | 63 |
|
16 | 64 |
# |
125 | 65 |
# only needed for NeXT2.1 - assembler dumps core with long name ?!?! |
71 | 66 |
# |
125 | 67 |
# VarNode.$(O): |
68 |
# $(STC) -CC="$(CC)" $(STCFLAGS) $(SOMESHORTNAMES) $(CFLAGS) -c $*.st |
|
16 | 69 |
|
314
9483a4408bbc
do not compile ObjFLoader with -Zlibcomp - avoids load conflicts on SGI, for faster startup
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
70 |
# |
9483a4408bbc
do not compile ObjFLoader with -Zlibcomp - avoids load conflicts on SGI, for faster startup
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
71 |
# ObjFLoader is a separate (shared) Object - compile without sepInitCode |
9483a4408bbc
do not compile ObjFLoader with -Zlibcomp - avoids load conflicts on SGI, for faster startup
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
72 |
# and without -Zlibcomp (to speedup ld.so on SGI, by avoiding conflicts) |
9483a4408bbc
do not compile ObjFLoader with -Zlibcomp - avoids load conflicts on SGI, for faster startup
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
73 |
# |
233 | 74 |
ObjFLoader.$(O): |
314
9483a4408bbc
do not compile ObjFLoader with -Zlibcomp - avoids load conflicts on SGI, for faster startup
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
75 |
$(MAKE) $(SPEEDOPT_O_RULE) STCOPT="$(STCOPT)" SEPINITCODE=-sepInitCode OPT="$(OPT)" STFILE=ObjFLoader ZFLAG= |
233 | 76 |
|
239
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
77 |
ObjFLoader.c: |
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
78 |
$(MAKE) $(C_RULE) STCOPT="$(STCOPT)" SEPINITCODE=-sepInitCode OPT="$(OPT)" STFILE=ObjFLoader |
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
79 |
|
36 | 80 |
# |
269
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
81 |
# on HP, big classes blow the C-preprocessor (stops with 'too much defining' error) |
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
82 |
# |
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
83 |
HP:: HPbigFiles |
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
84 |
|
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
85 |
HPbigFiles: |
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
86 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Parser CC=$(CC) OPT="$(OPT)" |
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
87 |
$(MAKE) $(BIG_STFILE_RULE) BIG_FILE=BCompiler CC=$(CC) OPT="$(OPT)" |
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
88 |
|
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
89 |
# |
36 | 90 |
# install the extra objects |
91 |
# |
|
92 |
qinstall:: $(DESTLIBDIR) |
|
67 | 93 |
if [ "$(EXTRA_LIBCOMP)"x != "x" ]; then \ |
94 |
$(INSTALL) $(EXTRA_LIBCOMP) $(DESTLIBDIR); \ |
|
36 | 95 |
fi |
0 | 96 |
|
42 | 97 |
# |
120 | 98 |
# ObjectFileLoader is not included in |
42 | 99 |
# the classLibrary (but as extra objects) |
100 |
# |
|
232
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
101 |
specialClassList: |
42 | 102 |
$(MAKE) genClassList |
103 |
grep -v ObjectFileLoader < classList.stc > ttt |
|
120 | 104 |
mv ttt classList.stc |
42 | 105 |
|
232
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
106 |
CLASSLISTRULE=specialClassList |
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
107 |
|
0 | 108 |
cleanjunk:: |
109 |
-rm -f *.c *.H |
|
110 |
||
111 |
clean:: |
|
98 | 112 |
-mv ObjFloader.o __ObjFLoader.o |
113 |
-rm -f [A-Z]*.o |
|
114 |
-mv __ObjFLoader.o ObjFloader.o |
|
184 | 115 |
-rm -f *.c *.H |
0 | 116 |
|
117 |
clobber:: |
|
42 | 118 |
-rm -f *.c *.H abbrev.stc classList.stc |
0 | 119 |
|
120 |
tar: |
|
96 | 121 |
(cd $(TOP); tar cvfh DISTRIB/libcomp.tar \ |
59 | 122 |
libcomp/.dir.info \ |
0 | 123 |
libcomp/*.st \ |
42 | 124 |
libcomp/Make.proto) |
47 | 125 |
|
111 | 126 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
113 | 127 |
AssignNd.o: AssignNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
128 |
BCompiler.o: BCompiler.st $(STCHDR) ../include/Parser.H ../include/Scanner.H ../include/Object.H |
|
129 |
BinaryNd.o: BinaryNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
130 |
BlockNode.o: BlockNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
131 |
CascadeNd.o: CascadeNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
132 |
CodeStream.o: CodeStream.st $(STCHDR) ../include/WriteStr.H ../include/PosStream.H ../include/PeekStr.H ../include/Stream.H ../include/Object.H |
|
133 |
ConstNode.o: ConstNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
134 |
Explainer.o: Explainer.st $(STCHDR) ../include/Parser.H ../include/Scanner.H ../include/Object.H |
|
135 |
ImmArray.o: ImmArray.st $(STCHDR) ../include/Array.H ../include/ArrColl.H ../include/SeqColl.H ../include/Coll.H ../include/Object.H |
|
136 |
LazyMethod.o: LazyMethod.st $(STCHDR) ../include/Method.H ../include/CompCode.H ../include/ExecFunc.H ../include/Object.H |
|
137 |
MessageNd.o: MessageNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
138 |
MethodNode.o: MethodNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
139 |
NullScope.o: NullScope.st $(STCHDR) ../include/Object.H |
|
140 |
ObjFLoader.o: ObjFLoader.st $(STCHDR) ../include/Object.H |
|
120 | 141 |
ObjFHandle.o: ObjFHandle.st $(STCHDR) ../include/Object.H |
113 | 142 |
ParseNode.o: ParseNode.st $(STCHDR) ../include/Object.H |
143 |
Parser.o: Parser.st $(STCHDR) ../include/Scanner.H ../include/Object.H |
|
144 |
PrimNd.o: PrimNd.st $(STCHDR) ../include/StatNode.H ../include/ParseNode.H ../include/Object.H |
|
145 |
PrimaryNd.o: PrimaryNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
146 |
ProgNodeBldr.o: ProgNodeBldr.st $(STCHDR) ../include/Object.H |
|
147 |
RetNode.o: RetNode.st $(STCHDR) ../include/StatNode.H ../include/ParseNode.H ../include/Object.H |
|
148 |
Scanner.o: Scanner.st $(STCHDR) ../include/Object.H |
|
149 |
SelfNode.o: SelfNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
150 |
SrcFLoader.o: SrcFLoader.st $(STCHDR) ../include/Object.H |
|
151 |
StatNode.o: StatNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
152 |
SuperNode.o: SuperNode.st $(STCHDR) ../include/SelfNode.H ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
153 |
Switch.o: Switch.st $(STCHDR) ../include/Object.H |
|
154 |
UnaryNd.o: UnaryNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
155 |
UndefVar.o: UndefVar.st $(STCHDR) ../include/Object.H |
|
156 |
VarNode.o: VarNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
157 |
Variable.o: Variable.st $(STCHDR) ../include/Object.H |
|
111 | 158 |
# ENDMAKEDEPEND --- do not remove this line; make depend needs it |