3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

build: Do not build unit tests without maintainer mode

This commit is contained in:
Marcel Holtmann 2014-05-11 16:18:45 -07:00
parent 2286890184
commit 9b07eb2c48

View File

@ -36,7 +36,13 @@ src_iwd_LDADD = ell/libell-internal.la
client_iwctl_SOURCES = client/main.c
client_iwctl_LDADD = ell/libell-internal.la
noinst_PROGRAMS = unit/test-pbkdf2-sha1 unit/test-prf-sha1
noinst_PROGRAMS =
unit_tests = unit/test-pbkdf2-sha1 unit/test-prf-sha1
if MAINTAINER_MODE
noinst_PROGRAMS += $(unit_tests)
endif
unit_test_pbkdf2_sha1_SOURCES = unit/test-pbkdf2-sha1.c \
src/sha1.h src/sha1.c
@ -46,7 +52,7 @@ unit_test_prf_sha1_SOURCES = unit/test-prf-sha1.c \
src/sha1.h src/sha1.c
unit_test_prf_sha1_LDADD = ell/libell-internal.la
TESTS = $(noinst_PROGRAMS)
TESTS = $(unit_tests)
AM_CFLAGS = -fvisibility=hidden