Makefile.am 2.34 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
AM_CPPFLAGS += -I$(top_builddir)/src/lib/cc
6
7

AM_CXXFLAGS = $(B10_CXXFLAGS)
8

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

11
CLEANFILES = *.gcno *.gcda auth.spec spec_config.h
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
27
28
spec_config.h: spec_config.h.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" spec_config.h.pre >$@

29
30
31
32
33
34
35
36
# This is a wrapper library solely used for b10-auth.  The ASIO header files
# have some code fragments that would hit gcc's unused-parameter warning,
# which would make the build fail with -Werror (our default setting).
# We don't want to lower the warning level for our own code just for ASIO,
# so as a workaround we extract the ASIO related code into a separate library,
# only for which we accept the unused-parameter warning.
lib_LIBRARIES = libasio_link.a
libasio_link_a_SOURCES = asio_link.cc asio_link.h
37
38
# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
# B10_CXXFLAGS)
39
40
41
42
libasio_link_a_CXXFLAGS = $(AM_CXXFLAGS)
if USE_GXX
libasio_link_a_CXXFLAGS += -Wno-unused-parameter
endif
43
libasio_link_a_CPPFLAGS = $(AM_CPPFLAGS)
44

45
BUILT_SOURCES = spec_config.h 
46
pkglibexec_PROGRAMS = b10-auth
47
b10_auth_SOURCES = auth_srv.cc auth_srv.h
48
b10_auth_SOURCES += common.h
49
b10_auth_SOURCES += main.cc
Evan Hunt's avatar
Evan Hunt committed
50
b10_auth_LDADD =  $(top_builddir)/src/lib/datasrc/.libs/libdatasrc.a
JINMEI Tatuya's avatar
JINMEI Tatuya committed
51
b10_auth_LDADD += $(top_builddir)/src/lib/dns/.libs/libdns++.a
52
b10_auth_LDADD += $(top_builddir)/src/lib/config/.libs/libcfgclient.a
53
b10_auth_LDADD += $(top_builddir)/src/lib/cc/.libs/libcc.a
Jeremy C. Reed's avatar
Jeremy C. Reed committed
54
b10_auth_LDADD += $(top_builddir)/src/lib/exceptions/.libs/libexceptions.a
55
b10_auth_LDADD += $(top_builddir)/src/bin/auth/libasio_link.a
56
b10_auth_LDADD += $(SQLITE_LIBS)
57
58
59
if HAVE_BOOST_PYTHON
b10_auth_LDADD += $(top_builddir)/src/lib/xfr/.libs/libxfr.a
endif
60

61
62
# TODO: config.h.in is wrong because doesn't honor pkgdatadir
# and can't use @datadir@ because doesn't expand default ${prefix}
63
64
65
b10_authdir = $(DESTDIR)$(pkgdatadir)
b10_auth_DATA = auth.spec