1# $FreeBSD$ 2# $Whistle: Makefile,v 1.3 1999/01/16 00:10:11 archie Exp $ 3 4.include <bsd.own.mk> 5 6PROG= ngctl 7MAN= ngctl.8 8SRCS= main.c mkpeer.c config.c connect.c dot.c name.c show.c list.c \ 9 msg.c debug.c shutdown.c rmhook.c status.c types.c write.c 10WARNS?= 3 11 12.if defined(RELEASE_CRUNCH) 13NGCTL_NO_LIBEDIT= 14.endif 15 16.if ${MK_LIBTHR} == "no" && ${MK_LIBKSE} == "no" 17NGCTL_NO_LIBEDIT= 18.endif 19 20DPADD= ${LIBNETGRAPH} 21LDADD= -lnetgraph 22 23.if !defined(NGCTL_NO_LIBEDIT) 24CFLAGS+= -DEDITLINE 25DPADD+= ${LIBPTHREAD} ${LIBEDIT} ${LIBTERMCAP} 26LDADD+= -lpthread -ledit -ltermcap 27.endif 28 29.include <bsd.prog.mk> 30