author | Stefan Vogel <sv@exept.de> |
Fri, 06 Mar 1998 16:38:37 +0100 | |
changeset 657 | 0ecf1ff6f6bf |
parent 653 | 6d80307e7abb |
child 691 | a0035da650c3 |
permissions | -rw-r--r-- |
653 | 1 |
# $Header: /cvs/stx/stx/libcomp/Make.proto,v 1.55 1998-03-04 17:45:02 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) |
612 | 12 |
STCLOCALOPT='-package=stx:libcomp' $(COMMONSYMBOLS) $(SEPINITCODE) $(ZFLAG) |
233 | 13 |
LINKOBJRULE=$(SEPINITLINKOBJRULE) |
95 | 14 |
|
15 |
LOCALDEFS=$(DLDEFS) |
|
8 | 16 |
|
571 | 17 |
DELIVERBINARIES=lib*.$(O) lib*.so lib*.a $(LIBCOMP_EXTRA_TARGETS) |
185 | 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 |
# |
|
348 | 26 |
LINKOBJS=`ls *.o \ |
27 |
| grep -v ObjFLoader.$(O) \ |
|
28 |
| grep -v libcompInit.$(O) \ |
|
352 | 29 |
| grep -v i_ | $(TOP)/rules/tr_NL_2_Space` |
213 | 30 |
|
74 | 31 |
# |
32 |
# these are uncritical - save some bytes by compiling with optspace |
|
33 |
# |
|
233 | 34 |
UNCRITICALOBJS=\ |
35 |
Explainer.$(O) |
|
36 |
||
74 | 37 |
OBJS= \ |
71 | 38 |
Scanner.$(O) \ |
39 |
Parser.$(O) \ |
|
40 |
BCompiler.$(O) \ |
|
74 | 41 |
Explainer.$(O) \ |
571 | 42 |
ProgramNodeEnumerator.$(O) \ |
71 | 43 |
Variable.$(O) \ |
44 |
ParseNode.$(O) \ |
|
45 |
PrimaryNd.$(O) \ |
|
46 |
VarNode.$(O) \ |
|
47 |
SelfNode.$(O) \ |
|
48 |
SuperNode.$(O) \ |
|
49 |
ConstNode.$(O) \ |
|
50 |
StatNode.$(O) \ |
|
51 |
RetNode.$(O) \ |
|
52 |
PrimNd.$(O) \ |
|
53 |
AssignNd.$(O) \ |
|
54 |
BlockNode.$(O) \ |
|
55 |
MessageNd.$(O) \ |
|
56 |
UnaryNd.$(O) \ |
|
57 |
BinaryNd.$(O) \ |
|
58 |
CascadeNd.$(O) \ |
|
74 | 59 |
UndefVar.$(O) \ |
71 | 60 |
LazyMethod.$(O) \ |
120 | 61 |
SrcFLoader.$(O) \ |
71 | 62 |
ImmArray.$(O) \ |
120 | 63 |
ObjFHandle.$(O) \ |
653 | 64 |
Structure.$(O) \ |
22 | 65 |
$(EXTRA_LIBCOMP) |
0 | 66 |
|
16 | 67 |
# |
125 | 68 |
# only needed for NeXT2.1 - assembler dumps core with long name ?!?! |
71 | 69 |
# |
125 | 70 |
# VarNode.$(O): |
71 |
# $(STC) -CC="$(CC)" $(STCFLAGS) $(SOMESHORTNAMES) $(CFLAGS) -c $*.st |
|
16 | 72 |
|
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
|
73 |
# |
9483a4408bbc
do not compile ObjFLoader with -Zlibcomp - avoids load conflicts on SGI, for faster startup
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
74 |
# 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
|
75 |
# 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
|
76 |
# |
233 | 77 |
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
|
78 |
$(MAKE) $(SPEEDOPT_O_RULE) STCOPT="$(STCOPT)" SEPINITCODE=-sepInitCode OPT="$(OPT)" STFILE=ObjFLoader ZFLAG= |
233 | 79 |
|
239
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
80 |
ObjFLoader.c: |
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
81 |
$(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
|
82 |
|
36 | 83 |
# |
269
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
84 |
# 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
|
85 |
# |
340 | 86 |
#HP:: HPbigFiles |
87 |
# |
|
88 |
#HPbigFiles: |
|
402 | 89 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Parser CC=$(CC) OPT="$(OPT)" |
90 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=BCompiler CC=$(CC) OPT="$(OPT)" |
|
91 |
||
92 |
AIX_SHARED_OBJFILELOADER: |
|
93 |
$(MAKE) ObjFLoader$(O_EXT) \ |
|
94 |
ENTRY_INIT=ObjectFileLoader \ |
|
95 |
AIX_LOCAL_LIBS="" |
|
96 |
||
97 |
AIX:: $(AIX_OBJFILELOADER_RULE) |
|
98 |
||
269
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
99 |
|
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
100 |
# |
36 | 101 |
# install the extra objects |
102 |
# |
|
103 |
qinstall:: $(DESTLIBDIR) |
|
67 | 104 |
if [ "$(EXTRA_LIBCOMP)"x != "x" ]; then \ |
105 |
$(INSTALL) $(EXTRA_LIBCOMP) $(DESTLIBDIR); \ |
|
36 | 106 |
fi |
0 | 107 |
|
42 | 108 |
# |
120 | 109 |
# ObjectFileLoader is not included in |
42 | 110 |
# the classLibrary (but as extra objects) |
111 |
# |
|
232
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
112 |
specialClassList: |
42 | 113 |
$(MAKE) genClassList |
114 |
grep -v ObjectFileLoader < classList.stc > ttt |
|
120 | 115 |
mv ttt classList.stc |
42 | 116 |
|
232
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
117 |
CLASSLISTRULE=specialClassList |
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
118 |
|
0 | 119 |
cleanjunk:: |
120 |
-rm -f *.c *.H |
|
121 |
||
122 |
clean:: |
|
571 | 123 |
-mv ObjFloader.$(O) __ObjFLoader.$(O) |
124 |
-rm -f [A-Z]*.$(O) |
|
125 |
-mv __ObjFLoader.$(O) ObjFloader.$(O) |
|
184 | 126 |
-rm -f *.c *.H |
0 | 127 |
|
128 |
clobber:: |
|
42 | 129 |
-rm -f *.c *.H abbrev.stc classList.stc |
0 | 130 |
|
131 |
tar: |
|
96 | 132 |
(cd $(TOP); tar cvfh DISTRIB/libcomp.tar \ |
59 | 133 |
libcomp/.dir.info \ |
0 | 134 |
libcomp/*.st \ |
42 | 135 |
libcomp/Make.proto) |
47 | 136 |
|
111 | 137 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
571 | 138 |
AssignNd.$(O): AssignNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
139 |
ProgramNodeEnumerator.$(O): ProgramNodeEnumerator.st $(STCHDR) ../include/Object.H |
|
140 |
BCompiler.$(O): BCompiler.st $(STCHDR) ../include/Parser.H ../include/Scanner.H ../include/Object.H |
|
141 |
BinaryNd.$(O): BinaryNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
142 |
BlockNode.$(O): BlockNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
143 |
CascadeNd.$(O): CascadeNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
144 |
CodeStream.$(O): CodeStream.st $(STCHDR) ../include/WriteStr.H ../include/PosStream.H ../include/PeekStr.H ../include/Stream.H ../include/Object.H |
|
145 |
ConstNode.$(O): ConstNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
146 |
Explainer.$(O): Explainer.st $(STCHDR) ../include/Parser.H ../include/Scanner.H ../include/Object.H |
|
147 |
ImmArray.$(O): ImmArray.st $(STCHDR) ../include/Array.H ../include/ArrColl.H ../include/SeqColl.H ../include/Coll.H ../include/Object.H |
|
148 |
LazyMethod.$(O): LazyMethod.st $(STCHDR) ../include/Method.H ../include/CompCode.H ../include/ExecFunc.H ../include/Object.H |
|
149 |
MessageNd.$(O): MessageNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
150 |
MethodNode.$(O): MethodNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
151 |
NullScope.$(O): NullScope.st $(STCHDR) ../include/Object.H |
|
152 |
ObjFLoader.$(O): ObjFLoader.st $(STCHDR) ../include/Object.H |
|
153 |
ObjFHandle.$(O): ObjFHandle.st $(STCHDR) ../include/Object.H |
|
154 |
ParseNode.$(O): ParseNode.st $(STCHDR) ../include/Object.H |
|
155 |
Parser.$(O): Parser.st $(STCHDR) ../include/Scanner.H ../include/Object.H |
|
156 |
PrimNd.$(O): PrimNd.st $(STCHDR) ../include/StatNode.H ../include/ParseNode.H ../include/Object.H |
|
157 |
PrimaryNd.$(O): PrimaryNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
158 |
ProgNodeBldr.$(O): ProgNodeBldr.st $(STCHDR) ../include/Object.H |
|
159 |
RetNode.$(O): RetNode.st $(STCHDR) ../include/StatNode.H ../include/ParseNode.H ../include/Object.H |
|
160 |
Scanner.$(O): Scanner.st $(STCHDR) ../include/Object.H |
|
161 |
SelfNode.$(O): SelfNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
162 |
SrcFLoader.$(O): SrcFLoader.st $(STCHDR) ../include/Object.H |
|
163 |
StatNode.$(O): StatNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
653 | 164 |
Structure.$(O): Structure.st $(STCHDR) |
571 | 165 |
SuperNode.$(O): SuperNode.st $(STCHDR) ../include/SelfNode.H ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
166 |
Switch.$(O): Switch.st $(STCHDR) ../include/Object.H |
|
167 |
UnaryNd.$(O): UnaryNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
168 |
UndefVar.$(O): UndefVar.st $(STCHDR) ../include/Object.H |
|
169 |
VarNode.$(O): VarNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
170 |
Variable.$(O): Variable.st $(STCHDR) ../include/Object.H |
|
111 | 171 |
# ENDMAKEDEPEND --- do not remove this line; make depend needs it |