Another file gone
[shibboleth/cpp-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-rm.cpp \
26         shib-rpcerror.cpp \
27         shib-rpchandle.cpp \
28         shib-shire.cpp \
29         shib-sock.cpp \
30         shibrpc-clnt.c \
31         shibrpc-server.cpp \
32         shibrpc-svc.c \
33         shibrpc-xdr.c \
34         XML.cpp \
35         XMLRequestMapper.cpp
36
37 # this is different from the project version
38 # http://sources.redhat.com/autobook/autobook/autobook_91.html
39 libshib_target_la_LDFLAGS = -version-info 4:0:0
40
41
42
43 RPCGEN=rpcgen -M
44 RPCGEN_SRC=shibrpc.x
45
46 very-clean: 
47         $(RM) shibrpc.h shibrpc-xdr.c shibrpc-clnt.c shibrpc-svc.c
48
49 rpcgen:
50         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc.h RPCGEN_ARGS=-h
51         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-xdr.c RPCGEN_ARGS=-c
52         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-clnt.c RPCGEN_ARGS=-l
53         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-svc.c RPCGEN_ARGS=-m
54         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-server-stubs.c RPCGEN_ARGS=-Ss
55
56 do_rpcgen:
57         $(RM) $(RPCGEN_TARGET)
58         $(RPCGEN) $(RPCGEN_ARGS) -o $(RPCGEN_TARGET) $(RPCGEN_SRC)
59
60 EXTRA_DIST = shibtarget.dsp