blob: 46da9fc87cc74b977a4fe4e647ca6089c0d5479e [file] [log] [blame]
AM_CPPFLAGS = -I$(top_srcdir)/compat @OPENSSL_INCLUDES@
lib_LTLIBRARIES = libduo.la
libduo_la_SOURCES = bson.h bson.c cacert.h duo.c \
http_parser.h http_parser.c https.h https.c ini.h ini.c \
urlenc.h urlenc.c util.c
libduo_la_LIBADD = $(top_builddir)/compat/libcompat.la @OPENSSL_LDFLAGS@ @OPENSSL_LIBS@
# http://sourceware.org/autobook/autobook/autobook_91.html
libduo_la_LDFLAGS = -no-undefined -version-info 3:0:0 -export-symbols-regex '^duo_'
libduo_la_includedir = $(includedir)
libduo_la_include_HEADERS = duo.h util.h
notrans_dist_man3_MANS = duo.3
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libduo.pc
noinst_PROGRAMS = testduo
testduo_LDADD = libduo.la
install-data-local:
$(MKDIR_P) $(DESTDIR)$(sysconfdir)
-@if [ ! -f $(DESTDIR)$(sysconfdir)/duo.crt ]; then \
cp duo.crt $(DESTDIR)$(sysconfdir)/duo.crt; \
echo "Created ${DESTDIR}$(sysconfdir)/duo.crt"; \
else \
echo "Found existing ${DESTDIR}$(sysconfdir)/duo.crt - skipping"; \
fi