Makefile.am 1.32 KB
Newer Older
1
2
SUBDIRS = . tests

3
4
5
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
AM_CPPFLAGS += -I$(top_srcdir)/ext  
6
7
8
if GCC_WERROR_OK
AM_CPPFLAGS += -Werror
endif
9

10
11
pkglibexecdir = $(libexecdir)/@PACKAGE@

12
13
CLEANFILES = *.gcno *.gcda

14
15
16
17
18
19
man_MANS = b10-auth.8
EXTRA_DIST = $(man_MANS) b10-auth.xml

b10-auth.8: b10-auth.xml
	xsltproc --novalid --xinclude --nonet -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $(srcdir)/b10-auth.xml

20
pkglibexec_PROGRAMS = b10-auth
21
b10_auth_SOURCES = auth_srv.cc auth_srv.h
22
b10_auth_SOURCES += common.h
23
b10_auth_SOURCES += main.cc
Jeremy C. Reed's avatar
Jeremy C. Reed committed
24
25
b10_auth_LDADD =  $(top_builddir)/src/lib/auth/.libs/libauth.a
b10_auth_LDADD +=  $(top_builddir)/src/lib/dns/.libs/libdns.a
26
b10_auth_LDADD += $(top_builddir)/src/lib/config/.libs/libcfgclient.a
Jeremy C. Reed's avatar
Jeremy C. Reed committed
27
28
b10_auth_LDADD += $(top_builddir)/src/lib/cc/libcc.a
b10_auth_LDADD += $(top_builddir)/src/lib/exceptions/.libs/libexceptions.a
29
b10_auth_LDADD += $(SQLITE_LIBS)
30
31
if HAVE_BOOSTLIB
b10_auth_LDFLAGS = $(AM_LDFLAGS) $(BOOST_LDFLAGS)
32
b10_auth_LDADD += $(BOOST_SYSTEM_LIB)
33
endif
34

35
36
# TODO: config.h.in is wrong because doesn't honor pkgdatadir
# and can't use @datadir@ because doesn't expand default ${prefix}
37
38
39
b10_authdir = $(DESTDIR)$(pkgdatadir)
b10_auth_DATA = auth.spec

40
EXTRA_DIST += auth.spec
41