author | Claus Gittinger <cg@exept.de> |
Sat, 20 Sep 1997 23:03:33 +0200 | |
changeset 612 | 2748896a66c8 |
parent 583 | 718b623e9158 |
child 653 | 6d80307e7abb |
permissions | -rw-r--r-- |
612 | 1 |
# $Header: /cvs/stx/stx/libcomp/Make.proto,v 1.54 1997-09-20 21:03:31 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) \ |
22 | 64 |
$(EXTRA_LIBCOMP) |
0 | 65 |
|
16 | 66 |
# |
125 | 67 |
# only needed for NeXT2.1 - assembler dumps core with long name ?!?! |
71 | 68 |
# |
125 | 69 |
# VarNode.$(O): |
70 |
# $(STC) -CC="$(CC)" $(STCFLAGS) $(SOMESHORTNAMES) $(CFLAGS) -c $*.st |
|
16 | 71 |
|
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
|
72 |
# |
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 |
# 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
|
74 |
# 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
|
75 |
# |
233 | 76 |
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
|
77 |
$(MAKE) $(SPEEDOPT_O_RULE) STCOPT="$(STCOPT)" SEPINITCODE=-sepInitCode OPT="$(OPT)" STFILE=ObjFLoader ZFLAG= |
233 | 78 |
|
239
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
79 |
ObjFLoader.c: |
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
80 |
$(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
|
81 |
|
36 | 82 |
# |
269
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
83 |
# 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
|
84 |
# |
340 | 85 |
#HP:: HPbigFiles |
86 |
# |
|
87 |
#HPbigFiles: |
|
402 | 88 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Parser CC=$(CC) OPT="$(OPT)" |
89 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=BCompiler CC=$(CC) OPT="$(OPT)" |
|
90 |
||
91 |
AIX_SHARED_OBJFILELOADER: |
|
92 |
$(MAKE) ObjFLoader$(O_EXT) \ |
|
93 |
ENTRY_INIT=ObjectFileLoader \ |
|
94 |
AIX_LOCAL_LIBS="" |
|
95 |
||
96 |
AIX:: $(AIX_OBJFILELOADER_RULE) |
|
97 |
||
269
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
98 |
|
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
99 |
# |
36 | 100 |
# install the extra objects |
101 |
# |
|
102 |
qinstall:: $(DESTLIBDIR) |
|
67 | 103 |
if [ "$(EXTRA_LIBCOMP)"x != "x" ]; then \ |
104 |
$(INSTALL) $(EXTRA_LIBCOMP) $(DESTLIBDIR); \ |
|
36 | 105 |
fi |
0 | 106 |
|
42 | 107 |
# |
120 | 108 |
# ObjectFileLoader is not included in |
42 | 109 |
# the classLibrary (but as extra objects) |
110 |
# |
|
232
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
111 |
specialClassList: |
42 | 112 |
$(MAKE) genClassList |
113 |
grep -v ObjectFileLoader < classList.stc > ttt |
|
120 | 114 |
mv ttt classList.stc |
42 | 115 |
|
232
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
116 |
CLASSLISTRULE=specialClassList |
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
117 |
|
0 | 118 |
cleanjunk:: |
119 |
-rm -f *.c *.H |
|
120 |
||
121 |
clean:: |
|
571 | 122 |
-mv ObjFloader.$(O) __ObjFLoader.$(O) |
123 |
-rm -f [A-Z]*.$(O) |
|
124 |
-mv __ObjFLoader.$(O) ObjFloader.$(O) |
|
184 | 125 |
-rm -f *.c *.H |
0 | 126 |
|
127 |
clobber:: |
|
42 | 128 |
-rm -f *.c *.H abbrev.stc classList.stc |
0 | 129 |
|
130 |
tar: |
|
96 | 131 |
(cd $(TOP); tar cvfh DISTRIB/libcomp.tar \ |
59 | 132 |
libcomp/.dir.info \ |
0 | 133 |
libcomp/*.st \ |
42 | 134 |
libcomp/Make.proto) |
47 | 135 |
|
111 | 136 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
571 | 137 |
AssignNd.$(O): AssignNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
138 |
ProgramNodeEnumerator.$(O): ProgramNodeEnumerator.st $(STCHDR) ../include/Object.H |
|
139 |
BCompiler.$(O): BCompiler.st $(STCHDR) ../include/Parser.H ../include/Scanner.H ../include/Object.H |
|
140 |
BinaryNd.$(O): BinaryNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
141 |
BlockNode.$(O): BlockNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
142 |
CascadeNd.$(O): CascadeNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
143 |
CodeStream.$(O): CodeStream.st $(STCHDR) ../include/WriteStr.H ../include/PosStream.H ../include/PeekStr.H ../include/Stream.H ../include/Object.H |
|
144 |
ConstNode.$(O): ConstNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
145 |
Explainer.$(O): Explainer.st $(STCHDR) ../include/Parser.H ../include/Scanner.H ../include/Object.H |
|
146 |
ImmArray.$(O): ImmArray.st $(STCHDR) ../include/Array.H ../include/ArrColl.H ../include/SeqColl.H ../include/Coll.H ../include/Object.H |
|
147 |
LazyMethod.$(O): LazyMethod.st $(STCHDR) ../include/Method.H ../include/CompCode.H ../include/ExecFunc.H ../include/Object.H |
|
148 |
MessageNd.$(O): MessageNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
149 |
MethodNode.$(O): MethodNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
150 |
NullScope.$(O): NullScope.st $(STCHDR) ../include/Object.H |
|
151 |
ObjFLoader.$(O): ObjFLoader.st $(STCHDR) ../include/Object.H |
|
152 |
ObjFHandle.$(O): ObjFHandle.st $(STCHDR) ../include/Object.H |
|
153 |
ParseNode.$(O): ParseNode.st $(STCHDR) ../include/Object.H |
|
154 |
Parser.$(O): Parser.st $(STCHDR) ../include/Scanner.H ../include/Object.H |
|
155 |
PrimNd.$(O): PrimNd.st $(STCHDR) ../include/StatNode.H ../include/ParseNode.H ../include/Object.H |
|
156 |
PrimaryNd.$(O): PrimaryNd.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
157 |
ProgNodeBldr.$(O): ProgNodeBldr.st $(STCHDR) ../include/Object.H |
|
158 |
RetNode.$(O): RetNode.st $(STCHDR) ../include/StatNode.H ../include/ParseNode.H ../include/Object.H |
|
159 |
Scanner.$(O): Scanner.st $(STCHDR) ../include/Object.H |
|
160 |
SelfNode.$(O): SelfNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
161 |
SrcFLoader.$(O): SrcFLoader.st $(STCHDR) ../include/Object.H |
|
162 |
StatNode.$(O): StatNode.st $(STCHDR) ../include/ParseNode.H ../include/Object.H |
|
163 |
SuperNode.$(O): SuperNode.st $(STCHDR) ../include/SelfNode.H ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
164 |
Switch.$(O): Switch.st $(STCHDR) ../include/Object.H |
|
165 |
UnaryNd.$(O): UnaryNd.st $(STCHDR) ../include/MessageNd.H ../include/ParseNode.H ../include/Object.H |
|
166 |
UndefVar.$(O): UndefVar.st $(STCHDR) ../include/Object.H |
|
167 |
VarNode.$(O): VarNode.st $(STCHDR) ../include/PrimaryNd.H ../include/ParseNode.H ../include/Object.H |
|
168 |
Variable.$(O): Variable.st $(STCHDR) ../include/Object.H |
|
111 | 169 |
# ENDMAKEDEPEND --- do not remove this line; make depend needs it |