author | manfred |
Mon, 29 Mar 1999 09:27:28 +0200 | |
changeset 836 | 0fbaacf9c1de |
parent 800 | 75a4778e6588 |
child 840 | 838c7bb1bbcf |
permissions | -rw-r--r-- |
836
0fbaacf9c1de
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
800
diff
changeset
|
1 |
# $Header: /cvs/stx/stx/libcomp/Make.proto,v 1.60 1999-03-29 07:27:28 manfred Exp $ |
43 | 2 |
# |
0 | 3 |
# -------------- no need to change anything below ---------- |
4 |
||
22 | 5 |
TOP=.. |
6 |
SUBDIRS= |
|
7 |
||
0 | 8 |
LIBNAME=libcomp |
697 | 9 |
LIB_BASE=$(LIBCOMP_BASE) |
0 | 10 |
|
8 | 11 |
STCOPT=$(LIBCOMP_STCOPT) |
315 | 12 |
ZFLAG=-varPrefix=$(LIBNAME) |
800 | 13 |
STCLOCALOPT='-package=stx:$(LIBNAME)' $(COMMONSYMBOLS) $(SEPINITCODE) $(ZFLAG) |
233 | 14 |
LINKOBJRULE=$(SEPINITLINKOBJRULE) |
95 | 15 |
|
16 |
LOCALDEFS=$(DLDEFS) |
|
8 | 17 |
|
571 | 18 |
DELIVERBINARIES=lib*.$(O) lib*.so lib*.a $(LIBCOMP_EXTRA_TARGETS) |
185 | 19 |
|
240 | 20 |
all:: classLibRule $(LIBCOMP_EXTRA_TARGETS) |
36 | 21 |
|
22 |
# |
|
23 |
# although all files are compiled in here, |
|
24 |
# not everything goes into the target library |
|
25 |
# ObjFLoader is optional |
|
26 |
# |
|
348 | 27 |
LINKOBJS=`ls *.o \ |
28 |
| grep -v ObjFLoader.$(O) \ |
|
29 |
| grep -v libcompInit.$(O) \ |
|
352 | 30 |
| grep -v i_ | $(TOP)/rules/tr_NL_2_Space` |
213 | 31 |
|
74 | 32 |
# |
33 |
# these are uncritical - save some bytes by compiling with optspace |
|
34 |
# |
|
233 | 35 |
UNCRITICALOBJS=\ |
36 |
Explainer.$(O) |
|
37 |
||
731 | 38 |
WIN_OBJS= \ |
39 |
ObjFLoader.$(O) |
|
40 |
||
41 |
# later: |
|
42 |
#VMS_OBJS= \ |
|
800 | 43 |
# ObjFLoader.$(O) |
731 | 44 |
|
74 | 45 |
OBJS= \ |
71 | 46 |
Scanner.$(O) \ |
47 |
Parser.$(O) \ |
|
48 |
BCompiler.$(O) \ |
|
74 | 49 |
Explainer.$(O) \ |
800 | 50 |
ProgramNodeEnumerator.$(O) \ |
71 | 51 |
Variable.$(O) \ |
52 |
ParseNode.$(O) \ |
|
53 |
PrimaryNd.$(O) \ |
|
54 |
VarNode.$(O) \ |
|
55 |
SelfNode.$(O) \ |
|
56 |
SuperNode.$(O) \ |
|
57 |
ConstNode.$(O) \ |
|
58 |
StatNode.$(O) \ |
|
59 |
RetNode.$(O) \ |
|
60 |
PrimNd.$(O) \ |
|
61 |
AssignNd.$(O) \ |
|
62 |
BlockNode.$(O) \ |
|
63 |
MessageNd.$(O) \ |
|
64 |
UnaryNd.$(O) \ |
|
65 |
BinaryNd.$(O) \ |
|
66 |
CascadeNd.$(O) \ |
|
74 | 67 |
UndefVar.$(O) \ |
71 | 68 |
LazyMethod.$(O) \ |
120 | 69 |
SrcFLoader.$(O) \ |
71 | 70 |
ImmArray.$(O) \ |
120 | 71 |
ObjFHandle.$(O) \ |
800 | 72 |
Structure.$(O) \ |
73 |
SyntaxHighlighter.$(O) \ |
|
22 | 74 |
$(EXTRA_LIBCOMP) |
0 | 75 |
|
16 | 76 |
# |
125 | 77 |
# only needed for NeXT2.1 - assembler dumps core with long name ?!?! |
71 | 78 |
# |
125 | 79 |
# VarNode.$(O): |
80 |
# $(STC) -CC="$(CC)" $(STCFLAGS) $(SOMESHORTNAMES) $(CFLAGS) -c $*.st |
|
16 | 81 |
|
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
|
82 |
# |
9483a4408bbc
do not compile ObjFLoader with -Zlibcomp - avoids load conflicts on SGI, for faster startup
Claus Gittinger <cg@exept.de>
parents:
269
diff
changeset
|
83 |
# 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
|
84 |
# 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
|
85 |
# |
233 | 86 |
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
|
87 |
$(MAKE) $(SPEEDOPT_O_RULE) STCOPT="$(STCOPT)" SEPINITCODE=-sepInitCode OPT="$(OPT)" STFILE=ObjFLoader ZFLAG= |
233 | 88 |
|
239
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
89 |
ObjFLoader.c: |
08feb469a0a7
oops - autoload does not really work (yet)
Claus Gittinger <cg@exept.de>
parents:
237
diff
changeset
|
90 |
$(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
|
91 |
|
36 | 92 |
# |
269
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
93 |
# 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
|
94 |
# |
340 | 95 |
#HP:: HPbigFiles |
96 |
# |
|
97 |
#HPbigFiles: |
|
402 | 98 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=Parser CC=$(CC) OPT="$(OPT)" |
99 |
# $(MAKE) $(BIG_STFILE_RULE) BIG_FILE=BCompiler CC=$(CC) OPT="$(OPT)" |
|
100 |
||
101 |
AIX_SHARED_OBJFILELOADER: |
|
102 |
$(MAKE) ObjFLoader$(O_EXT) \ |
|
103 |
ENTRY_INIT=ObjectFileLoader \ |
|
104 |
AIX_LOCAL_LIBS="" |
|
105 |
||
106 |
AIX:: $(AIX_OBJFILELOADER_RULE) |
|
107 |
||
269
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
108 |
|
faf0ebf75472
HP's cc crashes with too many #defines
Claus Gittinger <cg@exept.de>
parents:
240
diff
changeset
|
109 |
# |
36 | 110 |
# install the extra objects |
111 |
# |
|
112 |
qinstall:: $(DESTLIBDIR) |
|
67 | 113 |
if [ "$(EXTRA_LIBCOMP)"x != "x" ]; then \ |
114 |
$(INSTALL) $(EXTRA_LIBCOMP) $(DESTLIBDIR); \ |
|
36 | 115 |
fi |
0 | 116 |
|
42 | 117 |
# |
120 | 118 |
# ObjectFileLoader is not included in |
42 | 119 |
# the classLibrary (but as extra objects) |
120 |
# |
|
232
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
121 |
specialClassList: |
42 | 122 |
$(MAKE) genClassList |
123 |
grep -v ObjectFileLoader < classList.stc > ttt |
|
120 | 124 |
mv ttt classList.stc |
42 | 125 |
|
232
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
126 |
CLASSLISTRULE=specialClassList |
738e788cab2d
classList-rule now in stdRules
Claus Gittinger <cg@exept.de>
parents:
216
diff
changeset
|
127 |
|
0 | 128 |
cleanjunk:: |
129 |
-rm -f *.c *.H |
|
130 |
||
131 |
clean:: |
|
836
0fbaacf9c1de
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
800
diff
changeset
|
132 |
rm -f __ObjFLoader.$(O) |
0fbaacf9c1de
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
800
diff
changeset
|
133 |
if test -f ObjFloader.$(O); then \ |
0fbaacf9c1de
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
800
diff
changeset
|
134 |
mv ObjFloader.$(O) __ObjFLoader.$(O); \ |
0fbaacf9c1de
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
800
diff
changeset
|
135 |
else true; fi |
571 | 136 |
-rm -f [A-Z]*.$(O) |
836
0fbaacf9c1de
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
800
diff
changeset
|
137 |
if test -f __ObjFLoader.$(O); then \ |
0fbaacf9c1de
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
800
diff
changeset
|
138 |
mv __ObjFLoader.$(O) ObjFloader.$(O); \ |
0fbaacf9c1de
- Fixes to avoid using '-' rules to ignore an exit status:
manfred
parents:
800
diff
changeset
|
139 |
else true; fi |
184 | 140 |
-rm -f *.c *.H |
0 | 141 |
|
142 |
clobber:: |
|
42 | 143 |
-rm -f *.c *.H abbrev.stc classList.stc |
0 | 144 |
|
145 |
tar: |
|
96 | 146 |
(cd $(TOP); tar cvfh DISTRIB/libcomp.tar \ |
59 | 147 |
libcomp/.dir.info \ |
0 | 148 |
libcomp/*.st \ |
42 | 149 |
libcomp/Make.proto) |
47 | 150 |
|
111 | 151 |
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it |
691 | 152 |
AssignNd.$(O): AssignNd.st $(STCHDR) |
153 |
ProgramNodeEnumerator.$(O): ProgramNodeEnumerator.st $(STCHDR) |
|
154 |
BCompiler.$(O): BCompiler.st $(STCHDR) |
|
155 |
BinaryNd.$(O): BinaryNd.st $(STCHDR) |
|
156 |
BlockNode.$(O): BlockNode.st $(STCHDR) |
|
157 |
CascadeNd.$(O): CascadeNd.st $(STCHDR) |
|
158 |
CodeStream.$(O): CodeStream.st $(STCHDR) |
|
159 |
ConstNode.$(O): ConstNode.st $(STCHDR) |
|
160 |
Explainer.$(O): Explainer.st $(STCHDR) |
|
161 |
ImmArray.$(O): ImmArray.st $(STCHDR) |
|
162 |
LazyMethod.$(O): LazyMethod.st $(STCHDR) |
|
163 |
MessageNd.$(O): MessageNd.st $(STCHDR) |
|
164 |
MethodNode.$(O): MethodNode.st $(STCHDR) |
|
165 |
NullScope.$(O): NullScope.st $(STCHDR) |
|
166 |
ObjFLoader.$(O): ObjFLoader.st $(STCHDR) |
|
167 |
ObjFHandle.$(O): ObjFHandle.st $(STCHDR) |
|
168 |
ParseNode.$(O): ParseNode.st $(STCHDR) |
|
169 |
Parser.$(O): Parser.st $(STCHDR) |
|
170 |
PrimNd.$(O): PrimNd.st $(STCHDR) |
|
171 |
PrimaryNd.$(O): PrimaryNd.st $(STCHDR) |
|
172 |
ProgNodeBldr.$(O): ProgNodeBldr.st $(STCHDR) |
|
173 |
RetNode.$(O): RetNode.st $(STCHDR) |
|
174 |
Scanner.$(O): Scanner.st $(STCHDR) |
|
175 |
SelfNode.$(O): SelfNode.st $(STCHDR) |
|
176 |
SrcFLoader.$(O): SrcFLoader.st $(STCHDR) |
|
177 |
StatNode.$(O): StatNode.st $(STCHDR) |
|
653 | 178 |
Structure.$(O): Structure.st $(STCHDR) |
691 | 179 |
SuperNode.$(O): SuperNode.st $(STCHDR) |
180 |
Switch.$(O): Switch.st $(STCHDR) |
|
181 |
SyntaxHighlighter.$(O): SyntaxHighlighter.st $(STCHDR) |
|
182 |
UnaryNd.$(O): UnaryNd.st $(STCHDR) |
|
183 |
UndefVar.$(O): UndefVar.st $(STCHDR) |
|
184 |
VarNode.$(O): VarNode.st $(STCHDR) |
|
185 |
Variable.$(O): Variable.st $(STCHDR) |
|
111 | 186 |
# ENDMAKEDEPEND --- do not remove this line; make depend needs it |