872b4da7fa990d57facaa0560712909439ede5f3
[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 DEST=@DEST@
9 TOP_INCDIR=@TOP_INCDIR@
10 TOP_LIBDIR=@TOP_LIBDIR@
11 prefix=@prefix@
12 exec_prefix=@exec_prefix@
13 bindir=@bindir@
14 sbindir=@sbindir@
15 libexecdir=@libexecdir@
16 libdir=@libdir@
17 includedir=@includedir@
18 mandir=@mandir@
19 afssrvbindir=@afssrvbindir@
20 afssrvsbindir=@afssrvsbindir@
21 afssrvlibexecdir=@afssrvlibexecdir@
22 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
23 TOP_SRCDIR=@TOP_SRCDIR@
24 SYS_NAME=@AFS_SYSNAME@
25
26 SHELL = /bin/sh
27 include ../config/Makefile.${SYS_NAME}
28
29 KERNELDIR = ../libafs/
30 UKERNELDIR = ../libuafs/
31 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
32
33 KSRCS=rxstat.c rxstat.h Krxstat.ss.c Krxstat.xdr.c
34
35 CFLAGS=-I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
36
37 LIBOBJS = rxstat.cs.o rxstat.ss.o rxstat.xdr.o rxstat.o
38
39 all: kinstall ukinstall ${TOP_INCDIR}/rx/rxstat.h ${TOP_LIBDIR}/librxstat.a
40
41 #
42 # Build targets
43 #
44 rxstat.cs.c rxstat.ss.c rxstat.xdr.c rxstat.h: rxstat.xg
45         ${RXGEN} -x rxstat.xg
46
47 librxstat.a: ${LIBOBJS} AFS_component_version_number.o
48         -$(RM) -f $@
49         $(AR) crv $@ ${LIBOBJS} AFS_component_version_number.o
50         $(RANLIB) $@
51
52 Krxstat.cs.c: rxstat.xg
53         ${RXGEN} -x -k -C -o $@ rxstat.xg
54
55 Krxstat.ss.c: rxstat.xg
56         ${RXGEN} -x -k -S -o $@ rxstat.xg
57
58 Krxstat.xdr.c: rxstat.xg
59         ${RXGEN} -x -k -c -o $@ rxstat.xg
60
61 #
62 # Install targets
63 #
64 install:   ${DESTDIR}${includedir}/rx/rxstat.h ${DESTDIR}${libdir}/librxstat.a
65
66 ${DEST}/lib/librxstat.a: librxstat.a
67         ${INSTALL} $? $@
68
69 ${DEST}/include/rx/rxstat.h: rxstat.h
70         ${INSTALL} $? $@
71
72 kinstall: ${KERNELDIR}/afsint \
73         ${KERNELDIR}/afsint/rxstat.c \
74         ${KERNELDIR}/afsint/rxstat.h \
75         ${KERNELDIR}/afsint/Krxstat.ss.c \
76         ${KERNELDIR}/afsint/Krxstat.xdr.c 
77
78 ${KERNELDIR}/afsint:
79         mkdir -p $?
80
81 ${KERNELDIR}/afsint/rxstat.c: rxstat.c
82         ${INSTALL} $? $@
83
84 ${KERNELDIR}/afsint/rxstat.h: rxstat.h
85         ${INSTALL} $? $@
86
87 ${KERNELDIR}/afsint/Krxstat.ss.c: Krxstat.ss.c
88         ${INSTALL} $? $@
89
90 ${KERNELDIR}/afsint/Krxstat.xdr.c: Krxstat.xdr.c
91         ${INSTALL} $? $@
92
93 ukinstall: ${UKERNELDIR}/afsint \
94         ${UKERNELDIR}/afsint/rxstat.c \
95         ${UKERNELDIR}/afsint/rxstat.h \
96         ${UKERNELDIR}/afsint/Krxstat.ss.c \
97         ${UKERNELDIR}/afsint/Krxstat.xdr.c
98
99 ${UKERNELDIR}/afsint:
100         mkdir -p $?
101
102 ${UKERNELDIR}/afsint/rxstat.c: rxstat.c
103         ${INSTALL} $? $@
104
105 ${UKERNELDIR}/afsint/rxstat.h: rxstat.h
106         ${INSTALL} $? $@
107
108 ${UKERNELDIR}/afsint/Krxstat.ss.c: Krxstat.ss.c
109         ${INSTALL} $? $@
110
111 ${UKERNELDIR}/afsint/Krxstat.xdr.c: Krxstat.xdr.c
112         ${INSTALL} $? $@
113
114 #
115 # Misc. targets
116 #
117 clean:
118         $(RM) -f rxstat.h *.xdr.c *.cs.c *.ss.c *.o *.a core AFS_component_version_number.c
119
120 include ../config/Makefile.version
121 ${DESTDIR}${includedir}/rx/rxstat.h: rxstat.h
122         ${INSTALL} $? $@
123
124 ${TOP_INCDIR}/rx/rxstat.h: rxstat.h
125         ${INSTALL} $? $@
126
127 ${DESTDIR}${libdir}/librxstat.a: librxstat.a
128         ${INSTALL} $? $@
129
130 ${TOP_LIBDIR}/librxstat.a: librxstat.a
131         ${INSTALL} $? $@
132
133 dest:   ${DEST}/include/rx/rxstat.h ${DEST}/lib/librxstat.a
134