xref: /original-bsd/usr.bin/tn3270/tn3270/Makefile (revision 3ef9e136)
1*3ef9e136Sbostic#	@(#)Makefile	8.1 (Berkeley) 06/06/93
2cde7f9dcSbostic
3cde7f9dcSbosticPROG=	tn3270
4cde7f9dcSbosticCFLAGS+=-I${.CURDIR} -I.
5cde7f9dcSbosticLDADD+=	-lcurses -ltermcap -ltelnet
6cde7f9dcSbosticDPADD+=	${LIBCURSES} /usr/lib/libtermcap.a /usr/lib/libtelnet.a
7cde7f9dcSbosticCLEANFILES+= asc_disp.OUT asc_disp.out disp_asc.OUT disp_asc.out TMPfunc.out
8cde7f9dcSbostic.PATH:	${.CURDIR}/../api ${.CURDIR}/../ascii ${.CURDIR}/../ctlr
9cde7f9dcSbostic.PATH:	${.CURDIR}/../general ${.CURDIR}/../sys_curses ${.CURDIR}/../../telnet
10cde7f9dcSbostic
11cde7f9dcSbosticMAN1=	tn3270.0
12cde7f9dcSbostic
13cde7f9dcSbosticSRCS+=	apilib.c api_bsd.c api_exch.c asc_ebc.c astosc.c dctype.c
14cde7f9dcSbosticSRCS+=	disp_asc.c ebc_disp.c
15cde7f9dcSbosticSRCS+=	map3270.c termin.c
16cde7f9dcSbosticSRCS+=	api.c function.c inbound.c oia.c options.c outbound.c
17cde7f9dcSbosticSRCS+=	genbsubs.c globals.c system.c termout.c
18cde7f9dcSbosticSRCS+=	commands.c main.c network.c ring.c sys_bsd.c telnet.c terminal.c
19cde7f9dcSbosticSRCS+=	tn3270.c utilities.c
20cde7f9dcSbostic
21cde7f9dcSbostic# This and the dependency hacks below to make 'depend' target
22cde7f9dcSbostic# work right...
23cde7f9dcSbostic
24cde7f9dcSbosticDEPSRCS+= astosc.OUT asc_disp.OUT disp_asc.OUT kbd.OUT
25cde7f9dcSbosticDEPSRCS+= apilib.c api_bsd.c api_exch.c asc_ebc.c dctype.c
26cde7f9dcSbosticDEPSRCS+= ebc_disp.c
27cde7f9dcSbosticDEPSRCS+= map3270.c termin.c
28cde7f9dcSbosticDEPSRCS+= api.c function.c inbound.c oia.c options.c outbound.c
29cde7f9dcSbosticDEPSRCS+= genbsubs.c globals.c system.c termout.c
30cde7f9dcSbosticDEPSRCS+= commands.c main.c network.c ring.c sys_bsd.c telnet.c terminal.c
31cde7f9dcSbosticDEPSRCS+= tn3270.c utilities.c
32cde7f9dcSbostic
33cde7f9dcSbosticastosc.o: astosc.OUT
34cde7f9dcSbosticCLEANFILES+= astosc.OUT astosc.out
35cde7f9dcSbosticastosc.OUT: ${.CURDIR}/../ctlr/hostctlr.h ${.CURDIR}/../ctlr/function.h
36cde7f9dcSbosticastosc.OUT: ${.CURDIR}/../ctlr/${KBD} ${.CURDIR}/../tools/mkastosc/obj/mkastosc
37cde7f9dcSbostic	${.CURDIR}/../tools/mkastosc/obj/mkastosc \
38cde7f9dcSbostic	    ${.CURDIR}/../ctlr/hostctlr.h \
39cde7f9dcSbostic	    ${.CURDIR}/../ctlr/function.h < ${.CURDIR}/../ctlr/${KBD} \
40cde7f9dcSbostic	    > ${.TARGET}
414f064ab0Storek	rm -f astosc.out; ln -s astosc.OUT astosc.out
42cde7f9dcSbostic
43cde7f9dcSbosticdisp_asc.o: asc_disp.OUT disp_asc.OUT
44cde7f9dcSbosticasc_disp.OUT: ${.CURDIR}/../tools/mkastods/obj/mkastods
45cde7f9dcSbostic	${.CURDIR}/../tools/mkastods/obj/mkastods > ${.TARGET}
464f064ab0Storek	rm -f asc_disp.out; ln -s asc_disp.OUT asc_disp.out
47cde7f9dcSbostic
48cde7f9dcSbosticdisp_asc.OUT: ${.CURDIR}/../tools/mkdstoas/obj/mkdstoas
49cde7f9dcSbostic	${.CURDIR}/../tools/mkdstoas/obj/mkdstoas > ${.TARGET}
504f064ab0Storek	rm -f disp_asc.out; ln -s disp_asc.OUT disp_asc.out
51cde7f9dcSbostic
52cde7f9dcSbosticinbound.o: kbd.OUT
53cde7f9dcSbosticCLEANFILES += kbd.OUT kbd.out
54cde7f9dcSbostickbd.OUT: ${.CURDIR}/../ctlr/hostctlr.h ${.CURDIR}/../ctlr/${KBD}
55cde7f9dcSbostickbd.OUT: ${.CURDIR}/../tools/mkhits/obj/mkhits
56cde7f9dcSbostic	${CC} ${CFLAGS} -E ${.CURDIR}/../ctlr/function.c > TMPfunc.out
57cde7f9dcSbostic	${.CURDIR}/../tools/mkhits/obj/mkhits ${.CURDIR}/../ctlr/hostctlr.h \
58cde7f9dcSbostic	    TMPfunc.out < ${.CURDIR}/../ctlr/${KBD} > ${.TARGET}
594f064ab0Storek	rm -f kbd.out; ln -s kbd.OUT kbd.out
60cde7f9dcSbostic
61cde7f9dcSbostic# astosc.out
62cde7f9dcSbostic# asc_disp.out disp_asc.out
63cde7f9dcSbostic# default.map
64cde7f9dcSbostic# kbd.out
65cde7f9dcSbostic
66cde7f9dcSbostic${.CURDIR}/../tools/mkastosc/obj/mkastosc:
67cde7f9dcSbostic	cd ${.CURDIR}/../tools/mkastosc; make
68cde7f9dcSbostic${.CURDIR}/../tools/mkastods/obj/mkastods:
69cde7f9dcSbostic	cd ${.CURDIR}/../tools/mkastods; make
70cde7f9dcSbostic${.CURDIR}/../tools/mkdstoas/obj/mkdstoas:
71cde7f9dcSbostic	cd ${.CURDIR}/../tools/mkdstoas; make
72cde7f9dcSbostic${.CURDIR}/../tools/mkhits/obj/mkhits:
73cde7f9dcSbostic	cd ${.CURDIR}/../tools/mkhits; make
74cde7f9dcSbostic
75cde7f9dcSbosticdepend: .depend
76cde7f9dcSbostic.depend: ${DEPSRCS}
77cde7f9dcSbostic	mkdep ${MKDEP} ${CFLAGS:M-[ID]*} ${.ALLSRC:M*.c}
78cde7f9dcSbostic
79cde7f9dcSbostic.include <../../Makefile.inc>
80cde7f9dcSbostic.include <bsd.prog.mk>
81