head	1.3;
access;
symbols
	pkgsrc-2013Q2:1.3.0.8
	pkgsrc-2013Q2-base:1.3
	pkgsrc-2012Q4:1.3.0.6
	pkgsrc-2012Q4-base:1.3
	pkgsrc-2011Q4:1.3.0.4
	pkgsrc-2011Q4-base:1.3
	pkgsrc-2011Q2:1.3.0.2
	pkgsrc-2011Q2-base:1.3
	src-20100114:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2010.01.17.17.27.25;	author dholland;	state dead;
branches;
next	1.2;

1.2
date	2010.01.17.01.41.34;	author dholland;	state Exp;
branches;
next	1.1;

1.1
date	2010.01.17.01.33.27;	author dholland;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2010.01.17.01.33.27;	author dholland;	state Exp;
branches;
next	;


desc
@@


1.3
log
@Remove this, as demanded by Joerg.
@
text
@#	$NetBSD: Makefile,v 1.2 2010/01/17 01:41:34 dholland Exp $

TOP=../..
include $(TOP)/mk/setup.mk

PROG=prt3270
SRCS=prt3270.c ../../api/asc_ebc.c ../../api/ebc_disp.c ../../api/astosc.c

GENFILES=kbd.out astosc.out

CFLAGS+=-I../../api
CFLAGS+=-I.
CFLAGS+=-DHOST_TOOL

# should be hostprog.mk for crosscompiling (FUTURE)
include $(TOP)/mk/prog.mk

MKHITS=../mkhits/mkhits
MKASTOSC=../mkastosc/mkastosc

kbd.out astosc.out: ../../ctlr/hostctlr.h ../../ctlr/$(KBD)

kbd.out: $(MKHITS) ../../ctlr/function.c
	$(CC) $(CFLAGS) -E ../../ctlr/function.c > kbd.tmp
	$(MKHITS) ../../ctlr/hostctlr.h kbd.tmp  < ../../ctlr/$(KBD) > kbd.tmp2
	rm -f kbd.tmp
	mv -f kbd.tmp2 kbd.out

astosc.out: ${MKASTOSC} ../../ctlr/function.h
	${MKASTOSC} ../../ctlr/hostctlr.h ../../ctlr/function.h \
	    < ../../ctlr/${KBD} > astosc.tmp
	mv -f astosc.tmp astosc.out

clean: cleanhere
cleanhere:
	rm -f kbd.tmp kbd.tmp2 astosc.tmp

# depend ought to pick these up, but just in case
astosc.o:	astosc.out
prt3270.o:	kbd.out
@


1.2
log
@New makefiles for this that don't depend on being in the base source tree.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.1.1 2010/01/17 01:33:27 dholland Exp $
@


1.1
log
@Initial revision
@
text
@d1 1
a1 2
#	$NetBSD$
#	From NetBSD: Makefile,v 1.11 2006/03/20 01:34:49 gdamore Exp 
d3 2
a4 1
NOMAN=		# defined
d6 2
a7 1
.include <bsd.own.mk>
d9 1
a9 33
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
d11 3
a13 1
.include <bsd.hostprog.mk>
d15 2
a16 1
.PATH: ${.CURDIR}/../../api ${.CURDIR}/../../ascii
d18 21
@


1.1.1.1
log
@Import tn3270 from base as of 20100114, just before its removal. This
is just the sources, and they're unchanged from base except that the
rcsids have been preserved. The package will be along shortly.
@
text
@@
