equal
deleted
inserted
replaced
1 # $Header: /cvs/stx/stx/libcomp/Make.proto,v 1.19 1995-02-24 15:26:32 claus Exp $ |
1 # $Header: /cvs/stx/stx/libcomp/Make.proto,v 1.20 1995-02-26 18:21:09 claus Exp $ |
2 # |
2 # |
3 # -------------- no need to change anything below ---------- |
3 # -------------- no need to change anything below ---------- |
4 |
4 |
5 TOP=.. |
5 TOP=.. |
6 SUBDIRS= |
6 SUBDIRS= |
8 LIBNAME=libcomp |
8 LIBNAME=libcomp |
9 |
9 |
10 STCOPT=$(LIBCOMP_STCOPT) |
10 STCOPT=$(LIBCOMP_STCOPT) |
11 STCLOCALOPT=-Pcompiler-classes $(COMMONSYMBOLS) |
11 STCLOCALOPT=-Pcompiler-classes $(COMMONSYMBOLS) |
12 |
12 |
13 all:: abbrev.stc objs classList.stc $(OBJTARGET) $(LIBCOMP_MORE) |
13 all:: abbrev.stc $(UNCRITICALOBJS) objs classList.stc $(OBJTARGET) $(LIBCOMP_MORE) |
14 |
14 |
15 # |
15 # |
16 # although all files are compiled in here, |
16 # although all files are compiled in here, |
17 # not everything goes into the target library |
17 # not everything goes into the target library |
18 # ObjFLoader is optional |
18 # ObjFLoader is optional |
19 # |
19 # |
20 OBJFILES=`ls *.o \ |
20 OBJFILES=`ls *.o \ |
21 | grep -v ObjFLoader.$(O) \ |
21 | grep -v ObjFLoader.$(O) \ |
22 | grep -v libcompInit.$(O)` |
22 | grep -v libcompInit.$(O)` |
23 |
23 |
24 objs:: \ |
24 # |
|
25 # these are uncritical - save some bytes by compiling with optspace |
|
26 # |
|
27 UNCRITICALOBJS= \ |
|
28 Explainer.$(O) \ |
|
29 UndefVar.$(O) \ |
|
30 SrcFLoader.$(O) |
|
31 |
|
32 OBJS= \ |
25 Scanner.$(O) \ |
33 Scanner.$(O) \ |
26 Parser.$(O) \ |
34 Parser.$(O) \ |
27 BCompiler.$(O) \ |
35 BCompiler.$(O) \ |
28 EXPLAINER \ |
36 Explainer.$(O) \ |
29 Variable.$(O) \ |
37 Variable.$(O) \ |
30 ParseNode.$(O) \ |
38 ParseNode.$(O) \ |
31 PrimaryNd.$(O) \ |
39 PrimaryNd.$(O) \ |
32 VarNode.$(O) \ |
40 VarNode.$(O) \ |
33 SelfNode.$(O) \ |
41 SelfNode.$(O) \ |
40 BlockNode.$(O) \ |
48 BlockNode.$(O) \ |
41 MessageNd.$(O) \ |
49 MessageNd.$(O) \ |
42 UnaryNd.$(O) \ |
50 UnaryNd.$(O) \ |
43 BinaryNd.$(O) \ |
51 BinaryNd.$(O) \ |
44 CascadeNd.$(O) \ |
52 CascadeNd.$(O) \ |
45 UNDEFVAR \ |
53 UndefVar.$(O) \ |
46 LazyMethod.$(O) \ |
54 LazyMethod.$(O) \ |
47 SRCFLOADER \ |
55 SrcFLoader.$(O) \ |
48 ImmArray.$(O) \ |
56 ImmArray.$(O) \ |
49 $(EXTRA_LIBCOMP) |
57 $(EXTRA_LIBCOMP) |
50 |
58 |
51 # only needed for NeXT - assembler dumps core with long name ?!?! |
59 # only needed for NeXT - assembler dumps core with long name ?!?! |
52 # |
60 # |
53 VarNode.$(O): |
61 VarNode.$(O): |
54 $(STC) -CC="$(CC)" $(STCFLAGS) +shortNames $(CFLAGS) -c $*.st |
62 $(STC) -CC="$(CC)" $(STCFLAGS) +shortNames $(CFLAGS) -c $*.st |
55 |
63 |
56 # |
64 # |
57 # these are uncritical - save some bytes by compiling with optspace |
65 # these are not time critical |
58 # |
66 # |
59 EXPLAINER: |
67 $(UNCRITICALOBJS): |
60 $(MAKE) Explainer.$(O) STCOPT="$(LIBCOMP_STCOPT) +optspace2" |
68 @$(MAKE) UNCRITICAL NAME=$*.st |
61 |
69 |
62 SRCFLOADER: |
70 UNCRITICAL: |
63 $(MAKE) SrcFLoader.$(O) STCOPT="$(LIBCOMP_STCOPT) +optspace2" |
71 $(STC) -CC="$(CC)" $(STCFLAGS) +optspace2 $(CFLAGS) -c $(NAME) |
64 |
|
65 UNDEFVAR: |
|
66 $(MAKE) UndefVar.$(O) STCOPT="$(LIBCOMP_STCOPT) +optspace2" |
|
67 |
72 |
68 # |
73 # |
69 # install the extra objects |
74 # install the extra objects |
70 # |
75 # |
71 qinstall:: $(DESTLIBDIR) |
76 qinstall:: $(DESTLIBDIR) |