4 # Makefile for EXPORT kernel extension, and friends
8 include ../config/Makefile.${SYS_NAME}
10 INSTALL = ${SRCDIR}bin/install
11 KERNELDIR = ../libafs/
12 UKERNELDIR = ../libuafs/
14 CFLAGS = ${OPTMZ} ${DEFS} ${INCS}
15 EXPORTS = -bexport:export.exp
16 IMPORTS = /lib/kernex.exp /lib/syscalls.exp extras.exp
17 KOBJ = export.o symtab.o
19 include ../config/Makefile.version
21 all: export.ext export.ext.nonfs cfgexport cfgafs
23 noversion system: install
25 install: all kinstall ukinstall
26 ${INSTALL} export.ext ${DESTDIR}root.client/usr/vice/etc/dkload
27 ${INSTALL} export.ext.nonfs ${DESTDIR}root.client/usr/vice/etc/dkload
28 ${INSTALL} export.exp ${DESTDIR}lib/afs/export.exp
29 ${INSTALL} extras.exp ${DESTDIR}lib/afs/extras.exp
30 ${INSTALL} cfgexport ${DESTDIR}root.client/usr/vice/etc/dkload/cfgexport
31 ${INSTALL} cfgafs ${DESTDIR}root.client/usr/vice/etc/dkload/cfgafs
34 ${INSTALL} export.h ${DESTDIR}include
35 ${INSTALL} export.h ../libafs
36 ${INSTALL} export.exp ${DESTDIR}lib
37 ${INSTALL} export.exp ../libafs
40 ${INSTALL} export.h ${UKERNELDIR}
41 ${INSTALL} export.exp ${UKERNELDIR}
44 ${LD} -o export.ext -eexport ${IMPORTS} ${KOBJ} ${EXPORTS} -lcsys
46 export.ext.nonfs: export.nonfs.o symtab.o
47 ${LD} -o export.ext.nonfs -eexport ${IMPORTS} export.nonfs.o symtab.o ${EXPORTS} -lcsys
50 cc -DAFS_NONFSTRANS -c export.c
51 -mv export.o export.nonfs.o
53 cfgexport: cfgexport.o
54 cc -O -o cfgexport cfgexport.o
57 cc -O -o cfgafs cfgafs.o
59 cfgexport.o: cfgexport.c AFS_component_version_number.c
60 cfgafs.o: cfgafs.c AFS_component_version_number.c
63 rm -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c