# $Header: /cvs/stx/stx/libcomp/Make.proto,v 1.20 1995-02-26 18:21:09 claus Exp $
#
# -------------- no need to change anything below ----------
TOP=..
SUBDIRS=
LIBNAME=libcomp
STCOPT=$(LIBCOMP_STCOPT)
STCLOCALOPT=-Pcompiler-classes $(COMMONSYMBOLS)
all:: abbrev.stc $(UNCRITICALOBJS) objs classList.stc $(OBJTARGET) $(LIBCOMP_MORE)
#
# although all files are compiled in here,
# not everything goes into the target library
# ObjFLoader is optional
#
OBJFILES=`ls *.o \
| grep -v ObjFLoader.$(O) \
| grep -v libcompInit.$(O)`
#
# these are uncritical - save some bytes by compiling with optspace
#
UNCRITICALOBJS= \
Explainer.$(O) \
UndefVar.$(O) \
SrcFLoader.$(O)
OBJS= \
Scanner.$(O) \
Parser.$(O) \
BCompiler.$(O) \
Explainer.$(O) \
Variable.$(O) \
ParseNode.$(O) \
PrimaryNd.$(O) \
VarNode.$(O) \
SelfNode.$(O) \
SuperNode.$(O) \
ConstNode.$(O) \
StatNode.$(O) \
RetNode.$(O) \
PrimNd.$(O) \
AssignNd.$(O) \
BlockNode.$(O) \
MessageNd.$(O) \
UnaryNd.$(O) \
BinaryNd.$(O) \
CascadeNd.$(O) \
UndefVar.$(O) \
LazyMethod.$(O) \
SrcFLoader.$(O) \
ImmArray.$(O) \
$(EXTRA_LIBCOMP)
# only needed for NeXT - assembler dumps core with long name ?!?!
#
VarNode.$(O):
$(STC) -CC="$(CC)" $(STCFLAGS) +shortNames $(CFLAGS) -c $*.st
#
# these are not time critical
#
$(UNCRITICALOBJS):
@$(MAKE) UNCRITICAL NAME=$*.st
UNCRITICAL:
$(STC) -CC="$(CC)" $(STCFLAGS) +optspace2 $(CFLAGS) -c $(NAME)
#
# install the extra objects
#
qinstall:: $(DESTLIBDIR)
if [ "$(EXTRA_LIBCOMP)"x != "x" ]; then \
$(INSTALL) $(EXTRA_LIBCOMP) $(DESTLIBDIR); \
fi
#
# ObjectFile and ObjectFileLoader are not included in
# the classLibrary (but as extra objects)
#
classList.stc: Make.proto
$(MAKE) genClassList
grep -v ObjectFileLoader < classList.stc > ttt
grep -v ObjectFile < ttt > classList.stc
rm -f ttt
cleanjunk::
-rm -f *.c *.H
clean::
-rm -f *.c *.H abbrev.stc classList.stc
clobber::
-rm -f *.c *.H abbrev.stc classList.stc
tar:
(cd $(TOP); tar cvf DISTRIB/libcomp.tar \
libcomp/.dir.info \
libcomp/*.st \
libcomp/Make.proto)
#
# next thing I'll build into stc is a makedepend feature for this ...
#
I = $(INCLUDE)
STCHDR=$(I)/stc.h $(I)/stcIntern.h $(CPUINTERN_H)
OBJECT=$(I)/Object.H $(STCHDR)
SCANNER=$(I)/Scanner.H $(OBJECT)
PARSER=$(I)/Parser.H $(SCANNER)
PARSENODE=$(I)/ParseNode.H $(OBJECT)
PRIMARYNODE=$(I)/PrimaryNd.H $(PARSENODE)
MESSAGENODE=$(I)/MessageNd.H $(PARSENODE)
ObjFLoader.o: ObjFLoader.st $(OBJECT)
LazyMethod.o: LazyMethod.st $(I)/Method.H $(I)/CompCode.H $(I)/ExecFunc.H $(OBJECT)
UndefVar.o: UndefVar.st $(OBJECT)
Scanner.o: Scanner.st $(OBJECT)
Parser.o: Parser.st $(SCANNER)
BCompiler.o: BCompiler.st $(PARSER)
Variable.o: Variable.st $(OBJECT)
ParseNode.o: ParseNode.st $(OBJECT)
StatNode.o: StatNode.st $(PARSENODE)
AssignNd.o: AssignNd.st $(PARSENODE)
BlockNode.o: BlockNode.st $(PARSENODE)
PrimaryNd.o: PrimaryNd.st $(PARSENODE)
VarNode.o: VarNode.st $(PRIMARYNODE)
SelfNode.o: SelfNode.st $(PRIMARYNODE)
ConstNode.o: ConstNode.st $(PRIMARYNODE)
VariableNode.o: VariableNode.st $(PRIMARYNODE)
SuperNode.o: SuperNode.st $(I)/SelfNode.H $(PRIMARYNODE)
MessageNd.o: MessageNd.st $(PARSENODE)
CascadeNd.o: CascadeNd.st $(MESSAGENODE)
BinaryNd.o: BinaryNd.st $(MESSAGENODE)
UnaryNd.o: UnaryNd.st $(MESSAGENODE)
PrimNd.o: PrimNd.st $(PARSENODE) $(I)/StatNode.H
RetNode.o: RetNode.st $(PARSENODE) $(I)/StatNode.H
CompErr.o: CompErr.st $(OBJECT)
ImmArray.o: ImmArray.st $(I)/Array.H
CMethod.o: CMethod.st $(I)/Method.H $(OBJECT)
MCompiler.o: MCompiler.st $(PARSER)
Explainer.o: Explainer.st $(PARSER)