makefiles-attempt-to-support-gmake-j-20011023
[openafs.git] / Makefile.in
index e7ff462..30caac7 100644 (file)
@@ -115,6 +115,11 @@ dest_dirs: force
        mkdir -p ${DEST}/root.server/etc
        mkdir -p ${DEST}/root.server/usr/afs/bin
 
+# This is needed to get these dirs built prior to stuff being installed into them
+build_dirs_rx:
+       mkdir -p ${TOP_OBJDIR}/src/libafs/rx
+       mkdir -p ${TOP_OBJDIR}/src/libuafs/rx
+       
 project: cmd comerr 
 
 config: 
@@ -137,7 +142,7 @@ comerr: util
 
 cmd: comerr
        @case ${SYS_NAME} in \
-       sgi_6* | sun4x_57 | sun4x_58 | hp_ux11* | sparc64_linux* | alpha_linux* ) \
+       sgi_6* | sun*_57 | sun*_58 | hp_ux11* | sparc64_linux* | alpha_linux* ) \
                ${COMPILE_PART1} cmd ${COMPILE_PART2}64 ;; \
        *) \
                ${COMPILE_PART1} cmd ${COMPILE_PART2} ;; \
@@ -149,27 +154,19 @@ lwp: project util
 rxgen: pinstall
        ${COMPILE_PART1} rxgen ${COMPILE_PART2}
 
-rxobj:
-
-kernrx: 
-       ${COMPILE_PART1} rx ${COMPILE_PART2}
-
-rx: project lwp rxgen
+rx: project lwp rxgen build_dirs_rx
        ${COMPILE_PART1} rx ${COMPILE_PART2}
 
 rxstat: rx
        ${COMPILE_PART1} rxstat ${COMPILE_PART2}
 
-rxincls: rxobj
-       ${COMPILE_PART1} rx ${COMPILE_PART2}
-
 rxtests: rxdebug
-rxdebug: rx
+rxdebug: rx sys
        ${COMPILE_PART1} rxdebug ${COMPILE_PART2}
 
 fsint: project kfsint
 
-kfsint: lwp rxgen rxincls
+kfsint: lwp rxgen rx
        ${COMPILE_PART1} fsint ${COMPILE_PART2}
 
 export2: project fsint
@@ -185,18 +182,15 @@ export: fsint
 afs: export
        ${COMPILE_PART1} afs ${COMPILE_PART2}
 
-des: config
+des: config pinstall
        ${COMPILE_PART1} des ${COMPILE_PART2} 
 
 sys: project afs des rx rxstat fsint
        ${COMPILE_PART1} sys ${COMPILE_PART2}
 
-rxkad: project des
+rxkad: project des rx
        ${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}
 
@@ -211,15 +205,12 @@ ptserver: project ubik cmd comerr auth audit
 kauth: project ubik cmd auth comerr ptserver audit libacl
        ${COMPILE_PART1} kauth ${COMPILE_PART2}
 
-dauth: project ubik cmd auth comerr
+dauth: project ubik cmd auth kauth comerr
        ${COMPILE_PART1} dauth ${COMPILE_PART2}
 
 libacl: project ptserver
        ${COMPILE_PART1} libacl ${COMPILE_PART2}
 
-kerndir: 
-       ${COMPILE_PART1} dir ${COMPILE_PART2}
-
 dir: project libacl
        ${COMPILE_PART1} dir ${COMPILE_PART2}
 
@@ -244,7 +235,7 @@ viced: project vlserver audit
 
 tviced: project viced vlserver libafsrpc libafsauthent
        case ${SYS_NAME} in \
-       alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
+       alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux110) \
                ${COMPILE_PART1} tviced ${COMPILE_PART2} ;; \
        *) \
                echo Not building MT viced for ${SYS_NAME} ;; \
@@ -266,22 +257,22 @@ null: project
 ${TOP_LIBDIR}/libtermlib.a: 
        $(RM) -f ${TOP_LIBDIR}/libtermlib.a
        case ${SYS_NAME} in \
-       rs_aix* | sun4x_5? | sgi_6? | *linux* | ppc_darwin* | *fbsd*) \
+       rs_aix* | sun4x_* | sunx86_* | sgi_6? | *linux* | ppc_darwin* | *fbsd*) \
                ln -s libnull.a ${TOP_LIBDIR}/libtermlib.a ;; \
        *) \
                ln -s /usr/lib/libtermlib.a ${TOP_LIBDIR}/libtermlib.a ;; \
        esac
 
-gtx: project null auth ${TOP_LIBDIR}/libtermlib.a
+gtx: project null auth kauth ${TOP_LIBDIR}/libtermlib.a
        ${COMPILE_PART1} gtx ${COMPILE_PART2}
 
-fsprobe: project util fsint
+fsprobe: project util fsint volser
        ${COMPILE_PART1} fsprobe ${COMPILE_PART2}
 
 scout: project gtx fsprobe
        ${COMPILE_PART1} scout ${COMPILE_PART2}
 
-uss: des kauth project rx vlserver vol
+uss: des kauth project rx vlserver vol volser
        ${COMPILE_PART1} uss ${COMPILE_PART2}
 
 bozo: project ntp audit
@@ -315,7 +306,7 @@ login: project kauth rxkad
                ${COMPILE_PART1} login ${COMPILE_PART2} ;; \
        parisc_linux24) \
                echo Skipping pam/login for parisc_linux24 ;; \
-       sun4x_* | hp_ux11* | *linux* | *fbsd* ) \
+       sun4x_* | sunx86_* | hp_ux11* | *linux* | *fbsd* ) \
                ${COMPILE_PART1} pam ${COMPILE_PART2} ;; \
        ppc_darwin* | *_obsd* ) \
                echo Skipping login for ${SYS_NAME} ;; \
@@ -352,7 +343,7 @@ UKERNELDIR= \
   rxstat
 
 
-libafs: libafs_setup ${KERNELDIR}
+libafs: lwp libafs_setup ${KERNELDIR}
        ${COMPILE_PART1} libafs ${COMPILE_PART2}
 
 libafs_tree: libafs_setup ${KERNELDIR}
@@ -380,7 +371,7 @@ libafs_tree: libafs_setup ${KERNELDIR}
                ${INSTALL} -c src/afs/LINUX/osi_vfs.hin libafs_tree/afs ;; \
        esac
 
-libuafs: libuafs_setup ${UKERNELDIR}
+libuafs: lwp libuafs_setup ${UKERNELDIR}
        set -x; \
        case ${SYS_NAME} in \
        hp_ux102* | *_obsd* ) \
@@ -398,36 +389,36 @@ update: project auth
 log: project auth 
        ${COMPILE_PART1} log ${COMPILE_PART2}
 
-bu_utils: project
+bu_utils: project usd
        ${COMPILE_PART1} bu_utils ${COMPILE_PART2}
 
 usd: project
        ${COMPILE_PART1} usd ${COMPILE_PART2}
 
-bubasics: project comerr
+bubasics: project comerr rx
        ${COMPILE_PART1} bubasics ${COMPILE_PART2}
 
-butm: project bubasics usd
+butm: project bubasics usd uss
        ${COMPILE_PART1} butm ${COMPILE_PART2}
 
-butc: project bubasics butm budb bucoord cmd
+butc: project bubasics butm budb bucoord cmd rxgen rx
        ${COMPILE_PART1} butc ${COMPILE_PART2}
 
 tbutc: project bubasics butm budb bucoord cmd butc
        case ${SYS_NAME} in \
-       alpha_dux*|sgi_*|sun4x_*|rs_aix4*|*linux*|hp_ux110) \
+       alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix4*|*linux*|hp_ux110) \
                ${COMPILE_PART1} tbutc ${COMPILE_PART2} ;; \
        *) \
                echo Not building MT butc for ${SYS_NAME} ;; \
        esac
 
-budb: project bubasics
+budb: project bubasics uss
        ${COMPILE_PART1} budb ${COMPILE_PART2}
 
 bucoord: project bubasics budb volser
        ${COMPILE_PART1} bucoord ${COMPILE_PART2}
 
-xstat: project
+xstat: project fsint viced
        ${COMPILE_PART1} xstat ${COMPILE_PART2}
 
 afsmonitor: project gtx xstat
@@ -438,7 +429,7 @@ tests: rxtests ubiktests
 # pthread based user space RX library
 libafsrpc: rx rxkad des
        case ${SYS_NAME} in \
-       alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
+       alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux110) \
        ${COMPILE_PART1} libafsrpc ${COMPILE_PART2} ;; \
        *) \
                echo Not building MT libafsrpc for ${SYS_NAME} ;; \
@@ -446,7 +437,7 @@ libafsrpc: rx rxkad des
 
 libafsauthent: ubik auth kauth libafsrpc
        case ${SYS_NAME} in \
-       alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
+       alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux110) \
        ${COMPILE_PART1} libafsauthent ${COMPILE_PART2} ;; \
        *) \
                echo Not building MT libafsrpc for ${SYS_NAME} ;; \
@@ -466,7 +457,7 @@ libadmin_real:
 
 libadmin: libafsauthent bozo
        case ${SYS_NAME} in \
-       alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
+       alpha_dux*|sgi_*|sun4x_*|sunx86_*|rs_aix*|*linux*|hp_ux110) \
                        $(MAKE) libadmin_real ;; \
        *) \
                echo Not building MT libadmin for ${SYS_NAME} ;; \
@@ -748,7 +739,7 @@ package.files: package
 ntp: project volser
        @case ${WITH_OBSOLETE} in \
        YES)    case ${SYS_NAME} in \
-               sun4x_58 | *linux* | *fbsd* | ppc_darwin* ) echo skipping ntp for ${SYS_NAME} ;; \
+               sun4x_58 | sunx86_58 | *linux* | *fbsd* | ppc_darwin* ) echo skipping ntp for ${SYS_NAME} ;; \
                * ) ${COMPILE_PART1} ntp ${COMPILE_PART2} ;; \
                esac ;; \
        *)      echo skipping deprecated target: ntp ;; \