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