0c262db70a17fe32763426fdc308b0d23ad0cfd4
[shibboleth/cpp-sp.git] / shibsp / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 pkgsysconfdir = $(sysconfdir)/@PACKAGE@
4 xmldir = $(datadir)/xml
5
6 lib_LTLIBRARIES = libshibsp.la
7
8 libshibspincludedir = $(includedir)/shibsp
9
10 libshibspinclude_HEADERS = \
11         base.h \
12         ddf.h \
13         exceptions.h \
14         ListenerService.h \
15         paths.h \
16         version.h \
17         SocketListener.h \
18         SPConfig.h
19
20 noinst_HEADERS = \
21         internal.h
22
23 libshibsp_la_SOURCES = \
24         ddf.cpp \
25         ListenerService.cpp \
26         SocketListener.cpp \
27         TCPListener.cpp \
28         UnixListener.cpp \
29         SPConfig.cpp
30
31 # this is different from the project version
32 # http://sources.redhat.com/autobook/autobook/autobook_91.html
33 libshibsp_la_LDFLAGS = -version-info 1:0:0
34
35 paths.h: ${srcdir}/paths.h.in Makefile ${top_builddir}/config.status
36         rm -f $@.tmp
37         sed < ${srcdir}/$@.in > $@.tmp \
38             -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \
39             -e 's:@-XMLDIR-@:${xmldir}:'
40         cmp -s $@ $@.tmp || mv $@.tmp $@
41         rm -f $@.tmp
42
43 install-exec-hook:
44         for la in $(lib_LTLIBRARIES) ; do rm -f $(DESTDIR)$(libdir)/$$la ; done
45
46 EXTRA_DIST = shibsp.vcproj paths.h.in resource.h shibsp.rc
47 BUILT_SOURCES = paths.h