2017-05-05 13:31:25 +00:00
|
|
|
# $OpenPAM: Makefile.am 938 2017-04-30 21:34:42Z des $
|
2017-02-19 21:00:46 +00:00
|
|
|
|
|
|
|
if WITH_TEST
|
2012-05-26 14:23:18 +00:00
|
|
|
|
2013-09-07 16:15:30 +00:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/libpam
|
2012-05-26 14:23:18 +00:00
|
|
|
|
2017-02-19 21:00:46 +00:00
|
|
|
AM_TESTS_ENVIRONMENT = \
|
|
|
|
PAM_RETURN_SO=$(abs_top_builddir)/modules/pam_return/.libs/pam_return.so
|
|
|
|
|
|
|
|
noinst_HEADERS = t_pam_conv.h
|
2012-05-26 14:23:18 +00:00
|
|
|
|
|
|
|
# tests
|
2013-09-07 16:15:30 +00:00
|
|
|
TESTS =
|
2014-02-26 17:06:54 +00:00
|
|
|
TESTS += t_openpam_ctype
|
2017-02-19 21:00:46 +00:00
|
|
|
TESTS += t_openpam_dispatch
|
2013-09-07 16:15:30 +00:00
|
|
|
TESTS += t_openpam_readword
|
|
|
|
TESTS += t_openpam_readlinev
|
2012-05-26 14:23:18 +00:00
|
|
|
check_PROGRAMS = $(TESTS)
|
|
|
|
|
|
|
|
# libt - common support code
|
|
|
|
check_LIBRARIES = libt.a
|
2017-02-19 21:00:46 +00:00
|
|
|
libt_a_SOURCES = t_pam_conv.c
|
|
|
|
|
|
|
|
# link with libpam and test framework
|
|
|
|
LDADD = $(CRYB_TEST_LIBS) libt.a
|
|
|
|
if WITH_SYSTEM_LIBPAM
|
|
|
|
LDADD += $(SYSTEM_LIBPAM)
|
|
|
|
else
|
|
|
|
LDADD += $(top_builddir)/lib/libpam/libpam.la
|
|
|
|
endif
|
2012-05-26 14:23:18 +00:00
|
|
|
|
2017-02-19 21:00:46 +00:00
|
|
|
endif
|