# 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)
# Which keyboard are we emulating.
ALLH = function.h hostctlr.h inbound.ext oia.h \
options.ext options.h outbound.ext screen.h scrnctlr.h
ALLC = function.c inbound.c oia.c options.c outbound.c
ALLO = inbound$O oia$O options$O outbound$O
ALLPRINT = 3180.kbd 3270pc.kbd unix.kbd ${ALLH} ${ALLC}
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) mset tn3270 prt3270 m4.out errs \
makefile.bak ctlrlib.a kbd.out TMPfunc.out; \
@for i in ${ALLSOURCE}; \
do (echo ${DIRPATH}$$i); done
lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} -DTN3270 ${ALLC} -lcurses
kbd.out: $(KBD) hostctlr.h
(cd ../tools; make mkhits )
$(CC) $(CFLAGS) -E function.c > TMPfunc.out
../tools/mkhits - ../ctlr/TMPfunc.out < $(KBD) > $@
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
inbound$O: ../general/general.h function.h hostctlr.h oia.h scrnctlr.h screen.h
inbound$O: options.h ../apilib/dctype.h ../apilib/ebc_disp.h
inbound$O: ../general/globals.h inbound.ext outbound.ext ../telnet.ext kbd.out
oia$O: ../general/general.h oia.h ../general/globals.h
options$O: options.h ../general/globals.h options.ext
outbound$O: ../general/general.h hostctlr.h oia.h screen.h ../apilib/ebc_disp.h
outbound$O: ../general/globals.h options.ext ../telnet.ext inbound.ext
outbound$O: outbound.ext ../general/bsubs.ext