NetBSD/usr.bin/tn3270/tools/prt3270/Makefile
gdamore 6af224c1b4 Support cross-building tn3270 from other OS' e.g. Solaris by hiding
_RCS and _COPYRIGHT macros in #ifndef HOST_TOOL, and defining HOST_CPPFLAGS
apropriately for host tools.  Approved by uwe@.
2006-03-20 01:34:49 +00:00

47 lines
1.3 KiB
Makefile

# $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