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