mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
152f2a4a96
the threading libraries is built. This simplifies the logic in makefiles that need to check if the pthreads support is present. It also fixes a bug where we would build a threading library that we shouldn't have built: for example, building with WITHOUT_LIBTHR and the default value of DEFAULT_THREADING_LIB (libthr) would mistakenly build the libthr library, but not install it. Approved by: re (kensmith)
30 lines
600 B
Makefile
30 lines
600 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" && ${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>
|