.
# $Header: /cvs/stx/stx/libcomp/Make.proto,v 1.28 1995-08-23 17:54:11 claus Exp $
#
# -------------- no need to change anything below ----------
TOP=..
SUBDIRS=
LIBNAME=libcomp
STCOPT=$(LIBCOMP_STCOPT)
STCLOCALOPT='-Pcompiler-classes-(libcomp)' $(COMMONSYMBOLS) $(LINKILC)
LOCALDEFS=$(DLDEFS)
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) $(SOMESHORTNAMES) $(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::
-mv ObjFloader.o __ObjFLoader.o
-rm -f [A-Z]*.o
-mv __ObjFLoader.o ObjFloader.o
-rm -f *.c *.H abbrev.stc classList.stc
clobber::
-rm -f *.c *.H abbrev.stc classList.stc
AIX:
$(MAKE) OPT=-O2
tar:
(cd $(TOP); tar cvfh DISTRIB/libcomp.tar \
libcomp/.dir.info \
libcomp/*.st \
libcomp/Make.proto)
# BEGINMAKEDEPEND --- do not remove this line; make depend needs it
# ENDMAKEDEPEND --- do not remove this line; make depend needs it