# @(#)makefile 4.3 (Berkeley) 4/26/91
# msdos versus unix defines
#PC_LINT_ARGS = -DLINT_ARGS
#PC_DEBUG_FLAGS = -Zi -Od
#PC_RANLIB = echo "Done with "
OPTIMIZE = ${DEBUG_FLAGS}
CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES)
# How to install the bloody thing...
BINDIR = $(DESTDIR)/usr/ucb
MANDIR = $(DESTDIR)/usr/man/man
# Names for the terminal libraries...
ALLH = general.h globals.h
# In a vax environment, we use vaxbsubs.s, which gives us a fair amount
# of increased performance. We have provided genbsubs.c, which perform
# (more or less) the same function.
ALLPRINT = ${ALLHC} vaxbsubs.s genbsubs.c
ALLSOURCE = ${ALLPRINT} makefile makefile.mak
ALLO = globals$O ${SUBSO}
/lib/cpp -E $< | as -o $@
for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
for i in $(ALLO) errs makefile.bak generallib.a; \
do (echo ${DIRPATH}$$i); done
do (echo ${DIRPATH}$$i); done
@for i in ${ALLSOURCE}; \
do (echo ${DIRPATH}$$i); done
lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${ALLC}
grep '^#include' ${ALLC} ${ALLH} | grep -v '<' | \
sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
else rec = rec " " $$2 } } \
END { print rec } ' > makedep
echo '$$r makedep' >>eddep
echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
echo '$$r makedep' >>eddep
# DO NOT DELETE THIS LINE
globals$O: ../ctlr/hostctlr.h ../ctlr/oia.h ../ctlr/options.h ../ctlr/screen.h
globals$O: globals.h ../general/general.h