7e2724af94ec166fa79a14ad901cdaa9a83d4deb
[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
12
13 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
14
15 all: depinstall ${TOP_LIBDIR}/librxstat.a 
16
17 generated: \
18         Krxstat.cs.c Krxstat.ss.c Krxstat.xdr.c \
19         rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h
20
21 depinstall: \
22         ${TOP_INCDIR}/rx/rxstat.h Krxstat.cs.c \
23         Krxstat.ss.c Krxstat.xdr.c
24
25 ${TOP_INCDIR}/rx/rxstat.h: rxstat.h
26         ${INSTALL_DATA} $? $@
27
28 ${TOP_LIBDIR}/librxstat.a: librxstat.a
29         ${INSTALL_DATA} $? $@
30
31 #
32 # Build targets
33 #
34 rxstat.cs.c: rxstat.xg
35         ${RXGEN} -A -x -C -o $@ ${srcdir}/rxstat.xg
36
37 rxstat.ss.c: rxstat.xg
38         ${RXGEN} -A -x -S -o $@ ${srcdir}/rxstat.xg
39
40 rxstat.xdr.c: rxstat.xg
41         ${RXGEN} -A -x -c -o $@ ${srcdir}/rxstat.xg
42
43 rxstat.h: rxstat.xg
44         ${RXGEN} -A -x -h -o $@ ${srcdir}/rxstat.xg
45
46 rxstat.xdr.c: rxstat.h
47 rxstat.cs.c: rxstat.h
48 rxstat.ss.c: rxstat.h
49
50 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
51         -$(RM) -f $@
52         $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
53         $(RANLIB) $@
54
55 Krxstat.cs.c: rxstat.xg
56         ${RXGEN} -x -k -C -o $@ ${srcdir}/rxstat.xg
57
58 Krxstat.ss.c: rxstat.xg
59         ${RXGEN} -x -k -S -o $@ ${srcdir}/rxstat.xg
60
61 Krxstat.xdr.c: rxstat.xg
62         ${RXGEN} -x -k -c -o $@ ${srcdir}/rxstat.xg
63
64 #
65 # Install targets
66 #
67 install: rxstat.h librxstat.a
68         ${INSTALL} -d ${DESTDIR}${includedir}/rx
69         ${INSTALL} -d ${DESTDIR}${libdir}
70         ${INSTALL_DATA} rxstat.h ${DESTDIR}${includedir}/rx/rxstat.h
71         ${INSTALL_DATA} librxstat.a ${DESTDIR}${libdir}/librxstat.a
72
73 dest: rxstat.h librxstat.a
74         ${INSTALL} -d ${DEST}/include/rx
75         ${INSTALL} -d ${DEST}/lib
76         ${INSTALL_DATA} rxstat.h ${DEST}/include/rx/rxstat.h
77         ${INSTALL_DATA} librxstat.a ${DEST}/lib/librxstat.a
78
79 #
80 # Misc. targets
81 #
82 clean:
83         $(RM) -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c
84
85 include ../config/Makefile.version