124ea482c939a4bc1c75ca5e41434bd54673cff1
[openafs.git] / src / venus / 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 include @TOP_OBJDIR@/src/config/Makefile.lwp
11
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
16 KRB5CFLAGS = @KRB5_CPPFLAGS@
17 KRB5LIBS = @KRB5_LIBS@
18
19 INCLS=${TOP_INCDIR}/afs/afsint.h \
20         ${TOP_INCDIR}/afs/cmd.h \
21         ${TOP_INCDIR}/afs/afsutil.h
22
23 AFSIO_INCLS=${TOP_INCDIR}/afs/afsint.h \
24         ${TOP_INCDIR}/afs/cmd.h \
25         ${TOP_INCDIR}/afs/auth.h \
26         ${TOP_INCDIR}/afs/vlserver.h \
27         ${TOP_INCDIR}/afs/ihandle.h \
28         ${TOP_INCDIR}/afs/com_err.h \
29         ${TOP_INCDIR}/afs/afscp.h \
30         ${TOP_INCDIR}/afs/afsutil.h
31
32 AFSIO_LIBS=${TOP_LIBDIR}/libafscp.a \
33         ${TOP_LIBDIR}/libafsauthent.a \
34         ${TOP_LIBDIR}/libafsrpc.a \
35         ${TOP_LIBDIR}/libcmd.a \
36         $(TOP_LIBDIR)/libafsutil.a
37
38 FSLIBS=${TOP_LIBDIR}/libsys.a \
39          ${TOP_LIBDIR}/libvldb.a \
40          ${TOP_LIBDIR}/libubik.a \
41          ${TOP_LIBDIR}/vlib.a \
42          ${TOP_LIBDIR}/libauth.a \
43          ${TOP_LIBDIR}/librxkad.a \
44          ${TOP_LIBDIR}/libafscom_err.a \
45          ${TOP_LIBDIR}/libcmd.a \
46          ${TOP_LIBDIR}/libkauth.a \
47          ${TOP_LIBDIR}/librx.a \
48          ${TOP_LIBDIR}/libsys.a \
49          ${TOP_LIBDIR}/liblwp.a \
50          ${TOP_LIBDIR}/libaudit.a \
51          ${TOP_LIBDIR}/libafshcrypto_lwp.a \
52          $(TOP_LIBDIR)/libafsutil.a
53
54 CMLIBS=${TOP_LIBDIR}/libsys.a \
55          ${TOP_LIBDIR}/libafsint.a \
56          ${TOP_LIBDIR}/librxkad.a \
57          ${TOP_LIBDIR}/libauth.a \
58          ${TOP_LIBDIR}/libafscom_err.a \
59          ${TOP_LIBDIR}/libcmd.a \
60          ${TOP_LIBDIR}/librx.a \
61          ${TOP_LIBDIR}/libsys.a \
62          ${TOP_LIBDIR}/liblwp.a \
63          $(TOP_LIBDIR)/libafsutil.a
64
65 LIBS = ${FSLIBS} 
66
67 all: fs up fstrace cmdebug livesys kdump-build cacheout afsio
68
69 #
70 # Build targets
71 #
72 cacheout: cacheout.o
73         $(AFS_LDRULE) cacheout.o ${LIBS} $(LIB_roken) ${XLIBS} ${CMLIBS}
74
75 cacheout.o: cacheout.c
76
77
78 up.o: up.c AFS_component_version_number.c
79
80 up: up.o
81         $(AFS_LDRULE) up.o ${LIBS} $(LIB_roken) ${XLIBS}
82
83 fs.o: fs.c ${INCLS} AFS_component_version_number.c
84
85 fs: fs.o $(LIBS)
86         $(AFS_LDRULE) fs.o ${TOP_LIBDIR}/libprot.a $(LIBS) \
87                 $(LIB_roken) ${XLIBS}
88
89 afsio.o: afsio.c ${AFSIO_INCLS} AFS_component_version_number.c
90         ${PTH_CCRULE} ${srcdir}/afsio.c
91 vldbint.cs.o: ../vlserver/vldbint.cs.c
92         ${PTH_CCRULE} ../vlserver/vldbint.cs.c
93 vldbint.xdr.o: ../vlserver/vldbint.xdr.c
94         ${PTH_CCRULE} ../vlserver/vldbint.xdr.c
95 afscbint.ss.o: ../fsint/afscbint.ss.c
96         ${PTH_CCRULE} ../fsint/afscbint.ss.c
97
98 afsio: afsio.o vldbint.cs.o afscbint.ss.o vldbint.xdr.o ${AFSIO_LIBS}
99         +if test "@BUILD_KRB5@" = "yes"; then \
100                 $(MT_CC) @KRB5_CPPFLAGS@ $(PTH_LDFLAGS) $(AFS_CFLAGS) -o afsio afsio.o vldbint.cs.o afscbint.ss.o vldbint.xdr.o ${AFSIO_LIBS} \
101                 $(LIB_hcrypto) $(LIB_roken) ${MT_LIBS} ${XLIBS} ${KRB5LIBS} ; \
102         else \
103                 echo "Skipping afsio (KRB5 build disabled)" ; \
104         fi
105
106 livesys.o: livesys.c ${INCLS} AFS_component_version_number.c
107
108 livesys: livesys.o $(LIBS)
109         $(AFS_LDRULE) livesys.o $(LIBS) $(LIB_roken) ${XLIBS}
110
111 twiddle: twiddle.o $(LIBS)
112         $(AFS_LDRULE) twiddle.o $(LIBS) $(LIB_roken) ${XLIBS}
113
114 gcpags: gcpags.o $(LIBS)
115         $(AFS_LDRULE) gcpags.o $(LIBS) $(LIB_roken) ${XLIBS}
116
117 whatfid.o: whatfid.c ${INCLS} AFS_component_version_number.c
118
119 whatfid: whatfid.o ${LIBS}
120         $(AFS_LDRULE) whatfid.o ${LIBS} $(LIB_roken) ${XLIBS}
121
122 fstrace.o: fstrace.c AFS_component_version_number.c
123         case ${SYS_NAME} in \
124                 sun4_411 | sun4c_411 | sun4m_412 ) \
125                         ${CCXPG2} ${DBG} ${OPTMZ} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} -I${TOP_INCDIR} -c ${srcdir}/fstrace.c ;; \
126                 sun*_4* ) \
127                         ${CC} ${DBG} ${OPTMZ} -I/usr/xpg2include -I/usr/5include -g -I${TOP_SRCDIR}/config -I${TOP_INCDIR} -I${TOP_INCDIR} -c fstrace.c ;; \
128                 * ) \
129                         $(AFS_CCRULE) $(srcdir)/fstrace.c ;; \
130         esac
131
132 fstrace: fstrace.o
133         case ${SYS_NAME} in \
134                 sun4_411 | sun4c_411 | sun4m_412 ) \
135                         ${CCXPG2} ${AFS_CFLAGS} -o fstrace fstrace.o ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/util.a ;; \
136                 sun*_4* ) \
137                         ${CC} -L/usr/xpg2lib -L/usr/5lib ${AFS_CFLAGS} -g -o fstrace fstrace.o ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/util.a -lxpg ;; \
138                 hp700_ux100 | hp800_ux100 | hp?00_ux10? | hp_ux10? | hp_ux11?) \
139                         ${CC} -I${TOP_OBJDIR}/src/config  -o fstrace fstrace.o ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/util.a ;; \
140                 * ) \
141                         $(AFS_LDRULE) fstrace.o ${TOP_LIBDIR}/libsys.a \
142                                 ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/util.a \
143                                 ${XLIBS} $(LIB_roken);; \
144         esac
145
146 cmdebug.o: cmdebug.c ${INCLS} AFS_component_version_number.c
147
148 cmdebug: cmdebug.o ${CMLIBS}
149         $(AFS_LDRULE) cmdebug.o ${CMLIBS} $(LIB_roken) ${XLIBS}
150
151 dedebug.o: dedebug.c ${INCLS} AFS_component_version_number.c
152
153 dedebug: dedebug.o ${CMLIBS}
154         $(AFS_LDRULE) dedebug.o ${CMLIBS} $(LIB_roken) ${XLIBS}
155
156 #
157 # Kernel info dumper - these are done with submakes so that
158 # the build process does not attempt to rebuild them every time it runs.
159 #
160
161 #
162 # Branching target, run the actual build depending on sysname
163 #
164 kdump-build: kdump.c ${INCLS} AFS_component_version_number.c
165         $(MAKE) kdump kdump64
166         touch kdump-build
167
168 #
169 # Build targets - one for each type of kdump build process we have
170 #
171 kdump: kdump.o
172         -set -x; \
173         case ${SYS_NAME} in \
174         sun4c_51 | sun4c_52 | sun4m_51 | sun4m_52 | sun4c_53 | sun4m_53 | sun4_53 | sun4_54 | sun4c_54 | sun4m_54 | sunx86_5? ) \
175                 ${CC} -o kdump kdump.o ${TOP_LIBDIR}/libcmd.a  ${TOP_LIBDIR}/util.a /usr/lib/libkvm.a -lelf ${XLIBS} ;; \
176         sun*_5? | sun*_5?? ) \
177                 ${CC} -o kdump kdump.o ${TOP_LIBDIR}/libcmd.a  ${TOP_LIBDIR}/util.a  ${XLIBELFA} ${XLIBKVM} ${XLIBS} ;; \
178         sgi_6? ) \
179                 for f in ../libafs/STATIC.IP*/CPU_KDEFS; \
180                 do      IP=`expr "$$f" : '../libafs/STATIC.\(IP..\)'`; \
181                         CPU_KDEFS=`sed 's/-mips.//' $$f`; \
182                         echo IP = $$IP; \
183                         echo CPU_KDEFS = $$CPU_KDEFS; \
184                         case $$CPU_KDEFS in \
185                         *-64*)  ${CC} ${XCFLAGS64} \
186                                         $$CPU_KDEFS \
187                                         -o kdump.$$IP kdump.$$IP.o \
188                                         ${TOP_LIBDIR}/libcmd64.a -lelf \
189                                 ;; \
190                         *)      ${CC} ${XCFLAGS} ${ARCHFLAGS} \
191                                         $$CPU_KDEFS \
192                                         -o kdump.$$IP kdump.$$IP.o \
193                                         ${TOP_LIBDIR}/libcmd.a -lelf \
194                                 ;; \
195                         esac || exit $$? ; \
196                 done ;; \
197         *linux26* | *linux_26* ) \
198                 touch kdump ;; \
199         *alpha_linux* ) \
200                 $(MAKE) kdump-alpha_linux-@LINUX_VERSION@ ;; \
201         *linux* ) \
202                 $(MAKE) kdump-linux-@LINUX_VERSION@ ;; \
203         alpha_osf1 | alpha_osf20 |  alpha_osf30 | alpha_osf32 | alpha_osf32c | alpha_dux??) \
204                 ${CC} -o kdump kdump.o ${TOP_LIBDIR}/libcmd.a  ${TOP_LIBDIR}/util.a ${XLIBS} -ll -lmld;; \
205         ncrx86_* ) ${CC} -o kdump kdump.o ${TOP_LIBDIR}/libcmd.a  ${TOP_LIBDIR}/util.a -lelf ${XLIBS} ;; \
206         *bsd*) touch kdump ;; \
207         * )     ${CC} -o kdump kdump.o ${TOP_LIBDIR}/libcmd.a  ${TOP_LIBDIR}/util.a ${XLIBS} ;; \
208         esac
209
210 kdump64: 
211         -set -x; \
212         case ${SYS_NAME} in \
213         sun4x_5[789] | sun4x_510 | hp_ux11* | sunx86_5[789] | sunx86_510 )  \
214                 $(MAKE) kdump64.o ; \
215                 ${CC} ${XCFLAGS64} -o kdump64 kdump64.o ${TOP_LIBDIR}/libcmd64.a ${XLIBELFA} ${XLIBKVM} ${XLIBS} ;; \
216         esac
217
218
219 kdump.o: kdump.c ${INCLS} AFS_component_version_number.c
220         -set -x; \
221         case ${SYS_NAME} in \
222                 *linux26* | *linux_26* ) \
223                         touch kdump.o ;; \
224                 alpha_linux* ) \
225                         $(MAKE) kdump-alpha_linux-${LINUX_VERSION}.o ;; \
226                 *linux* ) \
227                         $(MAKE) kdump-linux-${LINUX_VERSION}.o ;; \
228                 alpha_osf1 | alpha_osf20 |  alpha_osf30 | alpha_osf32 | alpha_osf32c| alpha_dux?? ) \
229                         ${CC} ${AFS_CFLAGS} -I/usr/sys/include -I/usr/sys/BINARY -I/usr/sys/AFS -DDEBUGGER -c ${srcdir}/kdump.c ;;\
230                 sgi_6? ) \
231                         for f in ../libafs/STATIC.IP*/CPU_KDEFS; \
232                         do      IP=`expr "$$f" : '../libafs/STATIC.\(IP..\)'`; \
233                                 CPU_KDEFS=`sed 's/-mips.//' $$f`; \
234                                 echo IP = $$IP; \
235                                 echo CPU_KDEFS = $$CPU_KDEFS; \
236                                 case $$CPU_KDEFS in \
237                                 *-64*)  ${CC} -D_KMEMUSER -woff 1178 \
238                                                 ${KERN_DBG} ${KERN_OPTMZ} -I${TOP_INCDIR} \
239                                                 -I${TOP_OBJDIR}/src/config \
240                                                 $$CPU_KDEFS \
241                                                 ${XCFLAGS64} \
242                                                 -c ${srcdir}/kdump.c -o kdump.$$IP.o \
243                                         ;; \
244                                 *)      ${CC} -D_KMEMUSER -woff 1178 \
245                                                 ${KERN_DBG} ${KERN_OPTMZ} -I${TOP_INCDIR} \
246                                                 -I${TOP_OBJDIR}/src/config \
247                                                 $$CPU_KDEFS \
248                                                 ${XCFLAGS} ${ARCHFLAGS} -DAFS_32BIT_KERNEL_ENV \
249                                                 -c ${srcdir}/kdump.c -o kdump.$$IP.o \
250                                         ;; \
251                                 esac || exit $$?; \
252                         done \
253                         ;; \
254                 *bsd*) \
255                         touch kdump.o ;; \
256                 *) \
257                         ${CC} ${KERN_DBG} ${KERN_OPTMZ} -I${TOP_SRCDIR} -I${TOP_INCDIR}/afs \
258                         -I${TOP_OBJDIR}/src/config -I${TOP_OBJDIR}/src -I${TOP_INCDIR} ${XCFLAGS} ${ARCHFLAGS} \
259                         -o kdump.o -c ${srcdir}/kdump.c ;; \
260         esac ;
261
262 kdump64.o : kdump.c ${INCLS} AFS_component_version_number.c
263         -set -x; \
264         case ${SYS_NAME} in \
265         sun4x_5[789] | sun4x_510 | hp_ux11* | sunx86_5[789] | sunx86_510 ) \
266                 ${CC} ${KERN_DBG} ${KERN_OPTMZ} -I${TOP_SRCDIR} -I${TOP_INCDIR}/afs \
267                 -I${TOP_OBJDIR}/src/config -I${TOP_OBJDIR}/src -I${TOP_INCDIR} ${XCFLAGS64} \
268                 -o kdump64.o -c ${srcdir}/kdump.c ;; \
269         esac
270
271 # *linux* - Builds kdump-X.Y.Z according to kernel version
272 kdump-linux-@LINUX_VERSION@.o: kdump.c ${INCLS} AFS_component_version_number.c
273         ${CC} ${KERN_DBG} ${KERN_OPTMZ} -I${LINUX_KERNEL_PATH}/include -I${TOP_INCDIR}/afs \
274                 -I${TOP_OBJDIR}/src \
275                 -I${TOP_OBJDIR}/src/afs/${MKAFS_OSTYPE} \
276                 -I${TOP_OBJDIR}/src/config -I${TOP_OBJDIR}/src/libafs/afs \
277                 -I${TOP_SRCDIR} -I${TOP_SRCDIR}/afs/${MKAFS_OSTYPE} \
278                 -I${TOP_INCDIR} ${XCFLAGS} ${ARCHFLAGS} -o kdump-linux-${LINUX_VERSION}.o \
279                 -c ${srcdir}/kdump.c
280
281 kdump-linux-@LINUX_VERSION@: kdump-linux-@LINUX_VERSION@.o
282         ${CC} ${KERN_DBG} ${KERN_OPTMZ} -o kdump-linux-${LINUX_VERSION} kdump-linux-${LINUX_VERSION}.o \
283                 ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/util.a ${XLIBS}
284
285 # *alpha_linux* - Builds kdump-X.Y.Z according to kernel version
286 kdump-alpha_linux-@LINUX_VERSION@.o: kdump.c ${INCLS} AFS_component_version_number.c
287         ${CC} ${KERN_DBG} ${KERN_OPTMZ} -I${LINUX_KERNEL_PATH}/include -I${TOP_INCDIR}/afs \
288                 -I${TOP_OBJDIR}/src \
289                 -I${TOP_OBJDIR}/src/afs/${MKAFS_OSTYPE} \
290                 -I${TOP_OBJDIR}/src/config -I${TOP_OBJDIR}/src/libafs/afs \
291                 -I${TOP_SRCDIR} -I${TOP_SRCDIR}/afs/${MKAFS_OSTYPE} \
292                 -I${TOP_INCDIR} ${XCFLAGS} ${ARCHFLAGS} -mno-fp-regs -ffixed-8 \
293                 -o kdump-alpha_linux-${LINUX_VERSION}.o -c ${srcdir}/kdump.c ;; \
294
295 kdump-alpha_linux-@LINUX_VERSION@: kdump-alpha_linux-@LINUX_VERSION@.o
296         ${CC} ${KERN_DBG} ${KERN_OPTMZ} -o kdump-alpha_linux-${LINUX_VERSION} kdump-alpha_linux-${LINUX_VERSION}.o \
297                 ${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/util.a ${XLIBS}
298
299 #
300 # Install targets
301 #
302 install: kdump-build fs livesys up fstrace cmdebug afsio
303         ${INSTALL} -d ${DESTDIR}${bindir}
304         ${INSTALL} -d ${DESTDIR}${afssrvbindir}
305         ${INSTALL} -d ${DESTDIR}${sbindir}
306         ${INSTALL_PROGRAM} fs ${DESTDIR}${bindir}/fs
307         ${INSTALL_PROGRAM} livesys ${DESTDIR}${bindir}/livesys
308         ${INSTALL_PROGRAM} fs ${DESTDIR}${afssrvbindir}/fs
309         ${INSTALL_PROGRAM} up ${DESTDIR}${bindir}/up
310         ${INSTALL_PROGRAM} fstrace ${DESTDIR}${sbindir}/fstrace
311         ${INSTALL_PROGRAM} cmdebug ${DESTDIR}${bindir}/cmdebug
312         if test "@BUILD_KRB5@" = "yes"; then \
313                 ${INSTALL_PROGRAM} afsio ${DESTDIR}${bindir}/afsio ; \
314         fi
315         -set -x; \
316         case ${SYS_NAME} in \
317         sgi_6? ) \
318                 ${INSTALL_SCRIPT} kdump.sh.sgi_ipnos ${DESTDIR}${sbindir}/kdump; \
319                 ln -fs kdump ${DESTDIR}${sbindir}/kdump32; \
320                 ln -fs kdump.IP20 ${DESTDIR}${sbindir}/kdump.IP22; \
321                 ln -fs kdump.IP20 ${DESTDIR}${sbindir}/kdump.IP32; \
322                 for f in kdump.IP??; \
323                         do ${INSTALL_PROGRAM} $$f ${DESTDIR}${sbindir}/$$f || exit $$? ; \
324                 done ;; \
325         sun*_5[789] | sun*_510 ) \
326                 ${INSTALL_SCRIPT} kdump.sh.solaris7 ${DESTDIR}${sbindir}/kdump32; \
327                 ${INSTALL_PROGRAM} kdump-build ${DESTDIR}${sbindir}/kdump;; \
328         *linux26* | *linux_26* ) \
329                 ;; \
330         *linux* ) \
331                 ${INSTALL_SCRIPT} kdump.sh.linux ${DESTDIR}${sbindir}/kdump; \
332                 ${INSTALL_PROGRAM} kdump-build ${DESTDIR}${sbindir}/kdump ;; \
333         hp_ux11* ) \
334                 ${INSTALL_SCRIPT} kdump.sh.hp_ux11 ${DESTDIR}${sbindir}/kdump; \
335                 ${INSTALL_PROGRAM} kdump-build ${DESTDIR}${sbindir}/kdump ;; \
336         *) \
337                 ${INSTALL_PROGRAM} kdump-build ${DESTDIR}${sbindir}/kdump ;; \
338         esac
339         if [ -f kdump64 ]; then \
340                 ${INSTALL_PROGRAM} kdump64 ${DESTDIR}${sbindir}/kdump; \
341         fi
342
343 dest: kdump-build fs livesys up fstrace cmdebug afsio
344         ${INSTALL} -d ${DEST}/bin
345         ${INSTALL} -d ${DEST}/etc
346         ${INSTALL} -d ${DEST}/root.server/usr/afs/bin
347         ${INSTALL_PROGRAM} fs ${DEST}/bin/fs
348         ${INSTALL_PROGRAM} livesys ${DEST}/bin/livesys
349         ${INSTALL_PROGRAM} fs ${DEST}/root.server/usr/afs/bin/fs
350         ${INSTALL_PROGRAM} up ${DEST}/bin/up
351         ${INSTALL_PROGRAM} fstrace ${DEST}/etc/fstrace
352         ${INSTALL_PROGRAM} cmdebug ${DEST}/bin/cmdebug
353         if test "@BUILD_KRB5@" = "yes"; then \
354                 ${INSTALL_PROGRAM} afsio ${DEST}/bin/afsio ; \
355         fi
356         -set -x; \
357         case ${SYS_NAME} in \
358         sgi_6? ) \
359                 ${INSTALL_SCRIPT} ${srcdir}/kdump.sh.sgi_ipnos ${DEST}/etc/kdump; \
360                 ln -fs kdump ${DEST}/etc/kdump32; \
361                 ln -fs kdump.IP20 ${DEST}/etc/kdump.IP22; \
362                 ln -fs kdump.IP20 ${DEST}/etc/kdump.IP32; \
363                 for f in kdump.IP??; \
364                         do ${INSTALL_PROGRAM} $$f ${DEST}/etc/$$f || exit $$? ; \
365                 done ;; \
366         sun*_5[789] | sun*_510 ) \
367                 ${INSTALL_SCRIPT} ${srcdir}/kdump.sh.solaris7 ${DEST}/etc/kdump; \
368                 ${INSTALL_PROGRAM} ${srcdir}/kdump ${DEST}/etc/kdump32;; \
369         *linux26* | *linux_26* ) \
370                 ;; \
371         *alpha_linux* ) \
372                 ${INSTALL_SCRIPT} ${srcdir}/kdump.sh.linux ${DEST}/etc/kdump; \
373                 ${INSTALL_PROGRAM} kdump-alpha_linux-${LINUX_VERSION} ${DEST}/etc/kdump-${LINUX_VERSION} ;; \
374         *linux* ) \
375                 ${INSTALL_SCRIPT} ${srcdir}/kdump.sh.linux ${DEST}/etc/kdump; \
376                 ${INSTALL_PROGRAM} kdump-linux-${LINUX_VERSION} ${DEST}/etc/kdump-${LINUX_VERSION} ;; \
377         hp_ux11* ) \
378                 ${INSTALL_SCRIPT} ${srcdir}/kdump.sh.hp_ux11 ${DEST}/etc/kdump32; \
379                 ${INSTALL_PROGRAM} kdump-build ${DEST}/etc/kdump ;; \
380         *bsd*) \
381                 ;; \
382         *) \
383                 ${INSTALL_PROGRAM} kdump-build ${DEST}/etc/kdump ;; \
384         esac
385         if [ -f kdump64 ]; then \
386                 ${INSTALL_PROGRAM} kdump64 ${DEST}/etc/kdump; \
387         fi
388
389 #
390 # Misc targets
391 #
392
393 clean:
394         $(RM) -f *.o *.a up fs kdump-* kdump kdump64 core cmdebug \
395                 AFS_component_version_number.c fstrace gcpags livesys dedebug \
396                 cacheout afsio
397
398 test:
399         cd test; $(MAKE)
400
401 include ../config/Makefile.version