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
10 include @TOP_OBJDIR@
/src
/config
/Makefile.lwp
13 EXPORTS
= -bexport
:export.exp
14 IMPORTS
= /lib
/kernex.exp
/lib
/syscalls.exp
${srcdir}/extras.exp
15 KOBJ
= export.o symtab.o
17 EXPORTS32
= export.exp
export.ext.nonfs
export.ext cfgexport cfgafs
18 TOPEXP32
= ${TOP_LIBDIR}/export.exp
19 EXPORTS64
= export64.exp export64.ext.nonfs export64.ext cfgexport64 cfgafs64
20 TOPEXP64
= ${TOP_LIBDIR}/export64.exp
22 all: $(TOPEXP32
) $(TOPEXP64
) ${TOP_LIBDIR}/extras.exp
23 ${INSTALL} -d
${KERNELDIR}
24 ${INSTALL} -d
${UKERNELDIR}
25 ${INSTALL_DATA} ${srcdir}/export.h
${KERNELDIR}/export.h
26 ${INSTALL_DATA} ${srcdir}/export.h
${UKERNELDIR}/export.h
27 if
[ "x$(AIX32)" = "xyes" ]; then \
28 ${INSTALL_DATA} export.exp
${UKERNELDIR}/export.exp
; \
29 ${INSTALL_DATA} export.exp
${KERNELDIR}/export.exp
; \
31 if
[ "x$(AIX64)" = "xyes" ]; then \
32 ${INSTALL_DATA} export64.exp
${KERNELDIR}/export64.exp
; \
33 ${INSTALL_DATA} export64.exp
${UKERNELDIR}/export64.exp
; \
36 ${TOP_LIBDIR}/export.exp
: export.exp
37 if
[ "x$(AIX32)" = "xyes" ]; then \
38 ${INSTALL_DATA} $?
$@
; \
41 ${TOP_LIBDIR}/export64.exp
: export64.exp
42 if
[ "x$(AIX64)" = "xyes" ]; then \
43 ${INSTALL_DATA} $?
$@
; \
46 ${TOP_LIBDIR}/extras.exp
: ${srcdir}/extras.exp
49 noversion system
: install
51 export.exp
: ${srcdir}/export4.exp
${srcdir}/export5.exp
54 cp
-p
${srcdir}/export4.exp
export.exp
;; \
56 cp
-p
${srcdir}/export5.exp
export.exp
;; \
59 export64.exp
: ${srcdir}/export4-64.exp
${srcdir}/export5-64.exp
62 cp
-p
${srcdir}/export4-64.exp export64.exp
;; \
64 cp
-p
${srcdir}/export5-64.exp export64.exp
;; \
66 cp
-p
${srcdir}/export5-64.exp export64.exp
;; \
70 if
[ "x$(AIX32)" = "xyes" ]; then \
71 ${LD} -o
export.ext
-eexport
${IMPORTS} ${KOBJ} ${EXPORTS} -lcsys
; \
74 export64.ext
: export64.o symtab64.o
75 if
[ "x$(AIX64)" = "xyes" ]; then \
76 ${LD} -b64
-o export64.ext
-eexport
${IMPORTS} export64.o symtab64.o \
77 -bexport
:export64.exp
-lcsys
; \
80 export.ext.nonfs
: export.nonfs.o symtab.o
81 if
[ "x$(AIX32)" = "xyes" ]; then \
82 ${LD} -o
export.ext.nonfs
-eexport
${IMPORTS} export.nonfs.o \
83 symtab.o
${EXPORTS} -lcsys
; \
86 export64.ext.nonfs
: export64.nonfs.o symtab64.o
87 if
[ "x$(AIX64)" = "xyes" ]; then \
88 ${LD} -b64
-o export64.ext.nonfs
-eexport
${IMPORTS} export64.nonfs.o \
89 symtab64.o
-bexport
:export64.exp
-lcsys
; \
92 symtab.o symtab64.o
: ${srcdir}/symtab.c
95 $(CC
) $(AFS_CPPFLAGS
) $(AFS_CFLAGS
) -c
${srcdir}/symtab.c
;; \
97 $(CC
) $(AFS_CPPFLAGS
) ${AFS_CFLAGS} -q64
-D__XCOFF64__ \
98 -DAFS_64BIT_KERNEL
-DAFS_AIX51_ENV \
99 -c
${srcdir}/symtab.c
; \
100 mv symtab.o symtab64.o
; \
101 $(CC
) $(AFS_CPPFLAGS
) $(AFS_CFLAGS
) -DAFS_AIX51_ENV \
102 -c
${srcdir}/symtab.c
;; \
104 $(CC
) $(AFS_CPPFLAGS
) $(AFS_CFLAGS
) -q64
-D__XCOFF64__ \
105 -DAFS_64BIT_KERNEL
-DAFS_AIX51_ENV \
106 -c
${srcdir}/symtab.c
; \
107 mv symtab.o symtab64.o
;; \
110 export.o export64.o
: ${srcdir}/export.c
111 case
${SYS_NAME} in \
113 $(CC
) $(AFS_CPPFLAGS
) $(AFS_CFLAGS
) -c
${srcdir}/export.c
;; \
115 $(CC
) $(AFS_CPPFLAGS
) $(AFS_CFLAGS
) -q64
-D__XCOFF64__ \
116 -DAFS_64BIT_KERNEL
-DAFS_AIX51_ENV \
117 -c
${srcdir}/export.c
; \
118 mv
export.o export64.o
; \
119 $(CC
) $(AFS_CPPFLAGS
) $(AFS_CFLAGS
) -DAFS_AIX51_ENV \
120 -c
${srcdir}/export.c
;; \
122 $(CC
) $(AFS_CPPFLAGS
) $(AFS_CFLAGS
) -q64 \
123 -D__XCOFF64__
-DAFS_64BIT_KERNEL
-DAFS_AIX51_ENV \
124 -c
${srcdir}/export.c
; \
125 mv
export.o export64.o
;; \
128 export.nonfs.o export64.nonfs.o
: ${srcdir}/export.c
129 case
${SYS_NAME} in \
131 $(CC
) $(CPPFLAGS
) $(CFLAGS
) ${INCS} -DAFS_NONFSTRANS \
132 -c
${srcdir}/export.c
; \
133 mv
export.o
export.nonfs.o
;; \
135 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -q64
${INCS} -D__XCOFF64__ \
136 -DAFS_64BIT_KERNEL
-DAFS_NONFSTRANS
-DAFS_AIX51_ENV \
137 -c
${srcdir}/export.c
; \
138 mv
export.o export64.nonfs.o
; \
139 $(CC
) $(CPPFLAGS
) $(CFLAGS
) ${INCS} -DAFS_NONFSTRANS \
140 -DAFS_AIX51_ENV
-c
${srcdir}/export.c
; \
141 mv
export.o
export.nonfs.o
;; \
143 $(CC
) $(CPPFLAGS
) $(CFLAGS
) -q64
${INCS} -D__XCOFF64__ \
144 -DAFS_64BIT_KERNEL
-DAFS_NONFSTRANS
-DAFS_AIX51_ENV \
145 -c
${srcdir}/export.c
; \
146 mv
export.o export64.nonfs.o
;; \
149 cfgexport
: cfgexport.o
150 $(CC
) $(LDFLAGS
) -g
${INCS} -o cfgexport cfgexport.o
152 cfgexport64
: cfgexport64.o
153 if
[ "x$(AIX64)" = "xyes" ]; then \
154 $(CC
) $(LDFLAGS
) -g
${INCS} -q64
-o cfgexport64 cfgexport64.o
; \
158 $(CC
) $(LDFLAGS
) ${INCS} -o cfgafs cfgafs.o
161 if
[ "x$(AIX64)" = "xyes" ]; then \
162 $(CC
) $(LDFLAGS
) -g
${INCS} -q64
-o cfgafs64 cfgafs64.o
; \
165 CFLAGS_cfgexport64.o
= -g
-q64
-D__XCOFF64__
166 cfgexport64.o
: ${srcdir}/cfgexport.c AFS_component_version_number.c
167 $(Q
)if
[ "x$(AIX64)" = "xyes" ]; then \
168 $(AFS_CCRULE_NOQ
) $(srcdir)/cfgexport.c
; \
171 cfgexport.o
: ${srcdir}/cfgexport.c AFS_component_version_number.c
172 cfgafs.o
: ${srcdir}/cfgafs.c AFS_component_version_number.c
174 CFLAGS_cfgafs64.o
= -q64
175 cfgafs64.o
: ${srcdir}/cfgafs.c AFS_component_version_number.c
176 $(Q
)if
[ "x$(AIX64)" = "xyes" ]; then \
177 $(AFS_CCRULE_NOQ
) $(srcdir)/cfgafs.c
; \
181 $(RM
) -f
*.o
*.Zlst
*.map
*.out AFS_component_version_number.c
182 $(RM
) -f
export.exp export64.exp
183 $(RM
) -f cfgexport cfgexport64
184 $(RM
) -f cfgafs cfgafs64
185 $(RM
) -f
*.ext
*.ext.nonfs
187 install: $(EXPORTS32
) $(EXPORTS64
)
188 ${INSTALL} -d
${DESTDIR}${afskerneldir}
189 ${INSTALL} -d
${DESTDIR}${libdir}/afs
190 ${INSTALL_DATA} ${srcdir}/extras.exp
${DESTDIR}${libdir}/afs
/extras.exp
191 if
[ "xyes" = "x$(AIX32)" ]; then \
192 ${INSTALL_DATA} export.exp
${DESTDIR}${libdir}/afs
/export.exp
; \
193 ${INSTALL_DATA} export.ext
${DESTDIR}${afskerneldir}/export.ext
; \
194 ${INSTALL_DATA} export.ext.nonfs
${DESTDIR}${afskerneldir}/export.ext.nonfs
; \
195 ${INSTALL_DATA} cfgexport
${DESTDIR}${afskerneldir}/cfgexport
; \
196 ${INSTALL_DATA} cfgafs
${DESTDIR}${afskerneldir}/cfgafs
; \
198 if
[ "xyes" = "x$(AIX64)" ]; then \
199 ${INSTALL_DATA} export64.exp
${DESTDIR}${libdir}/afs
/export64.exp
; \
200 ${INSTALL_DATA} export64.ext
${DESTDIR}${afskerneldir}/export64.ext
; \
201 ${INSTALL_DATA} export64.ext.nonfs
${DESTDIR}${afskerneldir}/export64.ext.nonfs
; \
202 ${INSTALL_DATA} cfgexport64
${DESTDIR}${afskerneldir}/cfgexport64
; \
203 ${INSTALL_DATA} cfgafs64
${DESTDIR}${afskerneldir}/cfgafs64
; \
206 dest
: $(EXPORTS32
) $(EXPORTS64
)
207 ${INSTALL} -d
${DEST}/root.client
/usr
/vice
/etc
/dkload
208 ${INSTALL} -d
${DEST}/lib
/afs
209 ${INSTALL_DATA} ${srcdir}/extras.exp
${DEST}/lib
/afs
/extras.exp
210 if
[ "xyes" = "x$(AIX32)" ];then \
211 ${INSTALL_DATA} export.exp
${DEST}/lib
/afs
/export.exp
; \
212 ${INSTALL} export.ext
${DEST}/root.client
/usr
/vice
/etc
/dkload
/export.ext
; \
213 ${INSTALL} export.ext.nonfs
${DEST}/root.client
/usr
/vice
/etc
/dkload
/export.ext.nonfs
; \
214 ${INSTALL} cfgexport
${DEST}/root.client
/usr
/vice
/etc
/dkload
/cfgexport
; \
215 ${INSTALL} cfgafs
${DEST}/root.client
/usr
/vice
/etc
/dkload
/cfgafs
; \
217 if
[ "xyes" = "x$(AIX64)" ];then \
218 ${INSTALL_DATA} export64.exp
${DEST}/lib
/afs
/export64.exp
; \
219 ${INSTALL} export64.ext
${DEST}/root.client
/usr
/vice
/etc
/dkload
/export64.ext
; \
220 ${INSTALL} export64.ext.nonfs
${DEST}/root.client
/usr
/vice
/etc
/dkload
/export64.ext.nonfs
; \
221 ${INSTALL} cfgexport64
${DEST}/root.client
/usr
/vice
/etc
/dkload
/cfgexport64
; \
222 ${INSTALL} cfgafs64
${DEST}/root.client
/usr
/vice
/etc
/dkload
/cfgafs64
; \
225 include ..
/config
/Makefile.version