Move config logic into an "XML" SP plugin, divorce shibd and modules from old libs.
[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 attrincludedir = $(includedir)/shibsp/attribute
11
12 mdincludedir = $(includedir)/shibsp/metadata
13
14 remincludedir = $(includedir)/shibsp/remoting
15
16 secincludedir = $(includedir)/shibsp/security
17
18 utilincludedir = $(includedir)/shibsp/util
19
20 libshibspinclude_HEADERS = \
21         AbstractHandler.h \
22         AbstractSPRequest.h \
23         AccessControl.h \
24         Application.h \
25         base.h \
26         exceptions.h \
27         Handler.h \
28         paths.h \
29         RequestMapper.h \
30         ServiceProvider.h \
31         SessionCache.h \
32         SPConfig.h \
33         SPRequest.h \
34         TransactionLog.h \
35         version.h
36
37 attrinclude_HEADERS = \
38         attribute/Attribute.h \
39         attribute/NameIDAttribute.h \
40         attribute/ScopedAttribute.h \
41         attribute/SimpleAttribute.h
42
43 mdinclude_HEADERS = \
44         metadata/MetadataExt.h
45
46 reminclude_HEADERS = \
47         ddf.h \
48         ListenerService.h
49         
50 secinclude_HEADERS = \
51         security/PKIXTrustEngine.h
52
53 utilinclude_HEADERS = \
54         util/DOMPropertySet.h \
55         util/PropertySet.h \
56         util/SPConstants.h \
57         util/TemplateParameters.h
58
59 noinst_HEADERS = \
60         internal.h \
61         remoting/impl/SocketListener.h
62
63 libshibsp_la_SOURCES = \
64         AbstractHandler.cpp \
65         AbstractSPRequest.cpp \
66         Application.cpp \
67         ServiceProvider.cpp \
68         SessionCache.cpp \
69         SPConfig.cpp \
70         attribute/Attribute.cpp \
71         impl/RemotedSessionCache.cpp \
72         impl/StorageServiceSessionCache.cpp \
73         impl/XMLAccessControl.cpp \
74         impl/XMLRequestMapper.cpp \
75         impl/XMLServiceProvider.cpp \
76         metadata/MetadataExtImpl.cpp \
77         metadata/MetadataExtSchemaValidators.cpp \
78         remoting/impl/ddf.cpp \
79         remoting/impl/ListenerService.cpp \
80         remoting/impl/SocketListener.cpp \
81         remoting/impl/TCPListener.cpp \
82         remoting/impl/UnixListener.cpp \
83         security/PKIXTrustEngine.cpp \
84         util/DOMPropertySet.cpp \
85         util/SPConstants.cpp \
86         util/TemplateParameters.cpp
87
88 # this is different from the project version
89 # http://sources.redhat.com/autobook/autobook/autobook_91.html
90 libshibsp_la_LDFLAGS = -version-info 1:0:0
91
92 paths.h: ${srcdir}/paths.h.in Makefile ${top_builddir}/config.status
93         rm -f $@.tmp
94         sed < ${srcdir}/$@.in > $@.tmp \
95             -e 's:@-PKGSYSCONFDIR-@:${pkgsysconfdir}:' \
96             -e 's:@-XMLDIR-@:${xmldir}:'
97         cmp -s $@ $@.tmp || mv $@.tmp $@
98         rm -f $@.tmp
99
100 install-exec-hook:
101         for la in $(lib_LTLIBRARIES) ; do rm -f $(DESTDIR)$(libdir)/$$la ; done
102
103 EXTRA_DIST = shibsp.vcproj paths.h.in resource.h shibsp.rc
104 BUILT_SOURCES = paths.h