no-copy-libafs-builds-20021015
[openafs.git] / src / export / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11      DEFS =
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
18
19 include ../config/Makefile.version
20
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}
26
27 noversion system: install
28
29 install: ${DESTDIR}${libdir}/afs/export.exp ${DESTDIR}${libdir}/afs/extras.exp  
30
31 export.ext: ${KOBJ}
32         case ${SYS_NAME} in \
33         rs_aix4* ) \
34                 ${LD} -o export.ext -eexport ${IMPORTS} ${KOBJ} ${EXPORTS} -lcsys ;; \
35         rs_aix5* ) \
36                 ${LD} -o export.ext -eexport ${IMPORTS} ${KOBJ} ${EXPORTS5} -lcsys ;; \
37         esac
38
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
42
43 export.nonfs.o:
44         ${CC} ${INCS} -DAFS_NONFSTRANS -c export.c
45         -mv export.o export.nonfs.o
46
47 cfgexport: cfgexport.o
48         ${CC} ${INCS} -O -o cfgexport cfgexport.o
49
50 cfgafs: cfgafs.o
51         ${CC} ${INCS} -O -o cfgafs cfgafs.o
52
53 cfgexport.o: cfgexport.c AFS_component_version_number.c
54 cfgafs.o: cfgafs.c AFS_component_version_number.c
55
56 clean:
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
59         ${INSTALL} $? $@
60
61 ${DEST}/root.client/usr/vice/etc/dkload/export.ext.nonfs: export.ext.nonfs
62         ${INSTALL} $? $@
63
64 ${DEST}/lib/afs/export.exp: export.exp
65         ${INSTALL} $? $@
66
67 ${DESTDIR}${libdir}/afs/export.exp: export.exp
68         ${INSTALL} $? $@
69
70
71 ${TOP_LIBDIR}/export.exp: export.exp
72         ${INSTALL} $? $@
73
74
75 ${DEST}/lib/afs/extras.exp: extras.exp
76         ${INSTALL} $? $@
77
78 ${DESTDIR}${libdir}/afs/extras.exp: extras.exp
79         ${INSTALL} $? $@
80
81
82 ${TOP_LIBDIR}/extras.exp: extras.exp
83         ${INSTALL} $? $@
84
85
86 ${DEST}/root.client/usr/vice/etc/dkload/cfgexport: cfgexport
87         ${INSTALL} $? $@
88
89 ${DEST}/root.client/usr/vice/etc/dkload/cfgafs: cfgafs
90         ${INSTALL} $? $@
91
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