summaryrefslogtreecommitdiff
path: root/comms/tn3270/files/tools/prt3270/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'comms/tn3270/files/tools/prt3270/Makefile')
-rw-r--r--comms/tn3270/files/tools/prt3270/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/comms/tn3270/files/tools/prt3270/Makefile b/comms/tn3270/files/tools/prt3270/Makefile
new file mode 100644
index 00000000000..800a5c59724
--- /dev/null
+++ b/comms/tn3270/files/tools/prt3270/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/01/17 01:33:27 dholland Exp $
+# From NetBSD: Makefile,v 1.11 2006/03/20 01:34:49 gdamore Exp
+
+NOMAN= # defined
+
+.include <bsd.own.mk>
+
+HOSTPROG= prt3270
+SRCS= prt3270.c asc_ebc.c ebc_disp.c astosc.c
+DPSRCS= kbd.out astosc.out
+HOST_CPPFLAGS+=-I. -DHOST_TOOL
+
+MKHITSDIR!=cd $(.CURDIR)/../mkhits && ${PRINTOBJDIR}
+MKHITS=${MKHITSDIR}/mkhits
+
+${MKHITS}:
+ cd ${.CURDIR}/../mkhits; ${MAKE}
+
+kbd.out: ${.CURDIR}/../../ctlr/hostctlr.h ${.CURDIR}/../../ctlr/${KBD} ${MKHITS}
+ ${HOST_CC} ${HOST_CPPFLAGS} -E ${.CURDIR}/../../ctlr/function.c > TMPfunc.out
+ ${MKHITS} \
+ ${.CURDIR}/../../ctlr/hostctlr.h TMPfunc.out \
+ < ${.CURDIR}/../../ctlr/${KBD} > kbd.tmp
+ rm -f TMPfunc.out
+ mv -f kbd.tmp ${.TARGET}
+CLEANFILES+= TMPfunc.out kbd.tmp kbd.out
+
+MKASTOSCDIR!=cd ${.CURDIR}/../mkastosc && ${PRINTOBJDIR}
+MKASTOSC= ${MKASTOSCDIR}/mkastosc
+
+${MKASTOSC}:
+ cd ${.CURDIR}/../mkastosc; ${MAKE}
+
+astosc.out: ${.CURDIR}/../../ctlr/hostctlr.h ${.CURDIR}/../../ctlr/function.h \
+ ${.CURDIR}/../../ctlr/${KBD} ${MKASTOSC}
+ ${MKASTOSC} \
+ ${.CURDIR}/../../ctlr/hostctlr.h ${.CURDIR}/../../ctlr/function.h \
+ < ${.CURDIR}/../../ctlr/${KBD} > astosc.tmp
+ mv -f astosc.tmp ${.TARGET}
+CLEANFILES+= astosc.tmp astosc.out
+
+.include <bsd.hostprog.mk>
+
+.PATH: ${.CURDIR}/../../api ${.CURDIR}/../../ascii
+
+astosc.o: astosc.out
+prt3270.o: kbd.out