Reworking source tree and Makefiles for out of tree builds.
[shibboleth/cpp-sp-resolver.git] / src / Makefile.am
1 AUTOMAKE_OPTIONS = foreign
2
3 lib_LTLIBRARIES = libshibresolver.la libshibresolver-lite.la
4
5 libshibresolverincludedir = $(includedir)/shibresolver
6
7 libshibresolverinclude_HEADERS = \
8         shibresolver/base.h \
9         shibresolver/resolver.h
10
11 noinst_HEADERS = \
12         shibresolver/internal.h
13
14 common_sources = \
15         shibresolver/resolver.cpp
16
17 libshibresolver_la_SOURCES = \
18         ${common_sources}
19
20 libshibresolver_lite_la_SOURCES = \
21         ${common_sources}
22
23 # this is different from the project version
24 # http://sources.redhat.com/autobook/autobook/autobook_91.html
25 libshibresolver_la_LDFLAGS = $(XMLSEC_LIBS) -version-info 1:0:0
26 libshibresolver_lite_la_LDFLAGS = $(LITE_LIBS) -version-info 1:0:0
27 libshibresolver_lite_la_CPPFLAGS = -DSHIBSP_LITE
28
29 install-exec-hook:
30         for la in $(lib_LTLIBRARIES) ; do rm -f $(DESTDIR)$(libdir)/$$la ; done
31
32 EXTRA_DIST = \
33         resolver.vcxproj \
34         resolver-lite.vcxproj \
35         shibresolver/resource.h \
36         shibresolver/resolver.rc