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 include @TOP_OBJDIR@/src/config/Makefile.config
12 INCS = -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR}
13 CFLAGS = ${OPTMZ} ${DEFS} ${INCS}
14 EXPORTS = -bexport:export.exp
15 IMPORTS = /lib/kernex.exp /lib/syscalls.exp extras.exp
16 KOBJ = export.o symtab.o
18 include ../config/Makefile.version
20 all: kinstall ukinstall ${TOP_LIBDIR}/export.exp ${TOP_LIBDIR}/extras.exp cfgexport cfgafs
22 noversion system: install
24 install: ${DESTDIR}${libdir}/afs/export.exp ${DESTDIR}${libdir}/afs/extras.exp
27 ${INSTALL} export.h ${KERNELDIR}
28 ${INSTALL} export.exp ${KERNELDIR}
31 ${INSTALL} export.h ${UKERNELDIR}
32 ${INSTALL} export.exp ${UKERNELDIR}
35 ${LD} -o export.ext -eexport ${IMPORTS} ${KOBJ} ${EXPORTS} -lcsys
37 export.ext.nonfs: export.nonfs.o symtab.o
38 ${LD} -o export.ext.nonfs -eexport ${IMPORTS} export.nonfs.o symtab.o ${EXPORTS} -lcsys
41 ${CC} ${INCS} -DAFS_NONFSTRANS -c export.c
42 -mv export.o export.nonfs.o
44 cfgexport: cfgexport.o
45 ${CC} ${INCS} -O -o cfgexport cfgexport.o
48 ${CC} ${INCS} -O -o cfgafs cfgafs.o
50 cfgexport.o: cfgexport.c AFS_component_version_number.c
51 cfgafs.o: cfgafs.c AFS_component_version_number.c
54 $(RM) -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c
55 ${DEST}/root.client/usr/vice/etc/dkload/export.ext: export.ext
58 ${DEST}/root.client/usr/vice/etc/dkload/export.ext.nonfs: export.ext.nonfs
61 ${DEST}/lib/afs/export.exp: export.exp
64 ${DESTDIR}${libdir}/afs/export.exp: export.exp
68 ${TOP_LIBDIR}/export.exp: export.exp
72 ${DEST}/lib/afs/extras.exp: extras.exp
75 ${DESTDIR}${libdir}/afs/extras.exp: extras.exp
79 ${TOP_LIBDIR}/extras.exp: extras.exp
83 ${DEST}/root.client/usr/vice/etc/dkload/cfgexport: cfgexport
86 ${DEST}/root.client/usr/vice/etc/dkload/cfgafs: cfgafs
89 dest: ${DEST}/root.client/usr/vice/etc/dkload/export.ext ${DEST}/root.client/usr/vice/etc/dkload/export.ext.nonfs ${DEST}/lib/afs/export.exp ${DEST}/lib/afs/extras.exp ${DEST}/root.client/usr/vice/etc/dkload/cfgexport ${DEST}/root.client/usr/vice/etc/dkload/cfgafs