freebsd-dev/usr.sbin/ngctl/Makefile
Ruslan Ermilov 968ed7eedb Push the detection of threading libs support down to ngctl/Makefile
as the latter can be built without threading (with the loss of line
editing functionality).

Pointed by:	glebius
2006-11-27 16:55:14 +00:00

31 lines
640 B
Makefile

# $FreeBSD$
# $Whistle: Makefile,v 1.3 1999/01/16 00:10:11 archie Exp $
.include <bsd.own.mk>
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)
NGCTL_NO_LIBEDIT=
.endif
.if ${MK_LIBTHR} == "no" && \
(${MACHINE_ARCH} == "sparc64" || ${MK_LIBPTHREAD} == "no")
NGCTL_NO_LIBEDIT=
.endif
DPADD= ${LIBNETGRAPH}
LDADD= -lnetgraph
.if !defined(NGCTL_NO_LIBEDIT)
CFLAGS+= -DEDITLINE
DPADD+= ${LIBPTHREAD} ${LIBEDIT} ${LIBTERMCAP}
LDADD+= -lpthread -ledit -ltermcap
.endif
.include <bsd.prog.mk>