autoconfiscate the building of the shar
[shibboleth/sp.git] / shib-target / Makefile.am
1 ## $Id$
2
3 AUTOMAKE_OPTIONS = foreign
4
5 lib_LTLIBRARIES = libshib-target.la
6
7 libshib_targetdir = $(includedir)/shib-target
8 libshib_target_HEADERS = shib-target.h shibrpc.h
9
10 libshib_target_la_SOURCES = \
11         shib-ccache.cpp \
12         shib-config.cpp \
13         shib-ini.cpp \
14         shib-mlp.cpp \
15         shib-resource.cpp \
16         shib-rm.cpp \
17         shib-rpcerror.cpp \
18         shib-rpchandle.cpp \
19         shib-rpcutil.c \
20         shib-shire.cpp \
21         shib-sock.c \
22         shib-target.cpp \
23         shibrpc-clnt.c \
24         shibrpc-server.cpp \
25         shibrpc-svc.c \
26         shibrpc-xdr.c
27
28 # this is different from the project version
29 # http://sources.redhat.com/autobook/autobook/autobook_91.html
30 libshib_target_la_LDFLAGS = -version-info 1:0:0
31
32
33
34
35
36
37 RPCGEN=rpcgen -M
38 RPCGEN_SRC=shibrpc.x
39
40 very-clean: 
41         $(RM) shibrpc.h shibrpc-xdr.c shibrpc-clnt.c shibrpc-svc.c
42
43 rpcgen:
44         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc.h RPCGEN_ARGS=-h
45         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-xdr.c RPCGEN_ARGS=-c
46         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-clnt.c RPCGEN_ARGS=-l
47         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-svc.c RPCGEN_ARGS=-m
48         $(MAKE) do_rpcgen RPCGEN_TARGET=shibrpc-server-stubs.c RPCGEN_ARGS=-Ss
49
50 do_rpcgen:
51         $(RM) $(RPCGEN_TARGET)
52         $(RPCGEN) $(RPCGEN_ARGS) -o $(RPCGEN_TARGET) $(RPCGEN_SRC)