2000-12-30 17:54:39 +03:00
|
|
|
# $NetBSD: Makefile,v 1.8 2000/12/30 14:54:41 sommerfeld Exp $
|
|
|
|
|
|
|
|
.include <bsd.own.mk>
|
1998-03-04 16:16:04 +03:00
|
|
|
|
1999-07-15 01:36:36 +04:00
|
|
|
HOSTPROG= prt3270
|
1998-03-04 16:16:04 +03:00
|
|
|
SRCS= prt3270.c asc_ebc.c ebc_disp.c astosc.c
|
|
|
|
DPSRCS= kbd.out astosc.out
|
1999-07-15 01:36:36 +04:00
|
|
|
HOST_CPPFLAGS+=-I.
|
1998-03-04 16:16:04 +03:00
|
|
|
|
2000-12-30 17:54:39 +03:00
|
|
|
MKHITSDIR!=cd $(.CURDIR)/../mkhits && ${PRINTOBJDIR}
|
|
|
|
MKHITS=${MKHITSDIR}/mkhits
|
|
|
|
|
1998-04-09 04:27:47 +04:00
|
|
|
${MKHITS}:
|
1998-03-04 16:16:04 +03:00
|
|
|
cd ${.CURDIR}/../mkhits; ${MAKE}
|
|
|
|
|
|
|
|
kbd.out: ${.CURDIR}/../../ctlr/hostctlr.h ${.CURDIR}/../../ctlr/${KBD} ${MKHITS}
|
1999-07-15 01:36:36 +04:00
|
|
|
${HOST_CC} ${HOST_CPPFLAGS} -E ${.CURDIR}/../../ctlr/function.c > TMPfunc.out
|
1998-03-04 16:16:04 +03:00
|
|
|
${MKHITS} \
|
|
|
|
${.CURDIR}/../../ctlr/hostctlr.h TMPfunc.out \
|
|
|
|
< ${.CURDIR}/../../ctlr/${KBD} > kbd.tmp
|
1998-03-10 12:52:41 +03:00
|
|
|
rm -f TMPfunc.out
|
1998-03-04 16:16:04 +03:00
|
|
|
mv -f kbd.tmp ${.TARGET}
|
|
|
|
|
2000-12-30 17:54:39 +03:00
|
|
|
MKASTOSCDIR!=cd ${.CURDIR}/../mkastosc && ${PRINTOBJDIR}
|
|
|
|
MKASTOSC= ${MKASTOSCDIR}/mkastosc
|
|
|
|
|
1998-03-04 16:16:04 +03:00
|
|
|
${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} > tmp
|
|
|
|
mv -f tmp ${.TARGET}
|
|
|
|
|
1999-07-15 01:36:36 +04:00
|
|
|
.include <bsd.hostprog.mk>
|
1998-03-04 16:16:04 +03:00
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../api ${.CURDIR}/../../ascii
|
1999-03-06 19:21:58 +03:00
|
|
|
|
|
|
|
astosc.o: astosc.out
|
|
|
|
prt3270.o: kbd.out
|