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 EXPORTS5 = -bexport:export5.exp
16 IMPORTS = /lib/kernex.exp /lib/syscalls.exp extras.exp
17 KOBJ = export.o symtab.o
19 include ../config/Makefile.version
21 all: ${TOP_LIBDIR}/export.exp ${TOP_LIBDIR}/extras.exp cfgexport cfgafs
22 ${INSTALL} ${srcdir}/export.h ${KERNELDIR}
23 ${INSTALL} ${srcdir}/export.exp ${KERNELDIR}
24 ${INSTALL} ${srcdir}/export.h ${UKERNELDIR}
25 ${INSTALL} ${srcdir}/export.exp ${UKERNELDIR}
27 noversion system: install
29 install: ${DESTDIR}${libdir}/afs/export.exp ${DESTDIR}${libdir}/afs/extras.exp
34 ${LD} -o export.ext -eexport ${IMPORTS} ${KOBJ} ${EXPORTS} -lcsys ;; \
36 ${LD} -o export.ext -eexport ${IMPORTS} ${KOBJ} ${EXPORTS5} -lcsys ;; \
39 export.ext.nonfs: export.nonfs.o symtab.o
40 ${LD} -o export.ext.nonfs -eexport ${IMPORTS} export.nonfs.o \
41 symtab.o ${EXPORTS} -lcsys
44 ${CC} ${INCS} -DAFS_NONFSTRANS -c export.c
45 -mv export.o export.nonfs.o
47 cfgexport: cfgexport.o
48 ${CC} ${INCS} -O -o cfgexport cfgexport.o
51 ${CC} ${INCS} -O -o cfgafs cfgafs.o
53 cfgexport.o: cfgexport.c AFS_component_version_number.c
54 cfgafs.o: cfgafs.c AFS_component_version_number.c
57 $(RM) -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c
58 ${DEST}/root.client/usr/vice/etc/dkload/export.ext: export.ext
61 ${DEST}/root.client/usr/vice/etc/dkload/export.ext.nonfs: export.ext.nonfs
64 ${DEST}/lib/afs/export.exp: export.exp
67 ${DESTDIR}${libdir}/afs/export.exp: export.exp
71 ${TOP_LIBDIR}/export.exp: export.exp
75 ${DEST}/lib/afs/extras.exp: extras.exp
78 ${DESTDIR}${libdir}/afs/extras.exp: extras.exp
82 ${TOP_LIBDIR}/extras.exp: extras.exp
86 ${DEST}/root.client/usr/vice/etc/dkload/cfgexport: cfgexport
89 ${DEST}/root.client/usr/vice/etc/dkload/cfgafs: cfgafs
92 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