xref: /freebsd/contrib/openpam/t/Makefile.am (revision 3ba4c8c81a28de3e00ccf6d7f92c6f8e58bef456)
1if WITH_TEST
2
3AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/libpam \
4	$(CRYB_TEST_CFLAGS)
5
6AM_TESTS_ENVIRONMENT = \
7	PAM_RETURN_SO=$(abs_top_builddir)/modules/pam_return/.libs/pam_return.so
8
9# tests
10TESTS =
11TESTS += t_openpam_ctype
12TESTS += t_openpam_dispatch
13TESTS += t_openpam_readword
14TESTS += t_openpam_readlinev
15TESTS += t_openpam_straddch
16TESTS += t_openpam_subst
17TESTS += t_pam_env
18check_PROGRAMS = $(TESTS)
19
20# libt - common support code
21check_LIBRARIES = libt.a
22libt_a_SOURCES = t_pam_conv.c t_pam_err.c
23noinst_HEADERS = t_pam_conv.h t_pam_err.h
24
25# link with libpam and test framework
26LDADD = $(CRYB_TEST_LIBS) libt.a
27if WITH_SYSTEM_LIBPAM
28LDADD += $(SYSTEM_LIBPAM)
29else
30LDADD += $(top_builddir)/lib/libpam/libpam.la
31endif
32
33endif
34