mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
build: Add option to disable monitor and client utilities
This commit is contained in:
parent
1f7d44056c
commit
9f19cc3d25
10
Makefile.am
10
Makefile.am
@ -64,7 +64,7 @@ ell_sources = ell/ell.h ell/private.h ell/missing.h \
|
||||
|
||||
ell_libell_internal_la_SOURCES = $(ell_sources)
|
||||
|
||||
bin_PROGRAMS = src/iwd client/iwctl monitor/iwmon
|
||||
bin_PROGRAMS = src/iwd
|
||||
|
||||
src_iwd_SOURCES = src/main.c linux/nl80211.h \
|
||||
src/netdev.h src/netdev.c \
|
||||
@ -104,6 +104,9 @@ src_iwd_SOURCES = src/main.c linux/nl80211.h \
|
||||
|
||||
src_iwd_LDADD = ell/libell-internal.la -ldl
|
||||
|
||||
if CLIENT
|
||||
bin_PROGRAMS += client/iwctl
|
||||
|
||||
client_iwctl_SOURCES = client/main.c \
|
||||
client/adapter.c \
|
||||
client/agent-manager.c \
|
||||
@ -115,6 +118,10 @@ client_iwctl_SOURCES = client/main.c \
|
||||
client/network.h client/network.c \
|
||||
client/wsc.c
|
||||
client_iwctl_LDADD = ell/libell-internal.la -lreadline
|
||||
endif
|
||||
|
||||
if MONITOR
|
||||
bin_PROGRAMS += monitor/iwmon
|
||||
|
||||
monitor_iwmon_SOURCES = monitor/main.c linux/nl80211.h \
|
||||
monitor/nlmon.h monitor/nlmon.c \
|
||||
@ -131,6 +138,7 @@ monitor_iwmon_SOURCES = monitor/main.c linux/nl80211.h \
|
||||
src/eap.h src/eap.c \
|
||||
src/eap-tls.c src/eap-ttls.c
|
||||
monitor_iwmon_LDADD = ell/libell-internal.la
|
||||
endif
|
||||
|
||||
noinst_PROGRAMS = tools/hwsim
|
||||
noinst_PROGRAMS += tools/test-runner
|
||||
|
10
configure.ac
10
configure.ac
@ -89,6 +89,16 @@ AC_CHECK_HEADERS(linux/types.h linux/if_alg.h)
|
||||
AC_CHECK_HEADERS(readline/readline.h, enable_readline=yes,
|
||||
AC_MSG_ERROR(readline header files are required))
|
||||
|
||||
AC_ARG_ENABLE([client], AC_HELP_STRING([--disable-client],
|
||||
[don't install iwctl client utility]),
|
||||
[enable_client=${enableval}])
|
||||
AM_CONDITIONAL(CLIENT, test "${enable_client}" != "no")
|
||||
|
||||
AC_ARG_ENABLE([monitor], AC_HELP_STRING([--disable-monitor],
|
||||
[don't install iwmon monitor utility]),
|
||||
[enable_monitor=${enableval}])
|
||||
AM_CONDITIONAL(MONITOR, test "${enable_monitor}" != "no")
|
||||
|
||||
AC_ARG_ENABLE([dbus-policy], AC_HELP_STRING([--disable-dbus-policy],
|
||||
[don't install D-Bus system policy file]),
|
||||
[enable_dbus_policy=${enableval}])
|
||||
|
Loading…
Reference in New Issue
Block a user