Redesigned target around URL->application mapping
[shibboleth/sp.git] / shib-target / Makefile.am
1 ## $Id$
2
3 AUTOMAKE_OPTIONS = foreign
4
5 lib_LTLIBRARIES = libshib-target.la
6
7 if USE_OUR_ONCRPC
8 libshib_target_la_LIBADD = ${top_builddir}/oncrpc/liboncrpc.la
9 AM_CFLAGS = -I${top_srcdir}/oncrpc
10 MY_AM_CXXFLAGS = -I${top_srcdir}/oncrpc
11 endif
12
13 INIFLAGS = -DSHIBTARGET_INIFILE=\"$(sysconfdir)/@PACKAGE@/shibboleth.ini\"
14 AM_CXXFLAGS = $(MY_AM_CXXFLAGS) $(INIFLAGS)
15
16 libshib_targetdir = $(includedir)/shib-target
17 libshib_target_HEADERS = shib-target.h shibrpc.h ccache-utils.h
18 noinst_HEADERS = internal.h
19
20 libshib_target_la_SOURCES = \
21         shib-ccache.cpp \
22         shib-config.cpp \
23         shib-ini.cpp \
24         shib-mlp.cpp \
25         shib-resourceentry.cpp \
26         shib-rm.cpp \
27         shib-rpcerror.cpp \
28         shib-rpchandle.cpp \
29         shib-rpcutil.c \
30         shib-shire.cpp \
31         shib-sock.c \
32         shib-target.cpp \
33         shibrpc-clnt.c \
34         shibrpc-server.cpp \
35         shibrpc-svc.c \
36         shibrpc-xdr.c \
37         XML.cpp \
38         XMLApplicationMapper.cpp
39
40 # this is different from the project version
41 # http://sources.redhat.com/autobook/autobook/autobook_91.html
42 libshib_target_la_LDFLAGS = -version-info 4:0:0
43
44
45
46 RPCGEN=rpcgen -M
47 RPCGEN_SRC=shibrpc.x
48
49 very-clean: 
50         $(RM) shibrpc.h shibrpc-xdr.c shibrpc-clnt.c shibrpc-svc.c
51
52 rpcgen:
53         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc.h RPCGEN_ARGS=-h
54         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-xdr.c RPCGEN_ARGS=-c
55         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-clnt.c RPCGEN_ARGS=-l
56         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-svc.c RPCGEN_ARGS=-m
57         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-server-stubs.c RPCGEN_ARGS=-Ss
58
59 do_rpcgen:
60         $(RM) $(RPCGEN_TARGET)
61         $(RPCGEN) $(RPCGEN_ARGS) -o $(RPCGEN_TARGET) $(RPCGEN_SRC)
62
63 EXTRA_DIST = shibtarget.dsp