Skip to content

Commit 0b84bf9

Browse files
committed
tidy up Makefile.am wrt. check variables
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 70b2bd6 commit 0b84bf9

File tree

2 files changed

+16
-19
lines changed

2 files changed

+16
-19
lines changed

test/.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/test
2-
/test-cmd
1+
/*.la
32
/*.lo
43
/*.o
54
/*.slo
@@ -10,8 +9,10 @@
109
/.dirstamp
1110
/*.gcno
1211
/*.gcda
13-
/test_jose
14-
/test_util
1512
/Makefile
1613
/Makefile.in
14+
/test
15+
/test-cmd
16+
/test_jose
17+
/test_util
1718
/test_cfg

test/Makefile.am

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ AM_CFLAGS += -DUSE_ZLIB @ZLIB_CFLAGS@
2727
LIBADD += @ZLIB_LIBS@
2828
endif
2929

30-
noinst_HEADERS = helper.h
30+
noinst_LTLIBRARIES = libtest.la
31+
libtest_la_SOURCES = \
32+
helper.c \
33+
stub.c
3134

32-
LDADD = ${top_builddir}/src/libauth_openidc.la ${LIBADD}
35+
noinst_HEADERS = helper.h
3336

3437
noinst_PROGRAMS = test-cmd
3538
test_cmd_SOURCES = test-cmd.c stub.c
@@ -42,20 +45,13 @@ test_CFLAGS = ${AM_CFLAGS} -fPIC
4245

4346
if HAVE_CHECK
4447

45-
TESTS += test_jose
46-
test_jose_CFLAGS = @CHECK_CFLAGS@ ${AM_CFLAGS}
47-
test_jose_LDADD = @CHECK_LIBS@ ${LDADD}
48-
test_jose_SOURCES = test_jose.c helper.c stub.c
49-
50-
TESTS += test_util
51-
test_util_CFLAGS = @CHECK_CFLAGS@ ${AM_CFLAGS}
52-
test_util_LDADD = @CHECK_LIBS@ ${LDADD}
53-
test_util_SOURCES = test_util.c helper.c stub.c
48+
LDADD = ${top_builddir}/src/libauth_openidc.la libtest.la ${LIBADD} @CHECK_LIBS@
49+
AM_CFLAGS += @CHECK_CFLAGS@
5450

55-
TESTS += test_cfg
56-
test_cfg_CFLAGS = @CHECK_CFLAGS@ ${AM_CFLAGS}
57-
test_cfg_LDADD = @CHECK_LIBS@ ${LDADD}
58-
test_cfg_SOURCES = test_cfg.c helper.c stub.c
51+
TESTS += \
52+
test_util \
53+
test_cfg \
54+
test_jose
5955

6056
endif
6157

0 commit comments

Comments
 (0)