Removed aap-uri
[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 AM_CXXFLAGS = -I${top_srcdir}/oncrpc
11 endif
12
13 libshib_targetdir = $(includedir)/shib-target
14 libshib_target_HEADERS = shib-target.h shibrpc.h ccache-utils.h
15
16 libshib_target_la_SOURCES = \
17         shib-ccache.cpp \
18         shib-config.cpp \
19         shib-ini.cpp \
20         shib-mlp.cpp \
21         shib-resource.cpp \
22         shib-resourceentry.cpp \
23         shib-rm.cpp \
24         shib-rpcerror.cpp \
25         shib-rpchandle.cpp \
26         shib-rpcutil.c \
27         shib-shire.cpp \
28         shib-sock.c \
29         shib-target.cpp \
30         shibrpc-clnt.c \
31         shibrpc-server.cpp \
32         shibrpc-svc.c \
33         shibrpc-xdr.c
34
35 # this is different from the project version
36 # http://sources.redhat.com/autobook/autobook/autobook_91.html
37 libshib_target_la_LDFLAGS = -version-info 3:1:0
38
39
40
41 RPCGEN=rpcgen -M
42 RPCGEN_SRC=shibrpc.x
43
44 very-clean: 
45         $(RM) shibrpc.h shibrpc-xdr.c shibrpc-clnt.c shibrpc-svc.c
46
47 rpcgen:
48         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc.h RPCGEN_ARGS=-h
49         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-xdr.c RPCGEN_ARGS=-c
50         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-clnt.c RPCGEN_ARGS=-l
51         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-svc.c RPCGEN_ARGS=-m
52         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-server-stubs.c RPCGEN_ARGS=-Ss
53
54 do_rpcgen:
55         $(RM) $(RPCGEN_TARGET)
56         $(RPCGEN) $(RPCGEN_ARGS) -o $(RPCGEN_TARGET) $(RPCGEN_SRC)