1 # $NetBSD: Makefile,v 1.13 2001/01/07 07:18:32 phil Exp $ 2 3 .include <bsd.own.mk> 4 5 MENUCDIR!= cd $(.CURDIR)/..; ${PRINTOBJDIR} 6 MENUC= ${MENUCDIR}/menuc 7 ${MENUC}: 8 cd ${.CURDIR}/..; ${MAKE} 9 10 PROG= testm 11 SRCS= msg_defs.c menu_defs.c main.c 12 CFLAGS+=-g 13 CPPFLAGS+=-I. 14 WARNS= 1 15 LDADD+= -lcurses -ltermcap 16 DPADD+= ${LIBCURSES} 17 MKMAN= no 18 19 CLEANFILES+= menu_defs.c menu_defs.h msg_defs.c msg_defs.h 20 21 menu_defs.c menu_defs.h: menus.mc ${MENUC} ${.CURDIR}/../menu_sys.def 22 MENUDEF=${.CURDIR}/.. ${MENUC} ${.CURDIR}/menus.mc 23 24 msg_defs.c msg_defs.h: menus.msg 25 msgc ${.CURDIR}/menus.msg 26 27 .include <bsd.prog.mk> 28