Sync usage with man page.
[netbsd-mini2440.git] / usr.bin / tn3270 / tools / prt3270 / Makefile
bloba545f61457ae560b78dae4efac93588528512595
1 # $NetBSD: Makefile,v 1.10 2005/09/17 16:52:02 chs Exp $
3 NOMAN= # defined
5 .include <bsd.own.mk>
7 HOSTPROG= prt3270
8 SRCS= prt3270.c asc_ebc.c ebc_disp.c astosc.c
9 DPSRCS= kbd.out astosc.out
10 HOST_CPPFLAGS+=-I. -DHOST_TOOL
12 MKHITSDIR!=cd $(.CURDIR)/../mkhits && ${PRINTOBJDIR}
13 MKHITS=${MKHITSDIR}/mkhits
15 ${MKHITS}:
16 cd ${.CURDIR}/../mkhits; ${MAKE}
18 kbd.out: ${.CURDIR}/../../ctlr/hostctlr.h ${.CURDIR}/../../ctlr/${KBD} ${MKHITS}
19 ${HOST_CC} ${HOST_CPPFLAGS} -E ${.CURDIR}/../../ctlr/function.c > TMPfunc.out
20 ${MKHITS} \
21 ${.CURDIR}/../../ctlr/hostctlr.h TMPfunc.out \
22 < ${.CURDIR}/../../ctlr/${KBD} > kbd.tmp
23 rm -f TMPfunc.out
24 mv -f kbd.tmp ${.TARGET}
25 CLEANFILES+= TMPfunc.out kbd.tmp kbd.out
27 MKASTOSCDIR!=cd ${.CURDIR}/../mkastosc && ${PRINTOBJDIR}
28 MKASTOSC= ${MKASTOSCDIR}/mkastosc
30 ${MKASTOSC}:
31 cd ${.CURDIR}/../mkastosc; ${MAKE}
33 astosc.out: ${.CURDIR}/../../ctlr/hostctlr.h ${.CURDIR}/../../ctlr/function.h \
34 ${.CURDIR}/../../ctlr/${KBD} ${MKASTOSC}
35 ${MKASTOSC} \
36 ${.CURDIR}/../../ctlr/hostctlr.h ${.CURDIR}/../../ctlr/function.h \
37 < ${.CURDIR}/../../ctlr/${KBD} > astosc.tmp
38 mv -f astosc.tmp ${.TARGET}
39 CLEANFILES+= astosc.tmp astosc.out
41 .include <bsd.hostprog.mk>
43 .PATH: ${.CURDIR}/../../api ${.CURDIR}/../../ascii
45 astosc.o: astosc.out
46 prt3270.o: kbd.out