Initial IBM OpenAFS 1.0 tree
[openafs.git] / src / export / Makefile
1 #
2 # $Locker$
3 #
4 # Makefile for EXPORT kernel extension, and friends
5 #
6
7 COMPONENT=export
8 include ../config/Makefile.${SYS_NAME}
9
10   INSTALL = ${SRCDIR}bin/install
11 KERNELDIR = ../libafs/
12 UKERNELDIR = ../libuafs/
13      DEFS =
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
18
19 include ../config/Makefile.version
20
21 all: export.ext export.ext.nonfs cfgexport cfgafs
22
23 noversion system: install
24
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
32
33 kinstall:
34         ${INSTALL} export.h ${DESTDIR}include
35         ${INSTALL} export.h ../libafs
36         ${INSTALL} export.exp ${DESTDIR}lib
37         ${INSTALL} export.exp ../libafs
38
39 ukinstall webinstall:
40         ${INSTALL} export.h ${UKERNELDIR}
41         ${INSTALL} export.exp ${UKERNELDIR}
42
43 export.ext: ${KOBJ}
44         ${LD} -o export.ext -eexport ${IMPORTS} ${KOBJ} ${EXPORTS} -lcsys
45
46 export.ext.nonfs: export.nonfs.o symtab.o
47         ${LD} -o export.ext.nonfs -eexport ${IMPORTS} export.nonfs.o symtab.o ${EXPORTS} -lcsys
48
49 export.nonfs.o:
50         cc -DAFS_NONFSTRANS -c export.c
51         -mv export.o export.nonfs.o
52
53 cfgexport: cfgexport.o
54         cc -O -o cfgexport cfgexport.o
55
56 cfgafs: cfgafs.o
57         cc -O -o cfgafs cfgafs.o
58
59 cfgexport.o: cfgexport.c AFS_component_version_number.c
60 cfgafs.o: cfgafs.c AFS_component_version_number.c
61
62 clean:
63         rm -f *.o *.Zlst *.map *.out cfgexport cfgafs *.ext AFS_component_version_number.c