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

3
4
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
5
6
7
if GCC_WERROR_OK
AM_CPPFLAGS += -Werror
endif
8

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

11
CLEANFILES = *.gcno *.gcda auth.spec
12

13
man_MANS = b10-auth.8
14
EXTRA_DIST = $(man_MANS) b10-auth.xml
15

16
17
if ENABLE_MAN

18
19
20
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

21
22
endif

23
24
auth.spec: auth.spec.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" auth.spec.pre >$@
25

26
pkglibexec_PROGRAMS = b10-auth
27
b10_auth_SOURCES = auth_srv.cc auth_srv.h
28
b10_auth_SOURCES += common.h
29
b10_auth_SOURCES += main.cc
Evan Hunt's avatar
Evan Hunt committed
30
31
b10_auth_LDADD =  $(top_builddir)/src/lib/datasrc/.libs/libdatasrc.a
b10_auth_LDADD += $(top_builddir)/src/lib/dns/.libs/libdns.a
32
b10_auth_LDADD += $(top_builddir)/src/lib/config/.libs/libcfgclient.a
Jeremy C. Reed's avatar
Jeremy C. Reed committed
33
34
b10_auth_LDADD += $(top_builddir)/src/lib/cc/libcc.a
b10_auth_LDADD += $(top_builddir)/src/lib/exceptions/.libs/libexceptions.a
35
b10_auth_LDADD += $(SQLITE_LIBS)
36
if HAVE_BOOST_SYSTEM
37
38
39
if HAVE_BOOST_PYTHON
b10_auth_LDADD += $(top_builddir)/src/lib/xfr/.libs/libxfr.a
endif
40
b10_auth_LDFLAGS = $(AM_LDFLAGS) $(BOOST_LDFLAGS)
41
b10_auth_LDADD += $(BOOST_SYSTEM_LIB)
42
endif
43

44
45
# TODO: config.h.in is wrong because doesn't honor pkgdatadir
# and can't use @datadir@ because doesn't expand default ${prefix}
46
47
48
b10_authdir = $(DESTDIR)$(pkgdatadir)
b10_auth_DATA = auth.spec