73a130f862276e085afc8d8648cd63a15050669b
[shibboleth/cpp-sp.git] / shib-target / Makefile.am
1 ## $Id$
2
3 AUTOMAKE_OPTIONS = foreign
4
5 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
6 pkgxmldir = $(datadir)/xml/@PACKAGE@
7
8 lib_LTLIBRARIES = libshib-target.la
9
10 libshib_targetdir = $(includedir)/shib-target
11 libshib_target_HEADERS = shib-target.h shib-paths.h hresult.h
12 noinst_HEADERS = internal.h
13
14 libshib_target_la_SOURCES = \
15         ArtifactMapper.cpp \
16     ShibHTTPHook.cpp \
17         shib-ccache.cpp \
18         shib-config.cpp \
19         shib-handlers.cpp \
20         shib-ini.cpp \
21         shib-target.cpp \
22         XML.cpp \
23         XMLRequestMapper.cpp
24
25 # this is different from the project version
26 # http://sources.redhat.com/autobook/autobook/autobook_91.html
27 libshib_target_la_LDFLAGS = -version-info 7:0:0
28
29
30
31 shib-paths.h: ${srcdir}/shib-paths.h.in Makefile ${top_builddir}/config.status
32         rm -f $@.tmp
33         sed < ${srcdir}/$@.in > $@.tmp \
34             -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \
35             -e 's:@-PKGXMLDIR-@:${pkgxmldir}:'
36         cmp -s $@ $@.tmp || mv $@.tmp $@
37         rm -f $@.tmp
38
39 install-exec-hook:
40         for la in $(lib_LTLIBRARIES) ; do rm -f $(DESTDIR)$(libdir)/$$la ; done
41
42 EXTRA_DIST = shibtarget.vcproj shib-paths.h.in resource.h shib-target.rc
43 BUILT_SOURCES = shib-paths.h