Makefile.am 2.1 KB
Newer Older
JINMEI Tatuya's avatar
JINMEI Tatuya committed
1
SUBDIRS = . tests benchmarks
2

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 7 8
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/cc -I$(top_builddir)/src/lib/cc
AM_CPPFLAGS += -I$(top_srcdir)/src/lib/asiolink
AM_CPPFLAGS += -I$(top_builddir)/src/lib/asiolink
9
AM_CPPFLAGS += $(BOOST_INCLUDES)
10 11

AM_CXXFLAGS = $(B10_CXXFLAGS)
12

JINMEI Tatuya's avatar
JINMEI Tatuya committed
13 14 15 16
if USE_STATIC_LINK
AM_LDFLAGS = -static
endif

17 18
pkglibexecdir = $(libexecdir)/@PACKAGE@

19
CLEANFILES = *.gcno *.gcda auth.spec spec_config.h
20

21
man_MANS = b10-auth.8
22
EXTRA_DIST = $(man_MANS) b10-auth.xml
23

24 25
if ENABLE_MAN

26 27
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
28

29 30
endif

31 32
auth.spec: auth.spec.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" auth.spec.pre >$@
33

34 35 36
spec_config.h: spec_config.h.pre
	$(SED) -e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" spec_config.h.pre >$@

37
BUILT_SOURCES = spec_config.h
38
pkglibexec_PROGRAMS = b10-auth
39 40
b10_auth_SOURCES = query.cc query.h
b10_auth_SOURCES += auth_srv.cc auth_srv.h
41
b10_auth_SOURCES += change_user.cc change_user.h
42
b10_auth_SOURCES += config.cc config.h
43
b10_auth_SOURCES += command.cc command.h
44
b10_auth_SOURCES += common.h
45
b10_auth_SOURCES += statistics.cc statistics.h
46
b10_auth_SOURCES += main.cc
JINMEI Tatuya's avatar
JINMEI Tatuya committed
47 48 49 50 51
b10_auth_LDADD =  $(top_builddir)/src/lib/datasrc/libdatasrc.la
b10_auth_LDADD += $(top_builddir)/src/lib/dns/libdns++.la
b10_auth_LDADD += $(top_builddir)/src/lib/config/libcfgclient.la
b10_auth_LDADD += $(top_builddir)/src/lib/cc/libcc.la
b10_auth_LDADD += $(top_builddir)/src/lib/exceptions/libexceptions.la
52
b10_auth_LDADD += $(top_builddir)/src/lib/asiolink/libasiolink.la
53
b10_auth_LDADD += $(top_builddir)/src/lib/nsas/libnsas.la
JINMEI Tatuya's avatar
JINMEI Tatuya committed
54
b10_auth_LDADD += $(top_builddir)/src/lib/xfr/libxfr.la
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