1f59d7422b6b65e6f58de0f9c4aae0c9089b4211
[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 2:0:0
38
39
40
41
42
43
44 RPCGEN=rpcgen -M
45 RPCGEN_SRC=shibrpc.x
46
47 very-clean: 
48         $(RM) shibrpc.h shibrpc-xdr.c shibrpc-clnt.c shibrpc-svc.c
49
50 rpcgen:
51         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc.h RPCGEN_ARGS=-h
52         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-xdr.c RPCGEN_ARGS=-c
53         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-clnt.c RPCGEN_ARGS=-l
54         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-svc.c RPCGEN_ARGS=-m
55         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-server-stubs.c RPCGEN_ARGS=-Ss
56
57 do_rpcgen:
58         $(RM) $(RPCGEN_TARGET)
59         $(RPCGEN) $(RPCGEN_ARGS) -o $(RPCGEN_TARGET) $(RPCGEN_SRC)