6fa23aaa203c59dddf151a7c7adf021fbaabbedb
[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
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-rm.cpp \
23         shib-rpcerror.cpp \
24         shib-rpchandle.cpp \
25         shib-rpcutil.c \
26         shib-shire.cpp \
27         shib-sock.c \
28         shib-target.cpp \
29         shibrpc-clnt.c \
30         shibrpc-server.cpp \
31         shibrpc-svc.c \
32         shibrpc-xdr.c
33
34 # this is different from the project version
35 # http://sources.redhat.com/autobook/autobook/autobook_91.html
36 libshib_target_la_LDFLAGS = -version-info 2:0:0
37
38
39
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)