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

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

Add configure options to build as much as possible using the system
libpam and / or liboath. Doing so disables building the corresponding
library and its documentation, but still builts the corresponding tools
and modules and runs the unit tests.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 625 bytes
Line 
1# $Id: Makefile.am 834 2014-10-28 10:25:58Z des $
2
3AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/lib/libpam
4
5noinst_HEADERS = t.h
6
7# tests
8TESTS =
9TESTS += t_openpam_ctype
10TESTS += t_openpam_readword
11TESTS += t_openpam_readlinev
12if WITH_OATH
13TESTS += t_rfc4648
14endif
15check_PROGRAMS = $(TESTS)
16
17# libt - common support code
18check_LIBRARIES = libt.a
19libt_a_SOURCES = t_main.c t_file.c
20
21# link with libpam and libt
22LDADD = libt.a
23if WITH_SYSTEM_LIBPAM
24LDADD += $(SYSTEM_LIBPAM)
25else
26LDADD += $(top_builddir)/lib/libpam/libpam.la
27endif
28if WITH_OATH
29if WITH_SYSTEM_LIBOATH
30LDADD += $(SYSTEM_LIBOATH)
31else
32LDADD += $(top_builddir)/lib/liboath/liboath.la
33endif
34endif
Note: See TracBrowser for help on using the repository browser.