windows-installer-updates-20010823
[openafs.git] / Makefile.in
index 9b33477..19b8f48 100644 (file)
@@ -6,8 +6,9 @@
 # directory or online at http://www.openafs.org/dl/license10.html
 
 SHELL=/bin/sh
-DESTDIR=dest/
-SRCDIR=${DESTDIR}
+DESTDIR=@DESTDIR@
+SRCDIR=@SRCDIR@
+TOP_SRCDIR=@TOP_SRCDIR@
 INSTALL=${SRCDIR}bin/install
 
 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
@@ -30,19 +31,29 @@ WITH_INSECURE=@WITH_INSECURE@
 
 ENABLE_KERNEL_MODULE=@ENABLE_KERNEL_MODULE@
 
-# To compile AFS from scratch in the src tree run "make SYS_NAME=<type>".
+# To compile AFS from scratch in the src tree run "make".
 #   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
+# To compile for the kernel type "make blibafs".  This assumes install, 
+#   rxgen, compile_et and others already exist and runs it with
 #   "-argument kinstall".
 
-all:
+COMPILE_PART1=cd src; cd
+COMPILE_PART2=; $(MAKE) install
+COMPILE_PART3=; $(MAKE) test
+COMPILE_CLEAN=; $(MAKE) clean
+
+all: force
+       set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
+       $(MAKE) install
+
+all_nolibafs:
        set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
-       $(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}
+       $(MAKE) install TARGET=finale_nolibafs
+
+only_libafs:
+       set ${SYS_NAME}/dest; $(MKDIR_IF_NEEDED)
+       $(MAKE) install TARGET=libafs
 
 project: cmd comerr 
 
@@ -367,12 +378,7 @@ libadmin_real:
 libadmin: libafsauthent bozo
        case ${SYS_NAME} in \
        alpha_dux*|sgi_*|sun4x_*|rs_aix*|*linux*|hp_ux110) \
-                       $(MAKE) libadmin_real SYS_NAME=$(SYS_NAME) \
-                       COMPILE_PART1="$(COMPILE_PART1)" \
-                       COMPILE_PART2="$(COMPILE_PART2)" \
-                       TOP_SRCDIR=@TOP_SRCDIR@ \
-                       SRCDIR=$(SRCDIR) DESTDIR=$(DESTDIR) \
-                       DBG_DEFS=$(DBG_DEFS) ;; \
+                       $(MAKE) libadmin_real ;; \
        *) \
                echo Not building MT libadmin for ${SYS_NAME} ;; \
        esac
@@ -383,6 +389,12 @@ finale: project cmd comerr afsd allrcmds butc tbutc @ENABLE_KERNEL_MODULE@ libua
        libafsauthent libadmin
        ${COMPILE_PART1} finale ${COMPILE_PART2}
 
+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}
+
 # Use washtool to ensure MakefileProto is current and obj/libafs exists.
 
 libafs_setup: config export
@@ -391,137 +403,118 @@ libafs_setup: config export
 libuafs_setup: config export
        src/config/config src/libuafs/MakefileProto.${MKAFS_OSTYPE} src/libuafs/Makefile ${SYS_NAME}
 
+force:
+
 TARGET=finale
-install:
-       $(MAKE) $(TARGET) "SYS_NAME=${SYS_NAME}" \
-               "COMPILE_PART1=${COMPILE_PART1}" \
-               "COMPILE_PART2=${COMPILE_PART2}" \
-                DESTDIR=`pwd`/${SYS_NAME}/dest/ \
-                TOP_SRCDIR=@TOP_SRCDIR@ \
-                SRCDIR=`pwd`/${SYS_NAME}/dest/ \
-                "DBG_DEFS=${DBG_DEFS}"
+install: force
+       $(MAKE) $(TARGET)
 
 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}"
+       $(MAKE) libafs
 
 blibuafs:
-       $(MAKE) libuafs "WASHTOOL=${WASHTOOL}" "WASHTOOLFLAGS=-argument ukinstall" SYS_NAME=${SYS_NAME} "CPUARCH=${CPUARCH}" "MPSP=${MPSP}" "DBG_DEFS=${DBG_DEFS}"
+       $(MAKE) libuafs
 
 bwebafs: sys
-       $(MAKE) libuafs "WASHTOOL=${WASHTOOL}" "WASHTOOLFLAGS=-argument webinstall" SYS_NAME=${SYS_NAME} "CPUARCH=${CPUARCH}" "MPSP=${MPSP}" "DBG_DEFS=${DBG_DEFS}"
+       $(MAKE) libuafs
 
 clean:
-       $(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} 
+       $(MAKE) clean2
 
 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}
+       -${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}
 
  
 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
-
-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"
-       here=`pwd` ; \
-       cd src; \
-       for file in `find [!NW]* -type d -print` ; do \
-               /bin/mkdir $${here}/obj/$${file} ; \
-       done;
-       echo "Create the obj file links"
-       here=`pwd` ; \
-       cd src; \
-       for file in `find [!NW]* -type f -print` ; do \
-               /bin/ln -s `pwd`/$${file} $${here}/obj/$${file} ; \
-       done;
+       /bin/rm -f src/libuafs/Makefile afs.ppc_darwin.plist src/pam/Makefile
+
+pristine: distclean
+       /bin/rm -f src/config/afsconfig.h.in configure aclocal.m4
 
 #
 # Below targets are all deprecated, insecure, or obsolte,