1 # Copyright 2000, International Business Machines Corporation and others.
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
9 TOP_INCDIR=@TOP_INCDIR@
10 TOP_LIBDIR=@TOP_LIBDIR@
12 exec_prefix=@exec_prefix@
15 libexecdir=@libexecdir@
17 includedir=@includedir@
19 afssrvbindir=@afssrvbindir@
20 afssrvsbindir=@afssrvsbindir@
21 afssrvlibexecdir=@afssrvlibexecdir@
22 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
23 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
24 TOP_SRCDIR=@TOP_SRCDIR@
25 SYS_NAME=@AFS_SYSNAME@
28 include ../config/Makefile.${SYS_NAME}
30 KERNELDIR = ../libafs/
31 UKERNELDIR = ../libuafs/
33 OBJS=afsaux.o afscbint.cs.o afscbint.ss.o afscbint.xdr.o afsint.cs.o afsint.ss.o afsint.xdr.o
34 CFLAGS=${DBUG} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
35 KDSRCS=Kcallback.ss.c Kcallback.h Kvice.cs.c Kvice.h Kvice.xdr.c afscbint.h \
37 KSRCS=${KDSRCS} afsaux.c
41 include ../config/Makefile.version
45 all: kinstall ukinstall ${TOP_LIBDIR}/libafsint.a ${TOP_INCDIR}/afs/afsint.h ${TOP_INCDIR}/afs/afscbint.h
47 libafsint.a: ${OBJS} AFS_component_version_number.o
49 $(AR) crv $@ ${OBJS} AFS_component_version_number.o
52 afsaux.o: afsaux.c afsint.h
54 Kcallback.cs.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
55 ${RXGEN} -x -k -C -o Kcallback.cs.c afscbint.xg
57 Kcallback.ss.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
58 ${RXGEN} -x -k -S -o Kcallback.ss.c afscbint.xg
60 Kcallback.xdr.c: common.xg afscbint.xg Kvice.h Kcallback.h $(UTILS)
61 ${RXGEN} -x -k -y -c -o Kcallback.xdr.c afscbint.xg
63 Kvice.cs.c: common.xg afsint.xg Kvice.h $(UTILS)
64 ${RXGEN} -x -k -C -o Kvice.cs.c afsint.xg
66 Kvice.ss.c: common.xg afsint.xg Kvice.h $(UTILS)
67 ${RXGEN} -x -k -S -o Kvice.ss.c afsint.xg
69 Kvice.xdr.c: common.xg afsint.xg $(UTILS)
70 ${RXGEN} -x -k -c -o Kvice.xdr.c afsint.xg
72 Kvice.h: common.xg afsint.xg $(UTILS)
73 ${RXGEN} -x -k -h -o Kvice.h afsint.xg
75 Kcallback.h: common.xg afscbint.xg $(UTILS)
76 ${RXGEN} -x -k -h -o Kcallback.h afscbint.xg
78 afscbint.cs.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
79 ${RXGEN} -x -C -o afscbint.cs.c afscbint.xg
81 afscbint.ss.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
82 ${RXGEN} -x -S -o afscbint.ss.c afscbint.xg
84 afscbint.xdr.c: common.xg afscbint.xg afsint.h afscbint.h $(UTILS)
85 ${RXGEN} -x -y -c -o afscbint.xdr.c afscbint.xg
87 afsint.cs.c: common.xg afsint.xg afsint.h $(UTILS)
88 ${RXGEN} -x -C -o afsint.cs.c afsint.xg
90 afsint.ss.c: common.xg afsint.xg afsint.h $(UTILS)
91 ${RXGEN} -x -S -o afsint.ss.c afsint.xg
93 afsint.xdr.c: common.xg afsint.xg $(UTILS)
94 ${RXGEN} -x -c -o afsint.xdr.c afsint.xg
96 afsint.h: common.xg afsint.xg $(UTILS)
97 ${RXGEN} -x -h -o afsint.h afsint.xg
99 afscbint.h: common.xg afscbint.xg $(UTILS)
100 ${RXGEN} -x -h -o afscbint.h afscbint.xg
104 kinstall: ${KSRCS} ${KERNELDIR}/afsint
105 ${INSTALL} $(KSRCS) ${KERNELDIR}/afsint
106 ${INSTALL} ${TOP_INCDIR}/afs/rxgen_consts.h ${KERNELDIR}/afsint
107 -${INSTALL} ${KERNELDIR}/rx/rx.h ${KERNELDIR}/afsint/rx.h
108 ${INSTALL} afscbint.h ${KERNELDIR}/afs
113 ukinstall webinstall: ${UKERNELDIR}/afsint ${UKSRCS}
114 ${INSTALL} $(UKSRCS) ${UKERNELDIR}/afsint
115 ${INSTALL} ${TOP_INCDIR}/afs/rxgen_consts.h ${UKERNELDIR}/afsint
116 -${INSTALL} ${UKERNELDIR}/rx/rx.h ${UKERNELDIR}/afsint/rx.h
117 ${INSTALL} afscbint.h ${UKERNELDIR}/afs
119 ${UKERNELDIR}/afsint:
122 install: ${DESTDIR}${libdir}/afs/libafsint.a ${DESTDIR}${includedir}/afs/afsint.h ${DESTDIR}${includedir}/afs/afscbint.h
125 $(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
126 ${DEST}/lib/afs/libafsint.a: libafsint.a
129 ${DESTDIR}${libdir}/afs/libafsint.a: libafsint.a
133 ${TOP_LIBDIR}/libafsint.a: libafsint.a
137 ${DEST}/include/afs/afsint.h: afsint.h
140 ${DESTDIR}${includedir}/afs/afsint.h: afsint.h
144 ${TOP_INCDIR}/afs/afsint.h: afsint.h
148 ${DEST}/include/afs/afscbint.h: afscbint.h
151 ${DESTDIR}${includedir}/afs/afscbint.h: afscbint.h
155 ${TOP_INCDIR}/afs/afscbint.h: afscbint.h
159 dest: ${DEST}/lib/afs/libafsint.a ${DEST}/include/afs/afsint.h ${DEST}/include/afs/afscbint.h