Makefile.am 1.45 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.pre 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
25
auth.spec: auth.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" auth.pre >$@

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
Jeremy C. Reed's avatar
Jeremy C. Reed committed
30
31
b10_auth_LDADD =  $(top_builddir)/src/lib/auth/.libs/libauth.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
b10_auth_LDADD += $(top_builddir)/src/lib/xfr/.libs/libxfr.a
37
if HAVE_BOOST_SYSTEM
38
b10_auth_LDFLAGS = $(AM_LDFLAGS) $(BOOST_LDFLAGS)
39
b10_auth_LDADD += $(BOOST_SYSTEM_LIB)
40
endif
41

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