more-makefiles-cleanup-20010829
[openafs.git] / src / fsint / 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 DESTDIR=@DESTDIR@
9 SRCDIR=@SRCDIR@
10 TOP_SRCDIR=@TOP_SRCDIR@
11 SYS_NAME=@AFS_SYSNAME@
12
13
14 include ../config/Makefile.${SYS_NAME}
15 SHELL = /bin/sh
16 KERNELDIR = ../libafs/
17 UKERNELDIR = ../libuafs/
18
19 OBJS=afsaux.o afscbint.cs.o afscbint.ss.o afscbint.xdr.o afsint.cs.o afsint.ss.o afsint.xdr.o
20 CFLAGS=${DBUG} -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS}
21 KDSRCS=Kcallback.ss.c Kcallback.h Kvice.cs.c Kvice.h Kvice.xdr.c afscbint.h \
22 afsint.h
23 KSRCS=${KDSRCS} afsaux.c
24 UKSRCS=${KSRCS}
25 UTILS=$(SRCDIR)/bin/rxgen
26
27 include ../config/Makefile.version
28
29 noversion: install
30
31 all: libafsint.a $(KSRCS)
32
33 libafsint.a: ${OBJS} AFS_component_version_number.o
34         -$(RM) -f $@
35         $(AR) crv $@ ${OBJS} AFS_component_version_number.o
36         $(RANLIB) $@
37
38 afsaux.o: afsaux.c afsint.h
39
40 Kcallback.cs.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
41         ${SRCDIR}/bin/rxgen -x -k -C -o Kcallback.cs.c afscbint.xg
42
43 Kcallback.ss.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
44         ${SRCDIR}/bin/rxgen -x -k -S -o Kcallback.ss.c afscbint.xg
45
46 Kcallback.xdr.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
47         ${SRCDIR}/bin/rxgen -x -k -y -c -o Kcallback.xdr.c afscbint.xg
48
49 Kvice.cs.c: common.xg afsint.xg Kvice.h  $(UTILS)
50         ${SRCDIR}/bin/rxgen -x -k -C -o Kvice.cs.c afsint.xg
51
52 Kvice.ss.c: common.xg afsint.xg Kvice.h $(UTILS)
53         ${SRCDIR}/bin/rxgen -x -k -S -o Kvice.ss.c afsint.xg
54
55 Kvice.xdr.c: common.xg afsint.xg $(UTILS)
56         ${SRCDIR}/bin/rxgen -x -k -c -o Kvice.xdr.c afsint.xg
57
58 Kvice.h: common.xg afsint.xg $(UTILS)
59         ${SRCDIR}/bin/rxgen -x -k -h -o Kvice.h afsint.xg
60
61 Kcallback.h: common.xg afscbint.xg $(UTILS)
62         ${SRCDIR}/bin/rxgen -x -k -h -o Kcallback.h afscbint.xg
63
64 afscbint.cs.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
65         ${SRCDIR}/bin/rxgen -x -C -o afscbint.cs.c afscbint.xg
66
67 afscbint.ss.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
68         ${SRCDIR}/bin/rxgen -x -S -o afscbint.ss.c afscbint.xg
69
70 afscbint.xdr.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
71         ${SRCDIR}/bin/rxgen -x -y -c -o afscbint.xdr.c afscbint.xg
72
73 afsint.cs.c: common.xg afsint.xg afsint.h $(UTILS)
74         ${SRCDIR}/bin/rxgen -x -C -o afsint.cs.c afsint.xg
75
76 afsint.ss.c: common.xg afsint.xg afsint.h $(UTILS)
77         ${SRCDIR}/bin/rxgen -x -S -o afsint.ss.c afsint.xg
78
79 afsint.xdr.c: common.xg afsint.xg $(UTILS)
80         ${SRCDIR}/bin/rxgen -x -c -o afsint.xdr.c afsint.xg
81
82 afsint.h: common.xg afsint.xg $(UTILS)
83         ${SRCDIR}/bin/rxgen -x -h -o afsint.h afsint.xg
84
85 afscbint.h: common.xg afscbint.xg $(UTILS)
86         ${SRCDIR}/bin/rxgen -x -h -o afscbint.h afscbint.xg
87
88 system: install
89
90 kinstall: ${KSRCS} ${KERNELDIR}/afsint
91         ${INSTALL} $(KSRCS) ${KERNELDIR}/afsint
92         ${INSTALL} ${SRCDIR}/include/afs/rxgen_consts.h ${KERNELDIR}/afsint
93         -${INSTALL} ${KERNELDIR}/rx/rx.h ${KERNELDIR}/afsint/rx.h
94         ${INSTALL} afscbint.h ${KERNELDIR}/afs
95
96 ${KERNELDIR}/afsint:
97         mkdir -p $@
98
99 ukinstall webinstall: ${UKERNELDIR}/afsint ${UKSRCS}
100         ${INSTALL} $(UKSRCS) ${UKERNELDIR}/afsint
101         ${INSTALL} ${SRCDIR}/include/afs/rxgen_consts.h ${UKERNELDIR}/afsint
102         -${INSTALL} ${UKERNELDIR}/rx/rx.h ${UKERNELDIR}/afsint/rx.h
103         ${INSTALL} afscbint.h ${UKERNELDIR}/afs
104
105 ${UKERNELDIR}/afsint:
106         mkdir -p $@
107
108 install:  all  kinstall ukinstall
109         ${INSTALL} libafsint.a ${DESTDIR}/lib/afs
110         ${INSTALL} afsint.h ${DESTDIR}/include/afs
111         ${INSTALL} afscbint.h ${DESTDIR}/include/afs
112
113 clean:
114         $(RM) -f *.o *.cs.c *.ss.c *.er.c afsint.h afsint.xdr.c libafsint.a $(KDSRCS) core AFS_component_version_number.c afscbint.xdr.c