convert-all-makefiles-to-makefile-ins-20010802
[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 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
19
20 OBJS=afsaux.o afscbint.cs.o afscbint.ss.o afscbint.xdr.o afsint.cs.o afsint.ss.o afsint.xdr.o
21 CFLAGS=${DBUG} -I${TOP_SRCDIR}/config -I${SRCDIR}include ${XCFLAGS}
22 KDSRCS=Kcallback.ss.c Kcallback.h Kvice.cs.c Kvice.h Kvice.xdr.c afscbint.h \
23 afsint.h
24 KSRCS=${KDSRCS} afsaux.c
25 UKSRCS=${KSRCS}
26 UTILS=$(SRCDIR)/bin/rxgen
27
28 include ../config/Makefile.version
29
30 noversion: install
31
32 all: libafsint.a $(KSRCS)
33
34 libafsint.a: ${OBJS} AFS_component_version_number.o
35         -rm -f $@
36         $(AR) rv $@ ${OBJS} AFS_component_version_number.o
37         $(RANLIB) $@
38
39 afsaux.o: afsaux.c afsint.h
40
41 Kcallback.cs.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
42         ${SRCDIR}bin/rxgen -x -k -C -o Kcallback.cs.c afscbint.xg
43
44 Kcallback.ss.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
45         ${SRCDIR}bin/rxgen -x -k -S -o Kcallback.ss.c afscbint.xg
46
47 Kcallback.xdr.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
48         ${SRCDIR}bin/rxgen -x -k -y -c -o Kcallback.xdr.c afscbint.xg
49
50 Kvice.cs.c: common.xg afsint.xg Kvice.h  $(UTILS)
51         ${SRCDIR}bin/rxgen -x -k -C -o Kvice.cs.c afsint.xg
52
53 Kvice.ss.c: common.xg afsint.xg Kvice.h $(UTILS)
54         ${SRCDIR}bin/rxgen -x -k -S -o Kvice.ss.c afsint.xg
55
56 Kvice.xdr.c: common.xg afsint.xg $(UTILS)
57         ${SRCDIR}bin/rxgen -x -k -c -o Kvice.xdr.c afsint.xg
58
59 Kvice.h: common.xg afsint.xg $(UTILS)
60         ${SRCDIR}bin/rxgen -x -k -h -o Kvice.h afsint.xg
61
62 Kcallback.h: common.xg afscbint.xg $(UTILS)
63         ${SRCDIR}bin/rxgen -x -k -h -o Kcallback.h afscbint.xg
64
65 afscbint.cs.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
66         ${SRCDIR}bin/rxgen -x -C -o afscbint.cs.c afscbint.xg
67
68 afscbint.ss.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
69         ${SRCDIR}bin/rxgen -x -S -o afscbint.ss.c afscbint.xg
70
71 afscbint.xdr.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
72         ${SRCDIR}bin/rxgen -x -y -c -o afscbint.xdr.c afscbint.xg
73
74 afsint.cs.c: common.xg afsint.xg afsint.h $(UTILS)
75         ${SRCDIR}bin/rxgen -x -C -o afsint.cs.c afsint.xg
76
77 afsint.ss.c: common.xg afsint.xg afsint.h $(UTILS)
78         ${SRCDIR}bin/rxgen -x -S -o afsint.ss.c afsint.xg
79
80 afsint.xdr.c: common.xg afsint.xg $(UTILS)
81         ${SRCDIR}bin/rxgen -x -c -o afsint.xdr.c afsint.xg
82
83 afsint.h: common.xg afsint.xg $(UTILS)
84         ${SRCDIR}bin/rxgen -x -h -o afsint.h afsint.xg
85
86 afscbint.h: common.xg afscbint.xg $(UTILS)
87         ${SRCDIR}bin/rxgen -x -h -o afscbint.h afscbint.xg
88
89 system: install
90
91 kinstall: ${KSRCS}
92         set ${KERNELDIR}afsint; $(MKDIR_IF_NEEDED)
93         ${INSTALL} $(KSRCS) ${KERNELDIR}afsint
94         ${INSTALL} $(SRCDIR)include/afs/rxgen_consts.h ${KERNELDIR}afsint
95         -${INSTALL} ${KERNELDIR}rx/rx.h ${KERNELDIR}afsint/rx.h
96         ${INSTALL} afscbint.h ${KERNELDIR}afs
97
98 ukinstall webinstall: ${UKSRCS}
99         set ${UKERNELDIR}afsint; $(MKDIR_IF_NEEDED)
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 install:  all  kinstall ukinstall
106         ${INSTALL} libafsint.a ${DESTDIR}lib/afs
107         ${INSTALL} afsint.h ${DESTDIR}include/afs
108         ${INSTALL} afscbint.h ${DESTDIR}include/afs
109
110 clean:
111         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