source: openpam/trunk/t/Makefile.am @ 940

Last change on this file since 940 was 940, checked in by Dag-Erling Smørgrav, 2 years ago

Use pkg-config / pkgconf to locate libcryb-test.

  • Property svn:eol-style set to native
  • Property svn:keywords set to OpenPAM=%I
File size: 668 bytes
Line 
1# $OpenPAM: Makefile.am 940 2019-02-20 12:21:40Z des $
2
3if WITH_TEST
4
5AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/libpam \
6        $(CRYB_TEST_CFLAGS)
7
8AM_TESTS_ENVIRONMENT = \
9        PAM_RETURN_SO=$(abs_top_builddir)/modules/pam_return/.libs/pam_return.so
10
11noinst_HEADERS = t_pam_conv.h
12
13# tests
14TESTS =
15TESTS += t_openpam_ctype
16TESTS += t_openpam_dispatch
17TESTS += t_openpam_readword
18TESTS += t_openpam_readlinev
19check_PROGRAMS = $(TESTS)
20
21# libt - common support code
22check_LIBRARIES = libt.a
23libt_a_SOURCES = t_pam_conv.c
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
Note: See TracBrowser for help on using the repository browser.