glebius 5b77ad5650 Merge rev. 1.17:
Do not build the libedit support if NO_LIBPTHREAD is defined.

  PR:		bin/104478
  Submitted by:	Mike Durian <durian shadetreesoftware.com>
2007-03-30 08:25:53 +00:00

24 lines
523 B
Makefile

# $FreeBSD$
# $Whistle: Makefile,v 1.3 1999/01/16 00:10:11 archie Exp $
PROG= ngctl
MAN= ngctl.8
SRCS= main.c mkpeer.c config.c connect.c dot.c name.c show.c list.c \
msg.c debug.c shutdown.c rmhook.c status.c types.c write.c
WARNS?= 3
.if defined(RELEASE_CRUNCH) || defined(NO_LIBPTHREAD)
NGCTL_NO_LIBEDIT=
.endif
DPADD= ${LIBNETGRAPH}
LDADD= -lnetgraph
.if !defined(NGCTL_NO_LIBEDIT)
CFLAGS+= -DEDITLINE
DPADD+= ${LIBPTHREAD} ${LIBEDIT} ${LIBTERMCAP}
LDADD+= -pthread -ledit -ltermcap
.endif
.include <bsd.prog.mk>