Changelog entry for new upstream release branch
[pkg-k5-afs_openafs.git] / Makefile.in
blob798d4da1c533aebcd01cdb7f43d978e6ec923605
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
8 # Portions Copyright (c) 2003 Apple Computer, Inc.
10 srcdir=@srcdir@
11 include @TOP_OBJDIR@/src/config/Makefile.config
12 INSTALL = @INSTALL@
13 INSTALL_DATA = @INSTALL_DATA@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 INSTALL_SCRIPT = @INSTALL_SCRIPT@
17 ENABLE_KERNEL_MODULE=@ENABLE_KERNEL_MODULE@
18 ENABLE_PTHREADED_UBIK=@ENABLE_PTHREADED_UBIK@
20 # To compile AFS from scratch in the src tree run "make".
21 # This recursively calls "make install ..." and does not depend on the
22 # existence of any non-standard programs.
23 # To compile for the kernel type "make blibafs". This assumes install,
24 # rxgen, compile_et and others already exist and runs it with
25 # "-argument kinstall".
27 COMPILE_PART1 = cd src && cd
28 COMPILE_PART2A = && $(MAKE)
29 COMPILE_PART2B = all
30 COMPILE_PART2 = ${COMPILE_PART2A} ${COMPILE_PART2B}
31 COMPILE_CLEAN = ${COMPILE_PART2A} clean
32 COMPILE_DEPINSTALL = ${COMPILE_PART2A} depinstall
33 COMPILE_GENERATED = ${COMPILE_PART2A} generated
35 all: force
36 $(MAKE) build
38 all_nolibafs: force
39 $(MAKE) build TARGET=finale_nolibafs
41 only_libafs: force
42 $(MAKE) build TARGET=libafs
44 only_libafs_tree: force
45 $(MAKE) build TARGET=libafs_tree
47 buildtools: force
48 $(MAKE) build TARGET=build_tools COMPILE_PART2B=buildtools
50 generated: force buildtools
51 +${COMPILE_PART1} afs ${COMPILE_GENERATED}
52 +${COMPILE_PART1} auth ${COMPILE_GENERATED}
53 +${COMPILE_PART1} bozo ${COMPILE_GENERATED}
54 +${COMPILE_PART1} bubasics ${COMPILE_GENERATED}
55 +${COMPILE_PART1} bucoord ${COMPILE_GENERATED}
56 +${COMPILE_PART1} budb ${COMPILE_GENERATED}
57 +${COMPILE_PART1} cmd ${COMPILE_GENERATED}
58 +${COMPILE_PART1} des ${COMPILE_GENERATED}
59 +${COMPILE_PART1} fsint ${COMPILE_GENERATED}
60 +${COMPILE_PART1} kauth ${COMPILE_GENERATED}
61 +${COMPILE_PART1} ptserver ${COMPILE_GENERATED}
62 +${COMPILE_PART1} rxkad ${COMPILE_GENERATED}
63 +${COMPILE_PART1} rxstat ${COMPILE_GENERATED}
64 +${COMPILE_PART1} sys ${COMPILE_GENERATED}
65 +${COMPILE_PART1} tests ${COMPILE_GENERATED}
66 +${COMPILE_PART1} ubik ${COMPILE_GENERATED}
67 +${COMPILE_PART1} update ${COMPILE_GENERATED}
68 +${COMPILE_PART1} vlserver ${COMPILE_GENERATED}
69 +${COMPILE_PART1} volser ${COMPILE_GENERATED}
70 +${COMPILE_PART1} config ${COMPILE_PART2A} generated_clean
72 install: all install_dirs
73 $(MAKE) build COMPILE_PART2B=install
75 install_nolibafs: all_nolibafs install_dirs
76 $(MAKE) build TARGET=finale_nolibafs COMPILE_PART2B=install
78 install_only_libafs: only_libafs install_dirs
79 $(MAKE) build TARGET=libafs COMPILE_PART2B=install
81 dest: all dest_dirs
82 $(MAKE) build COMPILE_PART2B=dest
83 -${INSTALL_DATA} ${srcdir}/src/LICENSE ${DEST}/LICENSE
85 dest_nolibafs: all_nolibafs dest_dirs
86 $(MAKE) build TARGET=finale_nolibafs COMPILE_PART2B=dest
87 -${INSTALL_DATA} ${srcdir}/src/LICENSE ${DEST}/LICENSE
89 dest_only_libafs: only_libafs dest_dirs
90 $(MAKE) build TARGET=libafs COMPILE_PART2B=dest
91 -${INSTALL_DATA} ${srcdir}/src/LICENSE ${DEST}/LICENSE
93 dpkg:
94 ln -fs ${srcdir}/src/packaging/Debian debian
95 dpkg-buildpackage -rfakeroot -b -us -uc
97 packages: dest
98 @case ${SYS_NAME} in \
99 *_darwin_1[2-4] | *_darwin_[6-9]0 | *_darwin_1[0-3]0 ) \
100 ${COMPILE_PART1} packaging/MacOS && bash ./buildpkg.sh ${DEST} ;; \
101 *_darwin_* ) \
102 ${COMPILE_PART1} packaging/MacOS && bash ./pkgbuild.sh ${DEST} ;; \
103 hp_ux110 ) \
104 ${COMPILE_PART1} packaging/HP-UX && swpackage -s psf-1.2.10-transarc-paths-11.00 ;; \
105 hp_ux11i ) \
106 ${COMPILE_PART1} packaging/HP-UX && swpackage -s psf-1.2.10-transarc-paths-11.11 ;; \
107 ia64_hpux1122 ) \
108 ${COMPILE_PART1} packaging/HP-UX && swpackage -s psf-1.2.10-transarc-paths-11.22 ;; \
109 ia64_hpux1123 | hp_ux1123) \
110 ${COMPILE_PART1} packaging/HP-UX && swpackage -s psf-1.2.10-transarc-paths-11.23 ;; \
111 *) \
112 echo Not building packages for ${SYS_NAME} ;; \
113 esac
115 ${TOP_INCDIR}/afs ${TOP_INCDIR}/rx ${TOP_INCDIR}/des ${TOP_LIBDIR} ${TOP_JLIBDIR}:
116 mkdir -p $@
118 install_dirs: force
119 mkdir -p ${DESTDIR}${bindir}
120 mkdir -p ${DESTDIR}${sbindir}
121 mkdir -p ${DESTDIR}${libexecdir}/openafs
122 mkdir -p ${DESTDIR}${libdir}/afs
123 mkdir -p ${DESTDIR}${includedir}/afs
124 mkdir -p ${DESTDIR}${includedir}/rx
125 mkdir -p ${DESTDIR}${afskerneldir}
126 mkdir -p ${DESTDIR}${afssrvbindir}
127 mkdir -p ${DESTDIR}${afssrvsbindir}
128 mkdir -p ${DESTDIR}${afssrvlibexecdir}
129 mkdir -p ${DESTDIR}${afsdatadir}/C
131 dest_dirs: force
132 mkdir -p ${DEST}/bin
133 mkdir -p ${DEST}/etc
134 mkdir -p ${DEST}/lib/afs
135 mkdir -p ${DEST}/include/afs
136 mkdir -p ${DEST}/include/rx
137 mkdir -p ${DEST}/root.client/usr/vice/etc/C
138 mkdir -p ${DEST}/root.server/etc
139 mkdir -p ${DEST}/root.server/usr/afs/bin
141 prelude: ${TOP_INCDIR}/afs ${TOP_INCDIR}/rx ${TOP_INCDIR}/des ${TOP_LIBDIR}
143 project: cmd comerr
145 tests: all
146 +${COMPILE_PART1} tests ${COMPILE_PART2}
148 config: prelude
149 +${COMPILE_PART1} config ${COMPILE_PART2}
151 procmgmt: config
152 +${COMPILE_PART1} procmgmt ${COMPILE_PART2}
154 util: procmgmt des lwp_depinstall rx_depinstall
155 +${COMPILE_PART1} util ${COMPILE_PART2}
157 libafscp: util afs volser vlserver rx auth fsint
158 +${COMPILE_PART1} libafscp ${COMPILE_PART2}
160 audit: util rx rxkad fsint
161 +${COMPILE_PART1} audit ${COMPILE_PART2} #TODO
163 comerr: util
164 +${COMPILE_PART1} comerr ${COMPILE_PART2}
166 cmd: comerr
167 +@case ${SYS_NAME} in \
168 sgi_6* | sun*_5[789] | sun*_51[01] | hp_ux11* | ia64_hpux* | sparc64_linux* | alpha_linux* ) \
169 ${COMPILE_PART1} cmd ${COMPILE_PART2}64 ;; \
170 *) \
171 ${COMPILE_PART1} cmd ${COMPILE_PART2} ;; \
172 esac
174 lwp: util lwp_depinstall
175 +${COMPILE_PART1} lwp ${COMPILE_PART2}
177 rxgen: config
178 +${COMPILE_PART1} rxgen ${COMPILE_PART2}
180 rx: config lwp rxgen rx_depinstall
181 +${COMPILE_PART1} rx ${COMPILE_PART2}
183 rxstat: rx rxstat_depinstall
184 +${COMPILE_PART1} rxstat ${COMPILE_PART2}
186 rxtests: rxdebug
187 rxdebug: rx sys
188 +${COMPILE_PART1} rxdebug ${COMPILE_PART2}
190 fsint: cmd comerr rxgen rx lwp fsint_depinstall
191 +${COMPILE_PART1} fsint ${COMPILE_PART2}
193 export2: project
195 export:
196 @case ${SYS_NAME} in \
197 rs_aix*) \
198 ${MAKE} export_build ; \
199 esac
201 export_build: fsint
202 +${COMPILE_PART1} export ${COMPILE_PART2}
204 afs: config export comerr afs_depinstall
205 +${COMPILE_PART1} afs ${COMPILE_PART2}
207 des: config
208 +${COMPILE_PART1} des ${COMPILE_PART2}
210 sys: cmd comerr afs des rx rxstat fsint auth sys_depinstall
211 +${COMPILE_PART1} sys ${COMPILE_PART2}
213 rxkad: cmd comerr des rx rxkad_depinstall
214 +${COMPILE_PART1} rxkad ${COMPILE_PART2}
216 auth: cmd comerr comerr des lwp rx rxkad audit sys_depinstall auth_depinstall
217 +${COMPILE_PART1} auth ${COMPILE_PART2}
219 ubik: cmd comerr auth ubik_depinstall sys
220 +${COMPILE_PART1} ubik ${COMPILE_PART2}
222 tubik: ubik libafsrpc
223 +[ yes != "$(ENABLE_PTHREADED_UBIK)" ] || case ${SYS_NAME} in \
224 alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
225 ${COMPILE_PART1} tubik ${COMPILE_PART2} ;; \
226 *_darwin_[1-6][0-9]) \
227 echo Not building MT ubik for ${SYS_NAME} ;; \
228 *_darwin_*) \
229 ${COMPILE_PART1} tubik ${COMPILE_PART2} ;; \
230 *) \
231 echo Not building MT ubik for ${SYS_NAME} ;; \
232 esac
234 ubiktests: ubik
236 ptserver: cmd comerr ubik cmd comerr auth audit ptserver_depinstall
237 +${COMPILE_PART1} ptserver ${COMPILE_PART2}
239 tptserver: cmd comerr ptserver tubik libafsrpc libafsauthent
240 +[ yes != "$(ENABLE_PTHREADED_UBIK)" ] || case ${SYS_NAME} in \
241 alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
242 ${COMPILE_PART1} tptserver ${COMPILE_PART2} ;; \
243 *_darwin_[1-6][0-9]) \
244 echo Not building MT ptserver for ${SYS_NAME} ;; \
245 *_darwin_*) \
246 ${COMPILE_PART1} tptserver ${COMPILE_PART2} ;; \
247 *) \
248 echo Not building MT ptserver for ${SYS_NAME} ;; \
249 esac
251 kauth: cmd comerr ubik cmd auth comerr ptserver audit libacl kauth_depinstall sys_depinstall
252 +${COMPILE_PART1} kauth ${COMPILE_PART2}
254 libacl: cmd comerr ptserver libacl_depinstall
255 +${COMPILE_PART1} libacl ${COMPILE_PART2}
257 dir: cmd comerr libacl dir_depinstall
258 +${COMPILE_PART1} dir ${COMPILE_PART2}
260 # Removed from sgi_* case below:
261 # ${COMPILE_PART1} sgiefs ${COMPILE_PART2};;
262 sgiefs:
263 +case ${SYS_NAME} in \
264 sgi_*) \
265 echo "SGI efs not supported" ;; \
266 *) \
267 echo No efs stuff for ${SYS_NAME};; \
268 esac
270 vol: cmd comerr dir afs sgiefs
271 +${COMPILE_PART1} vol ${COMPILE_PART2}
273 tsalvaged: vol libafsrpc libafsauthent cmd util
274 +case ${SYS_NAME} in \
275 alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[fn]bsd*|*_darwin_*) \
276 ${COMPILE_PART1} tsalvaged ${COMPILE_PART2} ;; \
277 *_darwin_*) \
278 ${COMPILE_PART1} tsalvaged ${COMPILE_PART2} ;; \
279 *) \
280 echo Not building MT tsalvaged for ${SYS_NAME} ;; \
281 esac
284 vlserver: cmd comerr vol audit vlserver_depinstall
285 +${COMPILE_PART1} vlserver ${COMPILE_PART2}
287 tvlserver: cmd comerr vol audit tubik libafsrpc libafsauthent tvlserver_depinstall
288 +[ yes != "$(ENABLE_PTHREADED_UBIK)" ] || case ${SYS_NAME} in \
289 alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
290 ${COMPILE_PART1} tvlserver ${COMPILE_PART2} ;; \
291 *_darwin_[1-6][0-9]) \
292 echo Not building MT tvlserver for ${SYS_NAME} ;; \
293 *_darwin_*) \
294 ${COMPILE_PART1} tvlserver ${COMPILE_PART2} ;; \
295 *) \
296 echo Not building MT tvlserver for ${SYS_NAME} ;; \
297 esac
300 viced: cmd comerr vlserver tvlserver audit
301 +${COMPILE_PART1} viced ${COMPILE_PART2}
303 tviced: cmd comerr viced vlserver tvlserver libafsrpc libafsauthent
304 +case ${SYS_NAME} in \
305 alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*|*_darwin_*) \
306 ${COMPILE_PART1} tviced ${COMPILE_PART2} ;; \
307 *) \
308 echo Not building MT viced for ${SYS_NAME} ;; \
309 esac
311 dviced: cmd comerr viced vlserver tvlserver libafsrpc libafsauthent
312 +case ${SYS_NAME} in \
313 alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*|*_darwin_*) \
314 ${COMPILE_PART1} dviced ${COMPILE_PART2} ;; \
315 *) \
316 echo Not building DAFS viced for ${SYS_NAME} ;; \
317 esac
319 volser: cmd comerr usd kauth vlserver audit
320 +${COMPILE_PART1} volser ${COMPILE_PART2}
322 tvolser: project tviced usd libafsrpc libafsauthent volser
323 +@case ${SYS_NAME} in \
324 *_darwin_*|alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
325 ${COMPILE_PART1} tvolser ${COMPILE_PART2} && \
326 if [ "xyes" = "x$(ENABLE_PTHREADED_UNIK)" ] ; then \
327 $(MAKE) $(COMPILE_PART2B)_vos; \
328 fi;; \
329 *) \
330 echo Not building MT volser for ${SYS_NAME} ;; \
331 esac
333 dvolser: project tviced usd libafsrpc libafsauthent volser
334 +@case ${SYS_NAME} in \
335 *_darwin_*|alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
336 ${COMPILE_PART1} dvolser ${COMPILE_PART2} ;; \
337 *) \
338 echo Not building DAFS volser for ${SYS_NAME} ;; \
339 esac
341 venus: cmd comerr volser ptserver libafscp libafsauthent
342 +${COMPILE_PART1} venus ${COMPILE_PART2}
343 venustests: venus
344 +${COMPILE_PART1} venus/test ${COMPILE_PART2}
346 afsd: cmd comerr sys kauth @CLIENT_UAFS_DEP@
347 +${COMPILE_PART1} afsd ${COMPILE_PART2}
349 gtx: cmd comerr auth kauth
350 +set -x; \
351 if test "@LIB_curses@"; then \
352 ${COMPILE_PART1} gtx ${COMPILE_PART2} ; \
353 else \
354 echo Not building gtx, because no curses-headers found. ; \
357 fsprobe: cmd comerr util fsint volser
358 +${COMPILE_PART1} fsprobe ${COMPILE_PART2}
360 scout: cmd comerr gtx fsprobe
361 if test "@LIB_curses@"; then \
362 ${COMPILE_PART1} scout ${COMPILE_PART2} ; \
363 else \
364 echo Not building scout, because no curses-headers found. ; \
367 uss: des kauth cmd comerr rx vlserver vol volser
368 +${COMPILE_PART1} uss ${COMPILE_PART2}
370 bozo: cmd comerr audit auth kauth volser
371 +${COMPILE_PART1} bozo ${COMPILE_PART2}
373 vfsck: vol
374 +set -x; \
375 case ${SYS_NAME} in \
376 sgi_* | *linux* | rs_aix* | *_darwin* | ia64_hpux* | *fbsd* | *_obsd* | *_nbsd* | sun*_4* ) \
377 echo skip vfsck for ${SYS_NAME} ;; \
378 * ) \
379 ${COMPILE_PART1} vfsck ${COMPILE_PART2} ;; \
380 esac
382 pam: auth shlibafsauthent shlibafsrpc
383 +set -x; \
384 if test "@HAVE_PAM@" = "yes"; then \
385 ${COMPILE_PART1} pam ${COMPILE_PART2} ; \
386 else \
387 echo Skipping pam for ${SYS_NAME} ; \
390 tsm41: cmd comerr kauth rxkad
391 +set -x; \
392 case ${SYS_NAME} in \
393 rs_aix* ) \
394 ${COMPILE_PART1} tsm41 ${COMPILE_PART2} ;; \
395 * ) \
396 echo Skipping tsm41 for ${SYS_NAME} ;; \
397 esac
399 sgistuff: cmd comerr kauth rxkad
400 +set -x; \
401 case ${SYS_NAME} in \
402 sgi_* ) \
403 ${COMPILE_PART1} sgistuff ${COMPILE_PART2} ;; \
404 * ) \
405 echo Skipping sgistuff for ${SYS_NAME} ;; \
406 esac
408 aklog: comerr ptserver
409 +set -x; \
410 if test "@BUILD_KRB5@" = "yes"; then \
411 ${COMPILE_PART1} aklog ${COMPILE_PART2} ; \
412 else \
413 echo Skipping aklog for ${SYS_NAME} ; \
416 authtools: pam tsm41 sgistuff aklog
418 platform: config cmd vol
419 +${COMPILE_PART1} platform ${COMPILE_PART2}
421 man-pages: config
422 +if test -d "doc/man-pages" ; then \
423 cd doc/man-pages ${COMPILE_PART2} ; \
427 # _depinstall targets - only build and install headers/sources that are needed by libafs/libuafs
429 # encode dependencies within the _depinstall targets as required
431 lwp_depinstall: config
432 +${COMPILE_PART1} lwp ${COMPILE_DEPINSTALL}
434 rx_depinstall: config
435 +${COMPILE_PART1} rx ${COMPILE_DEPINSTALL}
437 rxkad_depinstall: config comerr
438 +${COMPILE_PART1} rxkad ${COMPILE_DEPINSTALL}
440 ubik_depinstall: config comerr rxgen
441 +${COMPILE_PART1} ubik ${COMPILE_DEPINSTALL}
443 vlserver_depinstall: config rxgen ubik_depinstall auth_depinstall
444 +${COMPILE_PART1} vlserver ${COMPILE_DEPINSTALL}
446 tvlserver_depinstall: config rxgen ubik_depinstall auth_depinstall
447 +${COMPILE_PART1} tvlserver ${COMPILE_DEPINSTALL}
449 auth_depinstall: config comerr
450 +${COMPILE_PART1} auth ${COMPILE_DEPINSTALL}
452 fsint_depinstall: config rxgen
453 +${COMPILE_PART1} fsint ${COMPILE_DEPINSTALL}
455 rxstat_depinstall: config rxgen
456 +${COMPILE_PART1} rxstat ${COMPILE_DEPINSTALL}
458 libacl_depinstall: config
459 +${COMPILE_PART1} libacl ${COMPILE_DEPINSTALL}
461 afs_depinstall: config comerr
462 +${COMPILE_PART1} afs ${COMPILE_DEPINSTALL}
464 dir_depinstall: config
465 +${COMPILE_PART1} dir ${COMPILE_DEPINSTALL}
467 sys_depinstall: config rxgen
468 +${COMPILE_PART1} sys ${COMPILE_DEPINSTALL}
470 kauth_depinstall: config rxgen comerr
471 +${COMPILE_PART1} kauth ${COMPILE_DEPINSTALL}
473 ptserver_depinstall: config rxgen comerr
474 +${COMPILE_PART1} ptserver ${COMPILE_DEPINSTALL}
476 ${DEST}/bin/dedebug: dedebug
477 ${INSTALL} $? $@
481 # libafs build targets
483 libafs: config export lwp_depinstall rx_depinstall vlserver_depinstall tvlserver_depinstall rxkad_depinstall fsint_depinstall \
484 libacl_depinstall afs_depinstall dir_depinstall rxstat_depinstall sys_depinstall
485 src/config/config src/libafs/MakefileProto.${MKAFS_OSTYPE} src/libafs/Makefile ${SYS_NAME}
486 +${COMPILE_PART1} libafs ${COMPILE_PART2}
488 libafs_tree: export lwp_depinstall rx_depinstall vlserver_depinstall tvlserver_depinstall rxkad_depinstall fsint_depinstall \
489 libacl_depinstall afs_depinstall dir_depinstall rxstat_depinstall sys_depinstall
490 ${TOP_SRCDIR}/config/make_libafs_tree.pl \
491 -sn $(SYS_NAME) \
492 -os $(MKAFS_OSTYPE) \
493 -t @TOP_OBJDIR@/libafs_tree \
494 -o @TOP_OBJDIR@ \
495 -p @srcdir@
498 # libuafs build targets
501 UKERNELDIR= \
502 des \
503 afsweb
505 libuafs_setup: config export
506 src/config/config src/libuafs/MakefileProto.${MKAFS_OSTYPE} src/libuafs/Makefile ${SYS_NAME}
508 libuafs: libuafs_setup vlserver_depinstall tvlserver_depinstall rx_depinstall fsint_depinstall \
509 auth_depinstall dir_depinstall libacl_depinstall rxkad_depinstall \
510 ubik_depinstall afs_depinstall kauth_depinstall ptserver_depinstall \
511 rxstat_depinstall lwp_depinstall sys_depinstall des cmd ubik
512 +set -x; \
513 case ${SYS_NAME} in \
514 hp_ux102* | *_obsd* | sun*_4* | *_nbsd*| hp_ux11i | hp_ux112* | ia64_hpux112*) \
515 echo Skipping libuafs for ${SYS_NAME} ;; \
516 * ) \
517 ${COMPILE_PART1} libuafs ${COMPILE_PART2} ;; \
518 esac
520 afsweb: kauth
521 +${COMPILE_PART1} afsweb ${COMPILE_PART2}
523 update: cmd comerr auth sys
524 +${COMPILE_PART1} update ${COMPILE_PART2}
526 log: cmd comerr auth sys
527 +${COMPILE_PART1} log ${COMPILE_PART2}
529 bu_utils: cmd comerr usd
530 +${COMPILE_PART1} bu_utils ${COMPILE_PART2}
532 usd: cmd comerr
533 +${COMPILE_PART1} usd ${COMPILE_PART2}
535 bubasics: cmd comerr comerr rx
536 +${COMPILE_PART1} bubasics ${COMPILE_PART2}
538 butm: cmd comerr bubasics usd uss
539 +${COMPILE_PART1} butm ${COMPILE_PART2}
541 butc: cmd comerr bubasics butm budb bucoord cmd rxgen rx
542 +${COMPILE_PART1} butc ${COMPILE_PART2}
544 tbutc: cmd comerr bubasics butm budb bucoord cmd butc libadmin
545 +case ${SYS_NAME} in \
546 alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*) \
547 ${COMPILE_PART1} tbutc ${COMPILE_PART2} ;; \
548 *) \
549 echo Not building MT butc for ${SYS_NAME} ;; \
550 esac
552 budb: cmd comerr bubasics uss
553 +${COMPILE_PART1} budb ${COMPILE_PART2}
555 tbudb: budb tubik libafsauthent
556 +[ yes != "$(ENABLE_PTHREADED_UBIK)" ] || case ${SYS_NAME} in \
557 alpha_dux*|sgi_*|sun*_5*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
558 ${COMPILE_PART1} tbudb ${COMPILE_PART2} ;; \
559 *_darwin_[1-6][0-9]) \
560 echo Not building MT budb for ${SYS_NAME} ;; \
561 *_darwin_*) \
562 ${COMPILE_PART1} tbudb ${COMPILE_PART2} ;; \
563 *) \
564 echo Not building MT budb for ${SYS_NAME} ;; \
565 esac
567 bucoord: cmd comerr bubasics budb volser
568 +${COMPILE_PART1} bucoord ${COMPILE_PART2}
570 xstat: cmd comerr fsint viced
571 +${COMPILE_PART1} xstat ${COMPILE_PART2}
573 afsmonitor: cmd comerr gtx xstat
574 +set -x; \
575 if test "@LIB_curses@"; then \
576 ${COMPILE_PART1} afsmonitor ${COMPILE_PART2} ; \
577 else \
578 echo Not building afsmonitor, because no curses-headers found. ; \
581 tests: rxtests ubiktests rpctestlib
583 # pthread based user space RX library
584 libafsrpc: rx rxkad rxstat fsint des
585 +case ${SYS_NAME} in \
586 alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
587 ${COMPILE_PART1} libafsrpc ${COMPILE_PART2} ;; \
588 *_darwin_[1-6][0-9]) \
589 echo Not building MT libafsrpc for ${SYS_NAME} ;; \
590 *_darwin_*) \
591 ${COMPILE_PART1} libafsrpc ${COMPILE_PART2} ;; \
592 *) \
593 echo Not building MT libafsrpc for ${SYS_NAME} ;; \
594 esac
596 libafsauthent: ubik auth kauth libafsrpc volser vlserver
597 +case ${SYS_NAME} in \
598 alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*[nof]bsd*) \
599 ${COMPILE_PART1} libafsauthent ${COMPILE_PART2} ;; \
600 *_darwin_[1-6][0-9]) \
601 echo Not building MT libafsauthent for ${SYS_NAME} ;; \
602 *_darwin_*) \
603 ${COMPILE_PART1} libafsauthent ${COMPILE_PART2} ;; \
604 *) \
605 echo Not building MT libafsauthent for ${SYS_NAME} ;; \
606 esac
608 # pthread based user space RX library
609 shlibafsrpc: rx rxstat fsint rxkad des
610 +case ${SYS_NAME} in \
611 alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*_darwin_1*|*nbsd*|*obsd*|*fbsd*) \
612 ${COMPILE_PART1} shlibafsrpc ${COMPILE_PART2} ;; \
613 *) \
614 echo Not building shared libafsrpc for ${SYS_NAME} ;; \
615 esac
617 shlibafsauthent: bozo ubik auth kauth shlibafsrpc
618 +case ${SYS_NAME} in \
619 alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*|*_darwin_1*|*nbsd*|*obsd*|*fbsd*) \
620 ${COMPILE_PART1} shlibafsauthent ${COMPILE_PART2} ;; \
621 *) \
622 echo Not building shared libafsauthent for ${SYS_NAME} ;; \
623 esac
625 kopenafs: config sys
626 +${COMPILE_PART1} kopenafs ${COMPILE_PART2}
628 libadmin_real:
629 +${COMPILE_PART1} libadmin ${COMPILE_PART2}
630 +${COMPILE_PART1} libadmin/adminutil ${COMPILE_PART2}
631 +${COMPILE_PART1} libadmin/vos ${COMPILE_PART2}
632 +${COMPILE_PART1} libadmin/client ${COMPILE_PART2}
633 +${COMPILE_PART1} libadmin/kas ${COMPILE_PART2}
634 +${COMPILE_PART1} libadmin/pts ${COMPILE_PART2}
635 +${COMPILE_PART1} libadmin/bos ${COMPILE_PART2}
636 +${COMPILE_PART1} libadmin/cfg ${COMPILE_PART2}
637 +${COMPILE_PART1} libadmin/test ${COMPILE_PART2}
638 +${COMPILE_PART1} libadmin/samples ${COMPILE_PART2}
640 libadmin: libafsauthent bozo bubasics
641 +case ${SYS_NAME} in \
642 alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux11*|ia64_hpux*) \
643 $(MAKE) libadmin_real ;; \
644 *_darwin_[1-6][0-9]) \
645 echo Not building MT libadmin for ${SYS_NAME} ;; \
646 *_darwin_*) \
647 $(MAKE) libadmin_real ;; \
648 *) \
649 echo Not building MT libadmin for ${SYS_NAME} ;; \
650 esac
652 libjafs: libadmin
653 +case ${SYS_NAME} in \
654 alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
655 ${COMPILE_PART1} JAVA/libjafs ${COMPILE_PART2} ;; \
656 *) \
657 echo Not building MT libjafs for ${SYS_NAME} ;; \
658 esac
660 libjafsadm: libjafs
662 jafs: libjafs
664 jafsadm: libjafsadm
666 build_tools: config des comerr rxgen
667 +${COMPILE_PART1} util ${COMPILE_PART2A} buildtools_clean
669 finale: project cmd comerr afsd butc tbutc tbudb @ENABLE_KERNEL_MODULE@ libuafs audit kauth log \
670 ptserver tptserver scout bu_utils ubik uss bozo @VFSCK@ volser tvolser tsalvaged \
671 dviced dvolser libafscp \
672 venus venustests update xstat afsmonitor rxdebug libafsrpc \
673 libafsauthent shlibafsrpc shlibafsauthent libadmin man-pages \
674 platform kopenafs authtools
675 +${COMPILE_PART1} finale ${COMPILE_PART2}
677 finale_nolibafs: project cmd comerr afsd butc tbutc tbudb libuafs audit kauth log \
678 ptserver tptserver scout bu_utils ubik tubik uss bozo @VFSCK@ volser tvolser tsalvaged \
679 dviced dvolser libafscp\
680 venus venustests update xstat afsmonitor rxdebug libafsrpc \
681 libafsauthent shlibafsrpc shlibafsauthent libadmin man-pages \
682 platform kopenafs authtools
683 +${COMPILE_PART1} finale ${COMPILE_PART2}
685 check test: finale
686 cd tests && $(MAKE) check
688 # Use washtool to ensure MakefileProto is current and obj/libafs exists.
690 force:
692 TARGET=finale
693 build: force
694 $(MAKE) $(TARGET) DEST=$(DEST) COMPILE_PART2B=$(COMPILE_PART2B) DESTDIR=$(DESTDIR)
696 kupdate: updatekdir libafs_setup libuafs_setup
698 blibafs:
699 $(MAKE) libafs
701 blibuafs:
702 $(MAKE) libuafs
704 bwebafs: sys
705 $(MAKE) libuafs
707 clean:
708 $(MAKE) clean2
710 clean2:
711 -${COMPILE_PART1} config ${COMPILE_CLEAN}
712 -${COMPILE_PART1} procmgmt ${COMPILE_CLEAN}
713 -${COMPILE_PART1} util ${COMPILE_CLEAN}
714 -${COMPILE_PART1} libafscp ${COMPILE_CLEAN}
715 -${COMPILE_PART1} audit ${COMPILE_CLEAN}
716 -${COMPILE_PART1} comerr ${COMPILE_CLEAN}
717 -${COMPILE_PART1} cmd ${COMPILE_CLEAN}
718 -${COMPILE_PART1} lwp ${COMPILE_CLEAN}
719 -${COMPILE_PART1} rxgen ${COMPILE_CLEAN}
720 -${COMPILE_PART1} rx ${COMPILE_CLEAN}
721 -${COMPILE_PART1} rxstat ${COMPILE_CLEAN}
722 -${COMPILE_PART1} fsint ${COMPILE_CLEAN}
723 -${COMPILE_PART1} export ${COMPILE_CLEAN}
724 -${COMPILE_PART1} afs ${COMPILE_CLEAN}
725 -${COMPILE_PART1} des ${COMPILE_CLEAN}
726 -${COMPILE_PART1} sys ${COMPILE_CLEAN}
727 -${COMPILE_PART1} rxkad ${COMPILE_CLEAN}
728 -${COMPILE_PART1} auth ${COMPILE_CLEAN}
729 -${COMPILE_PART1} ubik ${COMPILE_CLEAN}
730 -${COMPILE_PART1} tubik ${COMPILE_CLEAN}
731 -${COMPILE_PART1} ptserver ${COMPILE_CLEAN}
732 -${COMPILE_PART1} tptserver ${COMPILE_CLEAN}
733 -${COMPILE_PART1} kauth ${COMPILE_CLEAN}
734 -${COMPILE_PART1} libacl ${COMPILE_CLEAN}
735 -${COMPILE_PART1} dir ${COMPILE_CLEAN}
736 -${COMPILE_PART1} vol ${COMPILE_CLEAN}
737 -${COMPILE_PART1} vlserver ${COMPILE_CLEAN}
738 -${COMPILE_PART1} tvlserver ${COMPILE_CLEAN}
739 -${COMPILE_PART1} viced ${COMPILE_CLEAN}
740 -${COMPILE_PART1} tviced ${COMPILE_CLEAN}
741 -${COMPILE_PART1} dviced ${COMPILE_CLEAN}
742 -${COMPILE_PART1} volser ${COMPILE_CLEAN}
743 -${COMPILE_PART1} tvolser ${COMPILE_CLEAN}
744 -${COMPILE_PART1} dvolser ${COMPILE_CLEAN}
745 -${COMPILE_PART1} tsalvaged ${COMPILE_CLEAN}
746 -${COMPILE_PART1} venus ${COMPILE_CLEAN}
747 -${COMPILE_PART1} venus/test ${COMPILE_CLEAN}
748 -${COMPILE_PART1} afsd ${COMPILE_CLEAN}
749 -${COMPILE_PART1} gtx ${COMPILE_CLEAN}
750 -${COMPILE_PART1} fsprobe ${COMPILE_CLEAN}
751 -${COMPILE_PART1} scout ${COMPILE_CLEAN}
752 -${COMPILE_PART1} uss ${COMPILE_CLEAN}
753 -${COMPILE_PART1} bozo ${COMPILE_CLEAN}
754 -${COMPILE_PART1} vfsck ${COMPILE_CLEAN}
755 -${COMPILE_PART1} sgistuff ${COMPILE_CLEAN}
756 -${COMPILE_PART1} tsm41 ${COMPILE_CLEAN}
757 -${COMPILE_PART1} sia ${COMPILE_CLEAN}
758 -${COMPILE_PART1} aklog ${COMPILE_CLEAN}
759 -${COMPILE_PART1} pam ${COMPILE_CLEAN}
760 -${COMPILE_PART1} afsweb ${COMPILE_CLEAN}
761 -${COMPILE_PART1} update ${COMPILE_CLEAN}
762 -${COMPILE_PART1} log ${COMPILE_CLEAN}
763 -${COMPILE_PART1} bu_utils ${COMPILE_CLEAN}
764 -${COMPILE_PART1} usd ${COMPILE_CLEAN}
765 -${COMPILE_PART1} bubasics ${COMPILE_CLEAN}
766 -${COMPILE_PART1} butm ${COMPILE_CLEAN}
767 -${COMPILE_PART1} butc ${COMPILE_CLEAN}
768 -${COMPILE_PART1} tbutc ${COMPILE_CLEAN}
769 -${COMPILE_PART1} budb ${COMPILE_CLEAN}
770 -${COMPILE_PART1} tbudb ${COMPILE_CLEAN}
771 -${COMPILE_PART1} bucoord ${COMPILE_CLEAN}
772 -${COMPILE_PART1} xstat ${COMPILE_CLEAN}
773 -${COMPILE_PART1} afsmonitor ${COMPILE_CLEAN}
774 -${COMPILE_PART1} tests ${COMPILE_CLEAN}
775 -${COMPILE_PART1} rxdebug ${COMPILE_CLEAN}
776 -${COMPILE_PART1} libafsrpc ${COMPILE_CLEAN}
777 -${COMPILE_PART1} libafsauthent ${COMPILE_CLEAN}
778 -${COMPILE_PART1} shlibafsrpc ${COMPILE_CLEAN}
779 -${COMPILE_PART1} shlibafsauthent ${COMPILE_CLEAN}
780 -${COMPILE_PART1} kopenafs ${COMPILE_CLEAN}
781 -${COMPILE_PART1} platform ${COMPILE_CLEAN}
782 -${COMPILE_PART1} libadmin ${COMPILE_CLEAN}
783 -${COMPILE_PART1} libadmin/adminutil ${COMPILE_CLEAN}
784 -${COMPILE_PART1} libadmin/client ${COMPILE_CLEAN}
785 -${COMPILE_PART1} libadmin/vos ${COMPILE_CLEAN}
786 -${COMPILE_PART1} libadmin/kas ${COMPILE_CLEAN}
787 -${COMPILE_PART1} libadmin/pts ${COMPILE_CLEAN}
788 -${COMPILE_PART1} libadmin/bos ${COMPILE_CLEAN}
789 -${COMPILE_PART1} libadmin/cfg ${COMPILE_CLEAN}
790 -${COMPILE_PART1} libadmin/test ${COMPILE_CLEAN}
791 -${COMPILE_PART1} libadmin/samples ${COMPILE_CLEAN}
792 -${COMPILE_PART1} JAVA/libjafs ${COMPILE_CLEAN}
793 -${COMPILE_PART1} finale ${COMPILE_CLEAN}
794 -${COMPILE_PART1} libafs ${COMPILE_CLEAN}
795 -${COMPILE_PART1} libuafs ${COMPILE_CLEAN}
796 -${COMPILE_PART1} tests ${COMPILE_CLEAN}
797 -(cd src/libafs; /bin/rm -rf afs afsint config rx)
798 -(cd src/libuafs; /bin/rm -rf afs afsint config rx des)
799 -/bin/rm -rf ${TOP_INCDIR} ${TOP_LIBDIR} ${TOP_JLIBDIR}
800 -/bin/rm -rf libafs_tree ${SYS_NAME}
802 dist:
803 mkdir -p packages
804 ./build-tools/make-release --dir=packages HEAD
806 srpm:
807 (cd packages && ../src/packaging/RedHat/makesrpm.pl *-src.tar.bz2 *-doc.tar.bz2)
809 distclean: clean
810 /bin/rm -rf lib include packages
811 /bin/rm -f config.log config.cache config.status \
812 src/config/afsconfig.h src/config/stamp-h1 \
813 src/libafs/Makefile \
814 src/libuafs/Makefile \
815 Makefile \
816 src/afs/Makefile \
817 src/afsd/Makefile \
818 src/afsmonitor/Makefile \
819 src/afsweb/Makefile \
820 src/aklog/Makefile \
821 src/audit/Makefile \
822 src/auth/Makefile \
823 src/auth/test/Makefile \
824 src/bozo/Makefile \
825 src/bozo/test/Makefile \
826 src/bu_utils/Makefile \
827 src/bubasics/Makefile \
828 src/bucoord/Makefile \
829 src/budb/Makefile \
830 src/tbudb/Makefile \
831 src/butc/Makefile \
832 src/butm/Makefile \
833 src/cmd/Makefile \
834 src/cmd/test/Makefile \
835 src/comerr/Makefile \
836 src/comerr/test/Makefile \
837 src/config/Makefile \
838 src/config/Makefile.config \
839 src/config/Makefile.version \
840 src/config/Makefile.version-CML \
841 src/config/Makefile.version-NOCML \
842 src/config/shlib-build \
843 src/config/shlib-install \
844 src/des/Makefile \
845 src/des/test/Makefile \
846 src/dir/Makefile \
847 src/dir/test/Makefile \
848 src/dviced/Makefile \
849 src/dvolser/Makefile \
850 src/export/Makefile \
851 src/finale/Makefile \
852 src/fsint/Makefile \
853 src/fsprobe/Makefile \
854 src/gtx/Makefile \
855 src/JAVA/libjafs/Makefile \
856 src/kauth/Makefile \
857 src/kauth/test/Makefile \
858 src/kopenafs/Makefile \
859 src/libacl/Makefile \
860 src/libacl/test/Makefile \
861 src/libadmin/Makefile \
862 src/libadmin/adminutil/Makefile \
863 src/libadmin/bos/Makefile \
864 src/libadmin/cfg/Makefile \
865 src/libadmin/cfg/test/Makefile \
866 src/libadmin/client/Makefile \
867 src/libadmin/kas/Makefile \
868 src/libadmin/pts/Makefile \
869 src/libadmin/samples/Makefile \
870 src/libadmin/test/Makefile \
871 src/libadmin/vos/Makefile \
872 src/libafs/Makefile.common \
873 src/libafs/MakefileProto.${MKAFS_OSTYPE} \
874 ${DARWIN_PLIST} \
875 src/libafsauthent/Makefile \
876 src/libafsrpc/Makefile \
877 src/libuafs/Makefile.common \
878 src/libuafs/MakefileProto.${MKAFS_OSTYPE} \
879 src/log/Makefile \
880 src/log/test/Makefile \
881 src/lwp/Makefile \
882 src/lwp/test/Makefile \
883 src/packaging/Debian/changelog \
884 src/packaging/MacOS/OpenAFS-debug.Description.plist \
885 src/packaging/MacOS/OpenAFS-debug.Info.plist \
886 src/packaging/MacOS/OpenAFS.Description.plist \
887 src/packaging/MacOS/OpenAFS.Info.plist \
888 src/packaging/MacOS/OpenAFS.info \
889 src/packaging/MacOS/buildpkg.sh \
890 src/packaging/RedHat/openafs.spec \
891 src/pam/Makefile \
892 src/platform/Makefile \
893 src/platform/${MKAFS_OSTYPE}/Makefile \
894 src/platform/DARWIN/growlagent/Makefile \
895 src/procmgmt/Makefile \
896 src/procmgmt/test/Makefile \
897 src/ptserver/Makefile \
898 src/tptserver/Makefile \
899 src/rx/Makefile \
900 src/rx/bulk.example/Makefile \
901 src/rx/bulktest/Makefile \
902 src/rx/multi.example/Makefile \
903 src/rx/simple.example/Makefile \
904 src/rx/test/Makefile \
905 src/rxdebug/Makefile \
906 src/rxgen/Makefile \
907 src/rxkad/Makefile \
908 src/rxkad/test/Makefile \
909 src/rxstat/Makefile \
910 src/scout/Makefile \
911 src/sgistuff/Makefile \
912 src/shlibafsauthent/Makefile \
913 src/shlibafsrpc/Makefile \
914 src/sys/Makefile \
915 src/tbutc/Makefile \
916 src/tests/Makefile \
917 src/tests/run-tests \
918 src/tsalvaged/Makefile \
919 src/tsm41/Makefile \
920 src/tviced/Makefile \
921 src/tvolser/Makefile \
922 src/ubik/Makefile \
923 src/tubik/Makefile \
924 src/update/Makefile \
925 src/usd/Makefile \
926 src/usd/test/Makefile \
927 src/uss/Makefile \
928 src/util/Makefile \
929 src/util/test/Makefile \
930 src/libafscp/Makefile \
931 src/venus/Makefile \
932 src/venus/test/Makefile \
933 src/vfsck/Makefile \
934 src/viced/Makefile \
935 src/vlserver/Makefile \
936 src/tvlserver/Makefile \
937 src/vol/Makefile \
938 src/vol/test/Makefile \
939 src/volser/Makefile \
940 src/xstat/Makefile \
941 tests/Makefile \
942 tests/rpctestlib/Makefile \
943 tests/tap/Makefile \
944 src/helper-splint.sh
945 if test -d doc/man-pages ; then \
946 rm -f doc/man-pages/Makefile doc/man-pages/install-man ; \
949 pristine: distclean
950 /bin/rm -f src/config/afsconfig.h.in configure configure-libafs aclocal.m4
952 maintainer-clean: pristine