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