# Copyright (c) 1988 Regents of the University of California.
# Redistribution and use in source and binary forms are permitted
# provided that the above copyright notice and this paragraph are
# duplicated in all such forms and that any documentation,
# advertising materials, and other materials related to such
# distribution and use acknowledge that the software was developed
# by the University of California, Berkeley. The name of the
# University may not be used to endorse or promote products derived
# from this software without specific prior written permission.
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
# @(#)makefile 3.7 (Berkeley) %G%
# 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)
ALLC = map3270.c mset.c termin.c
# We don't include mset$O here...
ALLO = map3270$O termin$O
ALLPRINT = default.map ${ALLHC}
ALLSOURCE = ${ALLPRINT} makefile makefile.mak
/lib/cpp -E $< | as -o $@
for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
for i in $(ALLO) errs makefile.bak asciilib.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} | 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
map3270$O: state.h map3270.h ../general/globals.h default.map
mset$O: ../ctlr/function.h state.h map3270.h ../api/astosc.h
mset$O: ../general/globals.h
termin$O: ../general/general.h ../ctlr/function.h ../ctlr/externs.h
termin$O: ../ctlr/declare.h ../api/astosc.h state.h ../general/globals.h