xref: /freebsd/contrib/openpam/t/Makefile.am (revision 3ba4c8c81a28de3e00ccf6d7f92c6f8e58bef456)
1f3b0ac34SDag-Erling Smørgravif WITH_TEST
22f3ed619SDag-Erling Smørgrav
323d17223SDag-Erling SmørgravAM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/libpam \
423d17223SDag-Erling Smørgrav	$(CRYB_TEST_CFLAGS)
52f3ed619SDag-Erling Smørgrav
6f3b0ac34SDag-Erling SmørgravAM_TESTS_ENVIRONMENT = \
7f3b0ac34SDag-Erling Smørgrav	PAM_RETURN_SO=$(abs_top_builddir)/modules/pam_return/.libs/pam_return.so
8f3b0ac34SDag-Erling Smørgrav
92f3ed619SDag-Erling Smørgrav# tests
10ce77a8d6SDag-Erling SmørgravTESTS =
1169cfb771SDag-Erling SmørgravTESTS += t_openpam_ctype
12f3b0ac34SDag-Erling SmørgravTESTS += t_openpam_dispatch
13ce77a8d6SDag-Erling SmørgravTESTS += t_openpam_readword
14ce77a8d6SDag-Erling SmørgravTESTS += t_openpam_readlinev
15*3ba4c8c8SDag-Erling SmørgravTESTS += t_openpam_straddch
16*3ba4c8c8SDag-Erling SmørgravTESTS += t_openpam_subst
1723d17223SDag-Erling SmørgravTESTS += t_pam_env
182f3ed619SDag-Erling Smørgravcheck_PROGRAMS = $(TESTS)
192f3ed619SDag-Erling Smørgrav
202f3ed619SDag-Erling Smørgrav# libt - common support code
212f3ed619SDag-Erling Smørgravcheck_LIBRARIES = libt.a
2223d17223SDag-Erling Smørgravlibt_a_SOURCES = t_pam_conv.c t_pam_err.c
2323d17223SDag-Erling Smørgravnoinst_HEADERS = t_pam_conv.h t_pam_err.h
242f3ed619SDag-Erling Smørgrav
25f3b0ac34SDag-Erling Smørgrav# link with libpam and test framework
26f3b0ac34SDag-Erling SmørgravLDADD = $(CRYB_TEST_LIBS) libt.a
27f3b0ac34SDag-Erling Smørgravif WITH_SYSTEM_LIBPAM
28f3b0ac34SDag-Erling SmørgravLDADD += $(SYSTEM_LIBPAM)
29f3b0ac34SDag-Erling Smørgravelse
30f3b0ac34SDag-Erling SmørgravLDADD += $(top_builddir)/lib/libpam/libpam.la
31f3b0ac34SDag-Erling Smørgravendif
32f3b0ac34SDag-Erling Smørgrav
33f3b0ac34SDag-Erling Smørgravendif
34