Makefile revision 3410
13410SacheLIB=    ncurses
23410SacheINCDIR= /usr/include
33410SacheCFLAGS+= -Wall -DMYTINFO -DTERMIOS -DGOOD_SELECT -DBSDTABS
43410SacheSHARED_LDADD+= -lmytinfo
53410SacheSRCS=   lib_kernel.c lib_pad.c\
63410Sache	lib_unctrl.c lib_raw.c lib_vidattr.c lib_trace.c lib_beep.c \
73410Sache	lib_doupdate.c lib_refresh.c lib_initscr.c lib_newwin.c lib_addch.c \
83410Sache	lib_addstr.c lib_scroll.c lib_clreol.c lib_touch.c lib_mvcur.c lib_keyname.c\
93410Sache	lib_delwin.c lib_endwin.c lib_clrbot.c lib_move.c lib_printw.c \
103410Sache	lib_scanw.c lib_erase.c lib_getch.c lib_options.c lib_acs.c lib_slk.c\
113410Sache	lib_box.c lib_clear.c lib_delch.c lib_deleteln.c lib_insch.c \
123410Sache	lib_insertln.c lib_getstr.c lib_mvwin.c lib_longname.c lib_tstp.c \
133410Sache	lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c lib_color.c \
143410Sache	lib_insstr.c lib_insdel.c lib_twait.c
153410SacheCLEANFILES+= lib_keyname.c ${.CURDIR}/keys.tries
163410Sache
173410Sachebeforedepend: ${.CURDIR}/keys.tries
183410Sache
193410Sachebeforeinstall:
203410Sache	@cd ${.CURDIR}; for i in ncurses.h nterm.h unctrl.h termcap.h; do \
213410Sache	  cmp -s $$i ${DESTDIR}${INCDIR}/$$i || \
223410Sache	  $(INSTALL) $(COPY) -m 444 -o $(BINOWN) -g $(BINGRP) $$i ${DESTDIR}$(INCDIR); done
233410Sache
243410Sache${.CURDIR}/keys.tries: keys.list MKkeys.awk
253410Sache	awk -f ${.CURDIR}/MKkeys.awk ${.CURDIR}/keys.list > ${.CURDIR}/keys.tries
263410Sache
273410Sache# in case you don't run make depend
283410Sachelib_options.o: ${.CURDIR}/keys.tries
293410Sache
303410Sachelib_keyname.c: keys.list MKkeyname.awk
313410Sache	awk -f ${.CURDIR}/MKkeyname.awk ${.CURDIR}/keys.list > lib_keyname.c
323410Sache
333410SacheMAN3 =  curs_addch.3 \
343410Sache	curs_addchst.3 \
353410Sache	curs_addstr.3 \
363410Sache	curs_attr.3 \
373410Sache	curs_beep.3 \
383410Sache	curs_bkgd.3 \
393410Sache	curs_border.3 \
403410Sache	curs_clear.3 \
413410Sache	curs_color.3 \
423410Sache	curs_delch.3 \
433410Sache	curs_delln.3 \
443410Sache	curs_getch.3 \
453410Sache	curs_getstr.3 \
463410Sache	curs_getyx.3 \
473410Sache	curs_inch.3  \
483410Sache	curs_inchstr.3 \
493410Sache	curs_initscr.3 \
503410Sache	curs_inopts.3 \
513410Sache	curs_insch.3 \
523410Sache	curs_insstr.3 \
533410Sache	curs_instr.3 \
543410Sache	curs_kernel.3 \
553410Sache	curs_move.3 \
563410Sache	curs_outopts.3 \
573410Sache	curs_overlay.3 \
583410Sache	curs_pad.3 \
593410Sache	curs_printw.3 \
603410Sache	curs_refresh.3 \
613410Sache	curs_scanw.3 \
623410Sache	curs_scr_dmp.3 \
633410Sache	curs_scroll.3 \
643410Sache	curs_slk.3 \
653410Sache	curs_termatt.3 \
663410Sache	curs_touch.3 \
673410Sache	curs_util.3 \
683410Sache	curs_window.3 \
693410Sache	ncurses.3
703410Sache
713410SacheMAN5 =  term.5 terminfo.5
723410Sache
733410Sache.include <bsd.lib.mk>
74