Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / rxstat / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3 #
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 include @TOP_OBJDIR@/src/config/Makefile.lwp
11 include @TOP_OBJDIR@/src/config/Makefile.lwptool
12
13 LT_objs = rxstat.cs.lo rxstat.ss.lo rxstat.xdr.lo rxstat.lo
14 LT_deps = $(top_builddir)/src/rx/liboafs_rx.la
15
16 all: depinstall liboafs_rxstat.la librxstat_pic.la \
17 ${TOP_LIBDIR}/librxstat.a
18
19 generated: \
20 Krxstat.cs.c Krxstat.ss.c Krxstat.xdr.c \
21 rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h
22
23 depinstall: \
24 ${TOP_INCDIR}/rx/rxstat.h Krxstat.cs.c \
25 Krxstat.ss.c Krxstat.xdr.c
26
27 ${TOP_INCDIR}/rx/rxstat.h: rxstat.h
28 ${INSTALL_DATA} $? $@
29
30 ${TOP_LIBDIR}/librxstat.a: librxstat.a
31 ${INSTALL_DATA} $? $@
32
33 #
34 # Build targets
35 #
36 rxstat.cs.c: rxstat.xg
37 ${RXGEN} -A -x -C -o $@ ${srcdir}/rxstat.xg
38
39 rxstat.ss.c: rxstat.xg
40 ${RXGEN} -A -x -S -o $@ ${srcdir}/rxstat.xg
41
42 rxstat.xdr.c: rxstat.xg
43 ${RXGEN} -A -x -c -o $@ ${srcdir}/rxstat.xg
44
45 rxstat.h: rxstat.xg
46 ${RXGEN} -A -x -h -o $@ ${srcdir}/rxstat.xg
47
48 rxstat.xdr.c: rxstat.h
49 rxstat.cs.c: rxstat.h
50 rxstat.ss.c: rxstat.h
51
52 librxstat.a: $(LT_objs)
53 $(LT_LDLIB_lwp) $(LT_objs)
54
55 liboafs_rxstat.la: liboafs_rxstat.la.sym $(LT_objs) $(LT_deps)
56 $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs)
57
58 librxstat_pic.la: $(LT_objs)
59 $(LT_LDLIB_pic) $(LT_objs)
60
61 Krxstat.cs.c: rxstat.xg
62 ${RXGEN} -x -k -C -o $@ ${srcdir}/rxstat.xg
63
64 Krxstat.ss.c: rxstat.xg
65 ${RXGEN} -x -k -S -o $@ ${srcdir}/rxstat.xg
66
67 Krxstat.xdr.c: rxstat.xg
68 ${RXGEN} -x -k -c -o $@ ${srcdir}/rxstat.xg
69
70 #
71 # Install targets
72 #
73 install: rxstat.h librxstat.a
74 ${INSTALL} -d ${DESTDIR}${includedir}/rx
75 ${INSTALL} -d ${DESTDIR}${libdir}
76 ${INSTALL_DATA} rxstat.h ${DESTDIR}${includedir}/rx/rxstat.h
77 ${INSTALL_DATA} librxstat.a ${DESTDIR}${libdir}/librxstat.a
78
79 dest: rxstat.h librxstat.a
80 ${INSTALL} -d ${DEST}/include/rx
81 ${INSTALL} -d ${DEST}/lib
82 ${INSTALL_DATA} rxstat.h ${DEST}/include/rx/rxstat.h
83 ${INSTALL_DATA} librxstat.a ${DEST}/lib/librxstat.a
84
85 #
86 # Misc. targets
87 #
88 clean:
89 $(LT_CLEAN)
90 $(RM) -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c
91
92 include ../config/Makefile.version