2000-11-04 10:01:08 +00:00
|
|
|
# Copyright 2000, International Business Machines Corporation and others.
|
|
|
|
# All Rights Reserved.
|
|
|
|
#
|
|
|
|
# This software has been released under the terms of the IBM Public
|
|
|
|
# License. For details, see the LICENSE file in the top-level source
|
|
|
|
# directory or online at http://www.openafs.org/dl/license10.html
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
SHELL=/bin/sh
|
|
|
|
DESTDIR=dest/
|
|
|
|
SRCDIR=${DESTDIR}
|
|
|
|
INSTALL=${SRCDIR}bin/install
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
# Systype-generic items
|
|
|
|
SYS_NAME=@AFS_SYSNAME@
|
|
|
|
MKAFS_OSTYPE=@MKAFS_OSTYPE@
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
# Systype-specific items
|
|
|
|
LINUX_KERNEL_PATH=@LINUX_KERNEL_PATH@
|
|
|
|
LINUX_VERSION=@LINUX_VERSION@
|
|
|
|
|
|
|
|
# Other items
|
|
|
|
LIB_AFSDB=@LIB_AFSDB@
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-04-14 19:45:16 +01:00
|
|
|
# Enable build+install of obsolete and insecure packages
|
|
|
|
# Set to anything other than YES, or comment out to disable the build
|
2001-06-28 07:44:19 +01:00
|
|
|
WITH_OBSOLETE=@WITH_OBSOLETE@
|
|
|
|
WITH_INSECURE=@WITH_INSECURE@
|
2001-04-14 19:45:16 +01:00
|
|
|
|
2001-07-05 18:38:19 +01:00
|
|
|
ENABLE_KERNEL_MODULE=@ENABLE_KERNEL_MODULE@
|
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
# To compile AFS from scratch in the src tree run "make SYS_NAME=<type>".
|
|
|
|
# This recursively calls "make install ..." and does not depend on the
|
|
|
|
# existence of any non-standard programs.
|
|
|
|
# To compile a package and all its predecessors using washtool run
|
|
|
|
# "make <package>". This requires that @sys works, and that washtool,
|
|
|
|
# rcsupdate and our version of ci and co exist.
|
|
|
|
# To compile for the kernel type "make blibafs". This assumes washtool,
|
|
|
|
# install, rxgen, compile_et and others already exist and runs it with
|
|
|
|
# "-argument kinstall".
|
|
|
|
|
|
|
|
all:
|
|
|
|
set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
|
2001-06-28 07:44:19 +01:00
|
|
|
$(MAKE) install "COMPILE_PART1=cd src; cd" "COMPILE_PART2=; $(MAKE) install SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_PART3=; $(MAKE) test SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-07-12 19:18:53 +01:00
|
|
|
all_nolibafs:
|
|
|
|
set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
|
|
|
|
$(MAKE) install TARGET=finale_nolibafs "COMPILE_PART1=cd src; cd" "COMPILE_PART2=; $(MAKE) install SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_PART3=; $(MAKE) test SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
|
|
|
|
|
|
|
|
only_libafs:
|
|
|
|
set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
|
|
|
|
$(MAKE) install TARGET=libafs "COMPILE_PART1=cd src; cd" "COMPILE_PART2=; $(MAKE) install SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_PART3=; $(MAKE) test SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
project: cmd comerr
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
config:
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} config ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
pinstall: config
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} pinstall ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
procmgmt: config pinstall
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} procmgmt ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
util: pinstall procmgmt
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} util ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
audit: pinstall rx rxkad fsint
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} audit ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
comerr: util
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} comerr ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
cmd: comerr
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} cmd ${COMPILE_PART2}
|
|
|
|
@case ${SYS_NAME} in \
|
2001-03-15 18:15:46 +00:00
|
|
|
sgi_6* | sun4x_57 | sun4x_58 | hp_ux11* | sparc64_linux* | alpha_linux* ) \
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} cmd ${COMPILE_PART2} install64 ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
lwp: project util
|
|
|
|
${COMPILE_PART1} lwp ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
rxgen: pinstall
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} rxgen ${COMPILE_PART2}
|
|
|
|
|
|
|
|
rxobj:
|
|
|
|
|
|
|
|
kernrx:
|
|
|
|
${COMPILE_PART1} rx ${COMPILE_PART2}
|
|
|
|
|
|
|
|
rx: project lwp rxgen
|
|
|
|
${COMPILE_PART1} rx ${COMPILE_PART2}
|
|
|
|
|
|
|
|
rxstat: rx
|
|
|
|
${COMPILE_PART1} rxstat ${COMPILE_PART2}
|
|
|
|
|
|
|
|
rxincls: rxobj
|
2001-06-28 07:44:19 +01:00
|
|
|
${COMPILE_PART1} rx ${COMPILE_PART2}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
rxtests: rxobj
|
2001-06-28 07:44:19 +01:00
|
|
|
${COMPILE_PART1} rx ${COMPILE_PART3}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
fsint: project kfsint
|
|
|
|
|
2001-07-12 04:14:13 +01:00
|
|
|
kfsint: lwp rxgen rxincls
|
2001-06-28 07:44:19 +01:00
|
|
|
${COMPILE_PART1} fsint ${COMPILE_PART2}
|
2001-05-30 21:45:01 +01:00
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
export2: project fsint
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
export: fsint
|
2000-11-04 02:13:13 +00:00
|
|
|
@case ${SYS_NAME} in \
|
|
|
|
rs_aix*) \
|
|
|
|
${COMPILE_PART1} export ${COMPILE_PART2} ;; \
|
|
|
|
* ) echo skipping export for ${SYS_NAME} ;; \
|
|
|
|
esac
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
afs: export
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} afs ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
des: config
|
|
|
|
${COMPILE_PART1} des ${COMPILE_PART2}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
sys: project des rx rxstat fsint
|
|
|
|
${COMPILE_PART1} sys ${COMPILE_PART2}
|
|
|
|
|
|
|
|
rxkad: project des
|
|
|
|
${COMPILE_PART1} rxkad ${COMPILE_PART2}
|
|
|
|
|
|
|
|
kernauth:
|
|
|
|
${COMPILE_PART1} auth ${COMPILE_PART2}
|
|
|
|
|
|
|
|
auth: project comerr des lwp rx sys rxkad audit
|
|
|
|
${COMPILE_PART1} auth ${COMPILE_PART2}
|
|
|
|
|
|
|
|
ubik: project auth
|
|
|
|
${COMPILE_PART1} ubik ${COMPILE_PART2}
|
|
|
|
|
|
|
|
ubiktests: ubik sys
|
2001-03-05 18:55:13 +00:00
|
|
|
${COMPILE_PART1} ubik ${COMPILE_PART3}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
ptserver: project ubik cmd comerr auth audit
|
|
|
|
${COMPILE_PART1} ptserver ${COMPILE_PART2}
|
|
|
|
|
|
|
|
kauth: project ubik cmd auth comerr ptserver audit libacl
|
|
|
|
${COMPILE_PART1} kauth ${COMPILE_PART2}
|
|
|
|
|
|
|
|
dauth: project ubik cmd auth comerr
|
|
|
|
${COMPILE_PART1} dauth ${COMPILE_PART2}
|
|
|
|
|
|
|
|
libacl: project ptserver
|
|
|
|
${COMPILE_PART1} libacl ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
kerndir:
|
|
|
|
${COMPILE_PART1} dir ${COMPILE_PART2}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
dir: project libacl
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} dir ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
# Removed from sgi_* case below:
|
|
|
|
# ${COMPILE_PART1} sgiefs ${COMPILE_PART2};;
|
|
|
|
sgiefs:
|
|
|
|
case ${SYS_NAME} in \
|
|
|
|
sgi_*) \
|
|
|
|
echo "SGI efs not supported" ;; \
|
|
|
|
*) \
|
|
|
|
echo No efs stuff for ${SYS_NAME};; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
vol: project dir afs sgiefs
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} vol ${COMPILE_PART2}
|
|
|
|
|
|
|
|
vlserver: project vol audit
|
|
|
|
${COMPILE_PART1} vlserver ${COMPILE_PART2}
|
|
|
|
|
|
|
|
viced: project vlserver audit
|
|
|
|
${COMPILE_PART1} viced ${COMPILE_PART2}
|
|
|
|
|
|
|
|
tviced: project viced vlserver libafsrpc libafsauthent
|
|
|
|
case ${SYS_NAME} in \
|
2001-04-04 19:08:51 +01:00
|
|
|
alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} tviced ${COMPILE_PART2} ;; \
|
|
|
|
*) \
|
|
|
|
echo Not building MT viced for ${SYS_NAME} ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
volser: project tviced usd kauth audit
|
|
|
|
${COMPILE_PART1} volser ${COMPILE_PART2}
|
|
|
|
|
|
|
|
venus: project volser ptserver
|
|
|
|
${COMPILE_PART1} venus ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} venus/test ${COMPILE_PART2}
|
|
|
|
|
|
|
|
afsd: project sys kauth
|
|
|
|
${COMPILE_PART1} afsd ${COMPILE_PART2}
|
|
|
|
|
|
|
|
null: project
|
|
|
|
${COMPILE_PART1} null ${COMPILE_PART2}
|
|
|
|
|
|
|
|
gtx: project null auth # kauth rxkad ?
|
|
|
|
case ${SYS_NAME} in \
|
2001-04-14 19:27:12 +01:00
|
|
|
rs_aix* | sun4x_5? | sgi_6? | *linux* | ppc_darwin* | *fbsd*) \
|
2000-11-04 02:13:13 +00:00
|
|
|
rm -f ${DESTDIR}lib/afs/libtermlib.a; \
|
|
|
|
ln -s libnull.a ${DESTDIR}lib/afs/libtermlib.a; \
|
|
|
|
${COMPILE_PART1} gtx ${COMPILE_PART2};; \
|
|
|
|
*) \
|
|
|
|
rm -f ${DESTDIR}lib/afs/libtermlib.a; \
|
|
|
|
ln -s /usr/lib/libtermlib.a ${DESTDIR}lib/afs/libtermlib.a; \
|
|
|
|
${COMPILE_PART1} gtx ${COMPILE_PART2};; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
fsprobe: project util fsint
|
|
|
|
${COMPILE_PART1} fsprobe ${COMPILE_PART2}
|
|
|
|
|
|
|
|
scout: project gtx fsprobe
|
|
|
|
${COMPILE_PART1} scout ${COMPILE_PART2}
|
|
|
|
|
|
|
|
uss: des kauth project rx vlserver vol
|
|
|
|
${COMPILE_PART1} uss ${COMPILE_PART2}
|
|
|
|
|
|
|
|
bozo: project ntp audit
|
|
|
|
${COMPILE_PART1} bozo ${COMPILE_PART2}
|
|
|
|
|
|
|
|
|
|
|
|
# Removed from respective case statements below:
|
|
|
|
# ${COMPILE_PART1} vfsckaix42 ${COMPILE_PART2} ;;
|
|
|
|
# ${COMPILE_PART1} vfscksol25 ${COMPILE_PART2} ;;
|
|
|
|
# ${COMPILE_PART1} vfscksol26 ${COMPILE_PART2} ;;
|
|
|
|
# ${COMPILE_PART1} vfscksol27 ${COMPILE_PART2} ;;
|
2001-06-28 07:44:19 +01:00
|
|
|
vfsck: vol
|
2000-11-04 02:13:13 +00:00
|
|
|
set -x; \
|
|
|
|
case ${SYS_NAME} in \
|
2001-04-14 19:27:12 +01:00
|
|
|
sgi_* | *linux* | rs_aix42 | ppc_darwin* | hp_ux* | *fbsd* ) \
|
2000-11-04 02:13:13 +00:00
|
|
|
echo skip vfsck for ${SYS_NAME} ;; \
|
|
|
|
* ) \
|
|
|
|
${COMPILE_PART1} vfsck ${COMPILE_PART2} ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
login: project kauth rxkad
|
|
|
|
set -x; \
|
|
|
|
case ${SYS_NAME} in \
|
|
|
|
sgi_* ) \
|
|
|
|
${COMPILE_PART1} sgistuff ${COMPILE_PART2} ;; \
|
|
|
|
rs_aix42 ) \
|
|
|
|
${COMPILE_PART1} tsm41 ${COMPILE_PART2} ;; \
|
|
|
|
alpha_dux* ) \
|
|
|
|
${COMPILE_PART1} sia ${COMPILE_PART2} ;; \
|
|
|
|
sun4x_55 ) \
|
|
|
|
${COMPILE_PART1} login ${COMPILE_PART2} ;; \
|
2001-04-14 19:27:12 +01:00
|
|
|
sun4x_* | hp_ux11* | *linux* | *fbsd* ) \
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} pam ${COMPILE_PART2} ;; \
|
2001-03-27 09:43:13 +01:00
|
|
|
ppc_darwin* ) \
|
|
|
|
echo Skipping login for ${SYS_NAME} ;; \
|
2000-11-04 02:13:13 +00:00
|
|
|
* ) \
|
|
|
|
${COMPILE_PART1} login ${COMPILE_PART2} ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
KERNELDIR= \
|
|
|
|
afs \
|
2001-06-28 07:44:19 +01:00
|
|
|
dir \
|
|
|
|
rx \
|
|
|
|
fsint \
|
|
|
|
auth \
|
|
|
|
rxkad \
|
|
|
|
util \
|
|
|
|
libacl \
|
|
|
|
vlserver \
|
|
|
|
sgiefs \
|
|
|
|
rxstat
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
UKERNELDIR= \
|
|
|
|
afs \
|
|
|
|
dir \
|
|
|
|
rx \
|
|
|
|
fsint \
|
|
|
|
util \
|
|
|
|
auth \
|
|
|
|
rxkad \
|
|
|
|
vlserver \
|
|
|
|
kauth \
|
|
|
|
des \
|
|
|
|
afsweb \
|
|
|
|
rxstat
|
|
|
|
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
libafs: libafs_setup ${KERNELDIR}
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} libafs ${COMPILE_PART2}
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
libuafs: libuafs_setup ${UKERNELDIR}
|
2001-04-04 19:08:51 +01:00
|
|
|
set -x; \
|
|
|
|
case ${SYS_NAME} in \
|
|
|
|
hp_ux102* ) \
|
|
|
|
echo Skipping libuafs for ${SYS_NAME} ;; \
|
|
|
|
* ) \
|
|
|
|
${COMPILE_PART1} libuafs ${COMPILE_PART2} ;; \
|
|
|
|
esac
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
afsweb: kauth dauth
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} afsweb ${COMPILE_PART2}
|
|
|
|
|
|
|
|
update: project auth
|
|
|
|
${COMPILE_PART1} update ${COMPILE_PART2}
|
|
|
|
|
|
|
|
log: project auth
|
|
|
|
${COMPILE_PART1} log ${COMPILE_PART2}
|
|
|
|
|
|
|
|
bu_utils: project
|
|
|
|
${COMPILE_PART1} bu_utils ${COMPILE_PART2}
|
|
|
|
|
|
|
|
usd: project
|
|
|
|
${COMPILE_PART1} usd ${COMPILE_PART2}
|
|
|
|
|
|
|
|
bubasics: project comerr
|
|
|
|
${COMPILE_PART1} bubasics ${COMPILE_PART2}
|
|
|
|
|
|
|
|
butm: project bubasics usd
|
|
|
|
${COMPILE_PART1} butm ${COMPILE_PART2}
|
|
|
|
|
|
|
|
butc: project bubasics butm budb bucoord cmd
|
|
|
|
${COMPILE_PART1} butc ${COMPILE_PART2}
|
|
|
|
|
|
|
|
tbutc: project bubasics butm budb bucoord cmd butc
|
|
|
|
case ${SYS_NAME} in \
|
2001-04-04 19:08:51 +01:00
|
|
|
alpha_dux*|sgi_*|sun4x_*|rs_aix4*|*linux*|hp_ux110) \
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} tbutc ${COMPILE_PART2} ;; \
|
|
|
|
*) \
|
|
|
|
echo Not building MT butc for ${SYS_NAME} ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
budb: project bubasics
|
|
|
|
${COMPILE_PART1} budb ${COMPILE_PART2}
|
|
|
|
|
|
|
|
bucoord: project bubasics budb volser
|
|
|
|
${COMPILE_PART1} bucoord ${COMPILE_PART2}
|
|
|
|
|
|
|
|
xstat: project
|
|
|
|
${COMPILE_PART1} xstat ${COMPILE_PART2}
|
|
|
|
|
|
|
|
afsmonitor: project gtx xstat
|
|
|
|
${COMPILE_PART1} afsmonitor ${COMPILE_PART2}
|
|
|
|
|
|
|
|
tests: rxtests ubiktests
|
|
|
|
|
|
|
|
# pthread based user space RX library
|
|
|
|
libafsrpc: rx rxkad des
|
2001-03-27 09:43:13 +01:00
|
|
|
case ${SYS_NAME} in \
|
2001-04-04 19:08:51 +01:00
|
|
|
alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
|
2001-03-27 09:43:13 +01:00
|
|
|
${COMPILE_PART1} libafsrpc ${COMPILE_PART2} ;; \
|
|
|
|
*) \
|
|
|
|
echo Not building MT libafsrpc for ${SYS_NAME} ;; \
|
|
|
|
esac
|
2000-11-04 02:13:13 +00:00
|
|
|
|
|
|
|
libafsauthent: ubik auth kauth libafsrpc
|
2001-03-27 09:43:13 +01:00
|
|
|
case ${SYS_NAME} in \
|
2001-04-04 19:08:51 +01:00
|
|
|
alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
|
2001-03-27 09:43:13 +01:00
|
|
|
${COMPILE_PART1} libafsauthent ${COMPILE_PART2} ;; \
|
|
|
|
*) \
|
|
|
|
echo Not building MT libafsrpc for ${SYS_NAME} ;; \
|
|
|
|
esac
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-03-28 00:10:13 +01:00
|
|
|
libadmin_real:
|
2000-11-04 02:13:13 +00:00
|
|
|
${COMPILE_PART1} libadmin ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/adminutil ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/vos ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/client ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/kas ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/pts ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/bos ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/cfg ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/test ${COMPILE_PART2}
|
|
|
|
${COMPILE_PART1} libadmin/samples ${COMPILE_PART2}
|
|
|
|
|
2001-03-27 09:43:13 +01:00
|
|
|
libadmin: libafsauthent bozo
|
|
|
|
case ${SYS_NAME} in \
|
2001-04-04 19:08:51 +01:00
|
|
|
alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
|
2001-03-27 09:43:13 +01:00
|
|
|
$(MAKE) libadmin_real SYS_NAME=$(SYS_NAME) \
|
|
|
|
COMPILE_PART1="$(COMPILE_PART1)" \
|
|
|
|
COMPILE_PART2="$(COMPILE_PART2)" \
|
2001-06-28 07:44:19 +01:00
|
|
|
TOP_SRCDIR=@TOP_SRCDIR@ \
|
2001-03-27 09:43:13 +01:00
|
|
|
SRCDIR=$(SRCDIR) DESTDIR=$(DESTDIR) \
|
|
|
|
DBG_DEFS=$(DBG_DEFS) ;; \
|
|
|
|
*) \
|
|
|
|
echo Not building MT libadmin for ${SYS_NAME} ;; \
|
|
|
|
esac
|
|
|
|
|
2001-07-05 18:38:19 +01:00
|
|
|
finale: project cmd comerr afsd allrcmds butc tbutc @ENABLE_KERNEL_MODULE@ libuafs audit kauth log package \
|
2000-11-04 02:13:13 +00:00
|
|
|
ptserver scout bu_utils ubik uss bozo vfsck volser \
|
|
|
|
venus update xstat afsmonitor dauth tests libafsrpc \
|
|
|
|
libafsauthent libadmin
|
|
|
|
${COMPILE_PART1} finale ${COMPILE_PART2}
|
|
|
|
|
2001-07-12 19:18:53 +01:00
|
|
|
finale_nolibafs: project cmd comerr afsd allrcmds butc tbutc libuafs audit kauth log package \
|
|
|
|
ptserver scout bu_utils ubik uss bozo vfsck volser \
|
|
|
|
venus update xstat afsmonitor dauth tests libafsrpc \
|
|
|
|
libafsauthent libadmin
|
|
|
|
${COMPILE_PART1} finale ${COMPILE_PART2}
|
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
# Use washtool to ensure MakefileProto is current and obj/libafs exists.
|
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
libafs_setup: config export
|
|
|
|
src/config/config src/libafs/MakefileProto.${MKAFS_OSTYPE} src/libafs/Makefile ${SYS_NAME}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-06-28 07:44:19 +01:00
|
|
|
libuafs_setup: config export
|
|
|
|
src/config/config src/libuafs/MakefileProto.${MKAFS_OSTYPE} src/libuafs/Makefile ${SYS_NAME}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-03-27 22:33:17 +01:00
|
|
|
TARGET=finale
|
2000-11-04 02:13:13 +00:00
|
|
|
install:
|
2001-06-28 07:44:19 +01:00
|
|
|
$(MAKE) $(TARGET) "SYS_NAME=${SYS_NAME}" \
|
2000-11-04 02:13:13 +00:00
|
|
|
"COMPILE_PART1=${COMPILE_PART1}" \
|
|
|
|
"COMPILE_PART2=${COMPILE_PART2}" \
|
|
|
|
DESTDIR=`pwd`/${SYS_NAME}/dest/ \
|
2001-06-28 07:44:19 +01:00
|
|
|
TOP_SRCDIR=@TOP_SRCDIR@ \
|
2000-11-04 02:13:13 +00:00
|
|
|
SRCDIR=`pwd`/${SYS_NAME}/dest/ \
|
|
|
|
"DBG_DEFS=${DBG_DEFS}"
|
|
|
|
|
|
|
|
kupdate: updatekdir libafs_setup libuafs_setup
|
|
|
|
|
|
|
|
blibafs:
|
|
|
|
$(MAKE) libafs "WASHTOOL=${WASHTOOL}" "WASHTOOLFLAGS=-argument kinstall" SYS_NAME=${SYS_NAME} "CPUARCH=${CPUARCH}" "MPSP=${MPSP}" "DBG_DEFS=${DBG_DEFS}"
|
|
|
|
|
|
|
|
blibuafs:
|
|
|
|
$(MAKE) libuafs "WASHTOOL=${WASHTOOL}" "WASHTOOLFLAGS=-argument ukinstall" SYS_NAME=${SYS_NAME} "CPUARCH=${CPUARCH}" "MPSP=${MPSP}" "DBG_DEFS=${DBG_DEFS}"
|
|
|
|
|
|
|
|
bwebafs: sys
|
|
|
|
$(MAKE) libuafs "WASHTOOL=${WASHTOOL}" "WASHTOOLFLAGS=-argument webinstall" SYS_NAME=${SYS_NAME} "CPUARCH=${CPUARCH}" "MPSP=${MPSP}" "DBG_DEFS=${DBG_DEFS}"
|
|
|
|
|
|
|
|
clean:
|
2001-06-28 07:44:19 +01:00
|
|
|
$(MAKE) clean2 "COMPILE_PART1=cd src; cd" "COMPILE_CLEAN=; $(MAKE) clean SYS_NAME=${SYS_NAME} DESTDIR=`pwd`/${SYS_NAME}/dest/ TOP_SRCDIR=@TOP_SRCDIR@ SRCDIR=`pwd`/${SYS_NAME}/dest/" SYS_NAME=${SYS_NAME}
|
|
|
|
|
|
|
|
clean2:
|
|
|
|
${COMPILE_PART1} config ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} pinstall ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} procmgmt ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} util ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} audit ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} comerr ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} cmd ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} lwp ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} rxgen ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} rx ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} rxstat ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} fsint ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} export ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} afs ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} des ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} sys ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} rxkad ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} auth ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} ubik ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} ptserver ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} kauth ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} dauth ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libacl ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} dir ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} vol ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} vlserver ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} viced ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} viced ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} tviced ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} volser ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} venus ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} venus/test ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} afsd ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} null ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} gtx ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} fsprobe ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} scout ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} uss ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} bozo ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} vfsck ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} sgistuff ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} tsm41 ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} sia ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} login ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} pam ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} afsweb ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} update ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} log ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} bu_utils ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} usd ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} bubasics ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} butm ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} butc ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} tbutc ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} budb ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} bucoord ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} xstat ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} afsmonitor ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libafsrpc ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libafsauthent ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/adminutil ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/client ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/vos ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/kas ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/pts ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/bos ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/cfg ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/test ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libadmin/samples ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} finale ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} mpp ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} package ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} ntp ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} ftpd43+ ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} inetd ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} rsh ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} rlogind ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} rcp ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libafs ${COMPILE_CLEAN}
|
|
|
|
${COMPILE_PART1} libuafs ${COMPILE_CLEAN}
|
2000-11-04 02:13:13 +00:00
|
|
|
|
2001-07-06 06:45:14 +01:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
/bin/rm -f config.log config.cache config.status Makefile
|
|
|
|
/bin/rm -f src/config/afsconfig.h src/config/Makefile.${SYS_NAME}
|
|
|
|
/bin/rm -f src/libafs/Makefile src/libafs/MakefileProto.${MKAFS_OSTYPE}
|
|
|
|
/bin/rm -f src/libuafs/Makefile src/kauth/Kkauth.cs.c
|
|
|
|
|
2000-11-04 02:13:13 +00:00
|
|
|
links:
|
|
|
|
echo "Remove the obj directory"
|
|
|
|
- /bin/rm -rf @sys/obj/* ;
|
|
|
|
- /bin/rm -rf @sys/dest/* ;
|
|
|
|
- /bin/mkdir @sys/obj ;
|
|
|
|
echo "Create the obj directories"
|
2001-03-05 15:37:46 +00:00
|
|
|
here=`pwd` ; \
|
2000-11-04 02:13:13 +00:00
|
|
|
cd src; \
|
|
|
|
for file in `find [!NW]* -type d -print` ; do \
|
2001-03-05 15:37:46 +00:00
|
|
|
/bin/mkdir $${here}/obj/$${file} ; \
|
2000-11-04 02:13:13 +00:00
|
|
|
done;
|
|
|
|
echo "Create the obj file links"
|
2001-03-05 15:37:46 +00:00
|
|
|
here=`pwd` ; \
|
2000-11-04 02:13:13 +00:00
|
|
|
cd src; \
|
|
|
|
for file in `find [!NW]* -type f -print` ; do \
|
2001-03-05 15:37:46 +00:00
|
|
|
/bin/ln -s `pwd`/$${file} $${here}/obj/$${file} ; \
|
2001-06-28 07:44:19 +01:00
|
|
|
done;
|
2001-04-14 19:45:16 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Below targets are all deprecated, insecure, or obsolte,
|
|
|
|
# see README.OBSOLETE and README.INSECURE for more info
|
|
|
|
#
|
|
|
|
|
|
|
|
mpp: project
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_OBSOLETE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) ${COMPILE_PART1} mpp ${COMPILE_PART2} ;; \
|
|
|
|
*) echo skipping deprecated target: mpp ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
package: project mpp
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_OBSOLETE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) ${COMPILE_PART1} package ${COMPILE_PART2} ;; \
|
|
|
|
*) echo skipping deprecated target: package ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
package.files: package
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_OBSOLETE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) ${DESTDIR}/bin/makepkgfiles afs.dev ;; \
|
|
|
|
*) echo skipping deprecated target: package.files ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
ntp: project volser
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_OBSOLETE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) case ${SYS_NAME} in \
|
|
|
|
sun4x_58 | *linux* | *fbsd* | ppc_darwin* ) echo skipping ntp for ${SYS_NAME} ;; \
|
|
|
|
* ) ${COMPILE_PART1} ntp ${COMPILE_PART2} ;; \
|
|
|
|
esac ;; \
|
|
|
|
*) echo skipping deprecated target: ntp ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
ftpd43+: project kauth rxkad
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_INSECURE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) case ${SYS_NAME} in \
|
|
|
|
rs_aix* | sun4x_55 | *linux*) \
|
|
|
|
${COMPILE_PART1} ftpd43+ ${COMPILE_PART2} ;; \
|
|
|
|
*) echo skip ftpd43+ for ${SYS_NAME} ;; \
|
|
|
|
esac ;; \
|
|
|
|
*) echo skipping deprecated target: ftpd43+ ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
inetd: project kauth rxkad
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_INSECURE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) ${COMPILE_PART1} inetd ${COMPILE_PART2} ;; \
|
|
|
|
*) echo skipping deprecated target: inetd ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
rsh: project inetd
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_INSECURE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) ${COMPILE_PART1} rsh ${COMPILE_PART2} ;; \
|
|
|
|
*) echo skipping deprecated target: rsh ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
rlogind: project rsh ftpd43+ login
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_INSECURE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) case ${SYS_NAME} in \
|
|
|
|
rs_aix*) ${COMPILE_PART1} rlogind ${COMPILE_PART2} ;; \
|
|
|
|
*) echo skipping rlogind for ${SYS_NAME} ;; \
|
|
|
|
esac ;; \
|
|
|
|
*) echo skipping deprecated target: rlogind ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
rcp: project rsh inetd
|
2001-06-03 18:29:52 +01:00
|
|
|
@case ${WITH_INSECURE} in \
|
2001-04-14 19:45:16 +01:00
|
|
|
YES) case ${SYS_NAME} in \
|
|
|
|
sgi_* ) echo skip rcp for ${SYS_NAME} ;; \
|
|
|
|
*) ${COMPILE_PART1} rcp ${COMPILE_PART2} ;; \
|
|
|
|
esac ;; \
|
|
|
|
*) echo skipping deprecated target: rcp ;; \
|
|
|
|
esac
|
|
|
|
|
|
|
|
allrcmds: project rcp rlogind
|
|
|
|
|
|
|
|
|