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

3
AM_CPPFLAGS = -I$(top_srcdir)/src/lib -I$(top_builddir)/src/lib
4
AM_CPPFLAGS += -I$(top_srcdir)/src/bin -I$(top_builddir)/src/bin
5
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/dns -I$(top_builddir)/src/lib/dns
6
AM_CPPFLAGS += -I$(top_builddir)/src/lib/cc
7
8

AM_CXXFLAGS = $(B10_CXXFLAGS)
9

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

12
CLEANFILES = *.gcno *.gcda auth.spec spec_config.h
13

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

17
18
if ENABLE_MAN

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

22
23
endif

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

27
28
29
spec_config.h: spec_config.h.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" spec_config.h.pre >$@

30
31
32
33
34
35
36
37
# 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
38
39
40
41
# Note: the ordering matters: -Wno-... must follow -Wextra (defined in
# B10_CXXFLAGS)
libasio_link_a_CXXFLAGS = $(AM_CXXFLAGS) -Wno-unused-parameter
libasio_link_a_CPPFLAGS = $(AM_CPPFLAGS)
42

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

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