opr: Add new queue implementation
[openafs.git] / src / util / Makefile.in
index 6d4474f..00f8bad 100644 (file)
@@ -5,50 +5,28 @@
 # License.  For details, see the LICENSE file in the top-level source
 # directory or online at http://www.openafs.org/dl/license10.html
 
-DEST=@DEST@
-TOP_INCDIR=@TOP_INCDIR@
-TOP_LIBDIR=@TOP_LIBDIR@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-libdir=@libdir@
-includedir=@includedir@
-mandir=@mandir@
-sysconfdir=@sysconfdir@
-localstatedir=@localstatedir@
-COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
-RXGEN=${TOP_SRCDIR}/rxgen/rxgen
-TOP_SRCDIR=@TOP_SRCDIR@
-SYS_NAME=@AFS_SYSNAME@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-afsconfdir=@afsconfdir@
-viceetcdir=@viceetcdir@
-afssrvbindir=@afssrvbindir@
-afssrvsbindir=@afssrvsbindir@
-afssrvlibexecdir=@afssrvlibexecdir@
-afsdbdir=@afsdbdir@
-afslogsdir=@afslogsdir@
-afslocaldir=@afslocaldir@
-afsbackupdir=@afsbackupdir@
-afsbosconfigdir=@afsbosconfigdir@
-
-SHELL = /bin/sh
-
-include ../config/Makefile.${SYS_NAME}
-
-CFLAGS=${OPTMZ} -I${TOP_SRCDIR}/config -I. -I${TOP_INCDIR} ${XCFLAGS}
-LDFLAGS = ${OPTMZ} ${XLDFLAGS}
-
-objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.o \
+srcdir=@srcdir@
+include @TOP_OBJDIR@/src/config/Makefile.config
+include @TOP_OBJDIR@/src/config/Makefile.lwp
+
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+HELPER_SPLINT=@HELPER_SPLINT@
+
+
+objects = assert.o base64.o casestrcpy.o config_file.o ktime.o volparse.o \
+        hostparse.o exec.o \
         hputil.o kreltime.o isathing.o get_krbrlm.o uuid.o serverLog.o \
-        dirpath.o fileutil.o netutils.o flipbase64.o \
-        afs_atomlist.o afs_lhash.o snprintf.o ${REGEX_OBJ}
+        dirpath.o fileutil.o netutils.o flipbase64.o fstab.o \
+        afs_atomlist.o afs_lhash.o snprintf.o pthread_glock.o \
+        tabular_output.o ${REGEX_OBJ}
 
-all: ukinstall kinstall \
+includes = \
        ${TOP_INCDIR}/afs/dirpath.h \
        ${TOP_INCDIR}/afs/pthread_nosigs.h \
-       ${TOP_INCDIR}/afs/assert.h \
+       ${TOP_INCDIR}/afs/afs_assert.h \
        ${TOP_INCDIR}/afs/errors.h \
        ${TOP_INCDIR}/afs/vice.h \
        ${TOP_INCDIR}/afs/remote.h \
@@ -57,376 +35,203 @@ all: ukinstall kinstall \
        ${TOP_INCDIR}/afs/netutils.h \
        ${TOP_INCDIR}/afs/packages.h \
        ${TOP_INCDIR}/afs/afsutil.h \
+       ${TOP_INCDIR}/afs/afsutil_prototypes.h \
        ${TOP_INCDIR}/afs/pthread_glock.h \
        ${TOP_INCDIR}/afs/afs_atomlist.h \
        ${TOP_INCDIR}/afs/afs_lhash.h \
-       ${TOP_INCDIR}/potpourri.h \
+       ${TOP_INCDIR}/afs/softsig.h \
+       ${TOP_INCDIR}/afs/work_queue.h \
+       ${TOP_INCDIR}/afs/work_queue_types.h \
+       ${TOP_INCDIR}/afs/thread_pool.h \
+       ${TOP_INCDIR}/afs/thread_pool_types.h \
+       ${TOP_INCDIR}/afs/tabular_output.h \
+       ${TOP_INCDIR}/opr/queue.h
+
+all: ${includes} \
        ${TOP_LIBDIR}/util.a \
        ${TOP_LIBDIR}/libafsutil.a \
        sys
 
-dirpath.h: dirpath.hin Makefile
-       ( sed \
-               -e "s+@afsconfdir+${afsconfdir}+" \
-               -e "s+@viceetcdir+${viceetcdir}+" \
-               -e "s+@afssrvbindir+${afssrvbindir}+" \
-               -e "s+@afssrvsbindir+${afssrvsbindir}+" \
-               -e "s+@afssrvlibexecdir+${afssrvlibexecdir}+" \
-               -e "s+@afsdbdir+${afsdbdir}+" \
-               -e "s+@afslogsdir+${afslogsdir}+" \
-               -e "s+@afslocaldir+${afslocaldir}+" \
-               -e "s+@afsbackupdir+${afsbackupdir}+" \
-               -e "s+@afsbosconfigdir+${afsbosconfigdir}+" \
-               dirpath.hin >dirpath.h.tmp && \
-               mv dirpath.h.tmp dirpath.h )
-
-util.a: ${objects} AFS_component_version_number.o
-       $(RM) -f util.a
-       $(AR) crv util.a ${objects} AFS_component_version_number.o
-       $(RANLIB) util.a
-
-volparse.o: volparse.c
-       ${CC} ${CFLAGS} -c volparse.c
-
-snprintf.o: snprintf.c
-       ${CC} ${CFLAGS} -c snprintf.c
-
-base64.o: base64.c
-       ${CC} ${CFLAGS} -c base64.c
-
-hostparse.o: hostparse.c afsutil.h
-       ${CC} ${CFLAGS} -c hostparse.c
+buildtools: ${TOP_LIBDIR}/libafsutil.a ${TOP_INCDIR}/afs/afsutil.h
+buildtools_clean: clean
 
-ktime.o: ktime.c
-       ${CC} ${CFLAGS} -c ktime.c
+depinstall: ${includes}
 
-kreltime.o: kreltime.c
-       ${CC} ${CFLAGS} -c kreltime.c
-
-get_krbrlm.o: get_krbrlm.c
-       ${CC} ${CFLAGS} -c get_krbrlm.c
-
-uuid.o: uuid.c
-       ${CC} ${CFLAGS} -c uuid.c
-
-sys.o: sys.c ${TOP_INCDIR}/afs/param.h AFS_component_version_number.c
-       ${CC} ${CFLAGS} -c sys.c
-
-sys: sys.o 
-       ${CC} ${LDFLAGS} -o sys sys.o
-
-isathing.o: isathing.c
-       ${CC} ${CFLAGS} -c isathing.c
-
-serverLog.o: serverLog.c
-       ${CC} ${CFLAGS} -c serverLog.c
-
-dirpath.o: dirpath.c dirpath.h
-       ${CC} ${CFLAGS} -c dirpath.c
+${TOP_INCDIR}/afs/dirpath.h: dirpath.h
+       ${INSTALL_DATA} $? $@
 
-fileutil.o: fileutil.c fileutil.h
-       ${CC} ${CFLAGS} -c fileutil.c
+${TOP_INCDIR}/afs/pthread_nosigs.h: ${srcdir}/pthread_nosigs.h
+       ${INSTALL_DATA} $? $@
 
-netutils.o: netutils.c netutils.h
-       ${CC} ${CFLAGS} -c netutils.c
+${TOP_INCDIR}/afs/afs_assert.h: ${srcdir}/afs_assert.h
+       ${INSTALL_DATA} $? $@
 
-afs_atomlist.o: afs_atomlist.c afs_atomlist.h
-       ${CC} ${CFLAGS} -c afs_atomlist.c
+${TOP_INCDIR}/afs/errors.h: ${srcdir}/errors.h
+       ${INSTALL_DATA} $? $@
 
-afs_lhash.o: afs_lhash.c afs_lhash.h afs_atomlist.h
-       ${CC} ${CFLAGS} -c afs_lhash.c
+${TOP_INCDIR}/afs/vice.h: ${srcdir}/vice.h
+       ${INSTALL_DATA} $? $@
 
-#
-# Install targets
-#
-KDIR=../libafs/afs
-UKDIR=../libuafs/afs
+${TOP_INCDIR}/afs/remote.h: ${srcdir}/remote.h
+       ${INSTALL_DATA} $? $@
 
-install: \
-       ${DESTDIR}${includedir}/afs/dirpath.h \
-       ${DESTDIR}${includedir}/afs/pthread_nosigs.h \
-       ${DESTDIR}${includedir}/afs/assert.h \
-       ${DESTDIR}${includedir}/afs/errors.h \
-       ${DESTDIR}${includedir}/afs/vice.h \
-       ${DESTDIR}${includedir}/afs/remote.h \
-       ${DESTDIR}${includedir}/afs/ktime.h \
-       ${DESTDIR}${includedir}/afs/fileutil.h \
-       ${DESTDIR}${includedir}/afs/netutils.h \
-       ${DESTDIR}${includedir}/afs/packages.h \
-       ${DESTDIR}${includedir}/afs/afsutil.h \
-       ${DESTDIR}${includedir}/afs/pthread_glock.h \
-       ${DESTDIR}${includedir}/afs/afs_atomlist.h \
-       ${DESTDIR}${includedir}/afs/afs_lhash.h \
-       ${DESTDIR}${includedir}/potpourri.h \
-       ${DESTDIR}${libdir}/afs/util.a \
-       ${DESTDIR}${libdir}/afs/libafsutil.a \
-       ${DESTDIR}${bindir}/sys
+${TOP_INCDIR}/afs/ktime.h: ${srcdir}/ktime.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/dirpath.h: dirpath.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/fileutil.h: ${srcdir}/fileutil.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/pthread_nosigs.h: pthread_nosigs.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/netutils.h: ${srcdir}/netutils.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/assert.h: assert.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/packages.h: ${srcdir}/packages.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/errors.h: errors.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/afsutil.h: ${srcdir}/afsutil.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/vice.h: vice.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/afsutil_prototypes.h: ${srcdir}/afsutil_prototypes.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/remote.h: remote.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/pthread_glock.h: ${srcdir}/pthread_glock.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/ktime.h: ktime.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/afs_atomlist.h: ${srcdir}/afs_atomlist.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/fileutil.h: fileutil.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/afs_lhash.h: ${srcdir}/afs_lhash.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/netutils.h: netutils.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/softsig.h: ${srcdir}/softsig.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/packages.h: packages.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/work_queue.h: ${srcdir}/work_queue.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/afsutil.h: afsutil.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/work_queue_types.h: ${srcdir}/work_queue_types.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/pthread_glock.h: pthread_glock.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/thread_pool.h: ${srcdir}/thread_pool.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/afs/afs_atomlist.h: afs_atomlist.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/thread_pool_types.h: ${srcdir}/thread_pool_types.h
 
-${TOP_INCDIR}/afs/afs_lhash.h: afs_lhash.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/tabular_output.h: ${srcdir}/tabular_output.h
+       ${INSTALL_DATA} $? $@
 
-${TOP_INCDIR}/potpourri.h: potpourri.h
-       ${INSTALL} $? $@
+${TOP_INCDIR}/potpourri.h: ${srcdir}/potpourri.h
+       ${INSTALL_DATA} $? $@
 
+${TOP_INCDIR}/opr/queue.h: ${srcdir}/queue.h
+       ${INSTALL_DATA} $? $@
 
 ${TOP_LIBDIR}/util.a: util.a
-       ${INSTALL} $? $@
+       ${INSTALL_DATA} $? $@
 
 ${TOP_LIBDIR}/libafsutil.a: util.a
-       ${INSTALL} $? $@
-
-
-${DESTDIR}${includedir}/afs/dirpath.h: dirpath.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/pthread_nosigs.h: pthread_nosigs.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/assert.h: assert.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/errors.h: errors.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/vice.h: vice.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/remote.h: remote.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/ktime.h: ktime.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/fileutil.h: fileutil.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/netutils.h: netutils.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/packages.h: packages.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/afsutil.h: afsutil.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/pthread_glock.h: pthread_glock.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/afs_atomlist.h: afs_atomlist.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/afs_lhash.h: afs_lhash.h
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/potpourri.h: potpourri.h
-       ${INSTALL} $? $@
-
-
-${DESTDIR}${libdir}/afs/util.a: util.a
-       ${INSTALL} $? $@
-
-${DESTDIR}${libdir}/afs/libafsutil.a: util.a
-       ${INSTALL} $? $@
-
-
-${DESTDIR}${bindir}/sys: sys
-       ${INSTALL} $? $@
-
+       ${INSTALL_DATA} $? $@
 
-${DEST}/include/afs/dirpath.h: dirpath.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/pthread_nosigs.h: pthread_nosigs.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/assert.h: assert.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/errors.h: errors.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/vice.h: vice.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/remote.h: remote.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/ktime.h: ktime.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/fileutil.h: fileutil.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/netutils.h: netutils.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/packages.h: packages.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/afsutil.h: afsutil.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/pthread_glock.h: pthread_glock.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/afs_atomlist.h: afs_atomlist.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/afs_lhash.h: afs_lhash.h
-       ${INSTALL} $? $@
-
-${DEST}/include/potpourri.h: potpourri.h
-       ${INSTALL} $? $@
-
-
-${DEST}/lib/afs/util.a: util.a
-       ${INSTALL} $? $@
-
-${DEST}/lib/afs/libafsutil.a: util.a
-       ${INSTALL} $? $@
-
-
-${DEST}/bin/sys: sys
-       ${INSTALL} $? $@
-
-
-kinstall: ${KDIR}/vice.h \
-       ${KDIR}/afs_base64.c \
-       ${KDIR}/afs_uuid.c \
-       ${KDIR}/afs_atomlist.c \
-       ${KDIR}/afs_atomlist.h \
-       ${KDIR}/afs_lhash.c \
-       ${KDIR}/afs_lhash.h
-
-${KDIR}/vice.h: vice.h
-       ${INSTALL} $? $@
-
-${KDIR}/afs_base64.c: base64.c
-       ${INSTALL} $? $@
-
-${KDIR}/afs_uuid.c: uuid.c
-       ${INSTALL} $? $@
-
-${KDIR}/afs_atomlist.c: afs_atomlist.c
-       ${INSTALL} $? $@
-
-${KDIR}/afs_atomlist.h: afs_atomlist.h
-       ${INSTALL} $? $@
-
-${KDIR}/afs_lhash.c: afs_lhash.c
-       ${INSTALL} $? $@
-
-${KDIR}/afs_lhash.h: afs_lhash.h
-       ${INSTALL} $? $@
-
-ukinstall: \
-       ${UKDIR}/afs_uuid.c \
-       ${UKDIR}/afs_atomlist.c \
-       ${UKDIR}/afs_atomlist.h \
-       ${UKDIR}/afs_lhash.c \
-       ${UKDIR}/afs_lhash.h \
-       ${UKDIR}/pthread_glock.h \
-       ${UKDIR}/vice.h \
-       ${UKDIR}/errors.h \
-       ${UKDIR}/afsutil.h \
-       ${UKDIR}/dirpath.h \
-       ${UKDIR}/dirpath.c \
-       ${UKDIR}/fileutil.h \
-       ${UKDIR}/fileutil.c \
-       ${UKDIR}/netutils.h \
-       ${UKDIR}/netutils.c \
-       ${UKDIR}/casestrcpy.c \
-       ${UKDIR}/hostparse.c 
-
-${UKDIR}/errors.h: errors.h
-       ${INSTALL} $? $@
-
-${UKDIR}/afsutil.h: afsutil.h
-       ${INSTALL} $? $@
-
-${UKDIR}/dirpath.h: dirpath.h
-       ${INSTALL} $? $@
-
-${UKDIR}/dirpath.c: dirpath.c
-       ${INSTALL} $? $@
-
-${UKDIR}/fileutil.h: fileutil.h
-       ${INSTALL} $? $@
-
-${UKDIR}/fileutil.c: fileutil.c
-       ${INSTALL} $? $@
-
-${UKDIR}/netutils.h: netutils.h
-       ${INSTALL} $? $@
-
-${UKDIR}/netutils.c: netutils.c
-       ${INSTALL} $? $@
-
-${UKDIR}/casestrcpy.c: casestrcpy.c
-       ${INSTALL} $? $@
+# Use " as the sed boundary character because we lose anyway if that occurs
+# in path names.
+dirpath.h: ${srcdir}/dirpath.hin Makefile
+       ( sed \
+               -e 's"@afsconfdir"${afsconfdir}"' \
+               -e 's"@viceetcdir"${viceetcdir}"' \
+               -e 's"@afssrvbindir"${afssrvbindir}"' \
+               -e 's"@afssrvsbindir"${afssrvsbindir}"' \
+               -e 's"@afssrvlibexecdir"${afssrvlibexecdir}"' \
+               -e 's"@afsdbdir"${afsdbdir}"' \
+               -e 's"@afslogsdir"${afslogsdir}"' \
+               -e 's"@afslocaldir"${afslocaldir}"' \
+               -e 's"@afsbackupdir"${afsbackupdir}"' \
+               -e 's"@afsbosconfigdir"${afsbosconfigdir}"' \
+               -e 's"@afsdatadir"${afsdatadir}"' \
+               ${srcdir}/dirpath.hin >dirpath.h.tmp && \
+               if cmp dirpath.h.tmp dirpath.h >/dev/null ; then : ; else \
+               mv dirpath.h.tmp dirpath.h ; fi)
+       rm -f dirpath.h.tmp
 
-${UKDIR}/hostparse.c: hostparse.c
-       ${INSTALL} $? $@
+util.a: ${objects} AFS_component_version_number.o
+       $(RM) -f util.a
+       $(AR) crv util.a ${objects} AFS_component_version_number.o
+       $(RANLIB) util.a
 
-${UKDIR}/pthread_glock.h: pthread_glock.h
-       ${INSTALL} $? $@
+pthread_glock.o: ${srcdir}/pthread_glock.c ${includes}
+       ${MT_CC} $(COMMON_CFLAGS) ${MT_CFLAGS} -c ${srcdir}/pthread_glock.c
 
-${UKDIR}/vice.h: vice.h
-       ${INSTALL} $? $@
+${objects}: ${includes}
 
-${UKDIR}/afs_uuid.c: uuid.c
-       ${INSTALL} $? $@
+config_file.o: ${TOP_SRCDIR}/external/heimdal/krb5/config_file.c krb5_locl.h
+       $(AFS_CCRULE) -c ${TOP_SRCDIR}/external/heimdal/krb5/config_file.c 
 
-${UKDIR}/afs_atomlist.c: afs_atomlist.c
-       ${INSTALL} $? $@
+sys.o: sys.c AFS_component_version_number.c ${includes}
 
-${UKDIR}/afs_atomlist.h: afs_atomlist.h
-       ${INSTALL} $? $@
+sys: sys.o 
+       $(AFS_LDRULE) sys.o
 
-${UKDIR}/afs_lhash.c: afs_lhash.c
-       ${INSTALL} $? $@
+#
+# Install targets
+#
+KDIR=../libafs/afs
+UKDIR=../libuafs/afs
 
-${UKDIR}/afs_lhash.h: afs_lhash.h
-       ${INSTALL} $? $@
+install: dirpath.h util.a sys
+       ${INSTALL} -d ${DESTDIR}${includedir}/afs
+       ${INSTALL} -d ${DESTDIR}${libdir}/afs
+       ${INSTALL} -d ${DESTDIR}${bindir}
+       ${INSTALL_DATA} dirpath.h ${DESTDIR}${includedir}/afs/dirpath.h
+       ${INSTALL_DATA} ${srcdir}/pthread_nosigs.h ${DESTDIR}${includedir}/afs/pthread_nosigs.h
+       ${INSTALL_DATA} ${srcdir}/afs_assert.h ${DESTDIR}${includedir}/afs/afs_assert.h
+       ${INSTALL_DATA} ${srcdir}/errors.h ${DESTDIR}${includedir}/afs/errors.h
+       ${INSTALL_DATA} ${srcdir}/vice.h ${DESTDIR}${includedir}/afs/vice.h
+       ${INSTALL_DATA} ${srcdir}/remote.h ${DESTDIR}${includedir}/afs/remote.h
+       ${INSTALL_DATA} ${srcdir}/ktime.h ${DESTDIR}${includedir}/afs/ktime.h
+       ${INSTALL_DATA} ${srcdir}/fileutil.h ${DESTDIR}${includedir}/afs/fileutil.h
+       ${INSTALL_DATA} ${srcdir}/netutils.h ${DESTDIR}${includedir}/afs/netutils.h
+       ${INSTALL_DATA} ${srcdir}/packages.h ${DESTDIR}${includedir}/afs/packages.h
+       ${INSTALL_DATA} ${srcdir}/afsutil.h ${DESTDIR}${includedir}/afs/afsutil.h
+       ${INSTALL_DATA} ${srcdir}/afsutil_prototypes.h ${DESTDIR}${includedir}/afs/afsutil_prototypes.h
+       ${INSTALL_DATA} ${srcdir}/pthread_glock.h ${DESTDIR}${includedir}/afs/pthread_glock.h
+       ${INSTALL_DATA} ${srcdir}/afs_atomlist.h ${DESTDIR}${includedir}/afs/afs_atomlist.h
+       ${INSTALL_DATA} ${srcdir}/afs_lhash.h ${DESTDIR}${includedir}/afs/afs_lhash.h
+       ${INSTALL_DATA} ${srcdir}/softsig.h ${DESTDIR}${includedir}/afs/softsig.h
+       ${INSTALL_DATA} ${srcdir}/work_queue.h ${DESTDIR}${includedir}/afs/work_queue.h
+       ${INSTALL_DATA} ${srcdir}/work_queue_types.h ${DESTDIR}${includedir}/afs/work_queue_types.h
+       ${INSTALL_DATA} ${srcdir}/thread_pool.h ${DESTDIR}${includedir}/afs/thread_pool.h
+       ${INSTALL_DATA} ${srcdir}/thread_pool_types.h ${DESTDIR}${includedir}/afs/thread_pool_types.h
+       ${INSTALL_DATA} ${srcdir}/tabular_output.h ${DESTDIR}${includedir}/afs/tabular_output.h
+       ${INSTALL_DATA} util.a ${DESTDIR}${libdir}/afs/util.a
+       ${INSTALL_DATA} util.a ${DESTDIR}${libdir}/afs/libafsutil.a
+       ${INSTALL_PROGRAM} sys ${DESTDIR}${bindir}/sys
+
+dest: dirpath.h util.a sys
+       ${INSTALL} -d ${DEST}/include/afs
+       ${INSTALL} -d ${DEST}/lib/afs
+       ${INSTALL} -d ${DEST}/bin
+       ${INSTALL_DATA} dirpath.h ${DEST}/include/afs/dirpath.h
+       ${INSTALL_DATA} ${srcdir}/pthread_nosigs.h ${DEST}/include/afs/pthread_nosigs.h
+       ${INSTALL_DATA} ${srcdir}/afs_assert.h ${DEST}/include/afs/afs_assert.h
+       ${INSTALL_DATA} ${srcdir}/errors.h ${DEST}/include/afs/errors.h
+       ${INSTALL_DATA} ${srcdir}/vice.h ${DEST}/include/afs/vice.h
+       ${INSTALL_DATA} ${srcdir}/remote.h ${DEST}/include/afs/remote.h
+       ${INSTALL_DATA} ${srcdir}/ktime.h ${DEST}/include/afs/ktime.h
+       ${INSTALL_DATA} ${srcdir}/fileutil.h ${DEST}/include/afs/fileutil.h
+       ${INSTALL_DATA} ${srcdir}/netutils.h ${DEST}/include/afs/netutils.h
+       ${INSTALL_DATA} ${srcdir}/packages.h ${DEST}/include/afs/packages.h
+       ${INSTALL_DATA} ${srcdir}/afsutil.h ${DEST}/include/afs/afsutil.h
+       ${INSTALL_DATA} ${srcdir}/afsutil_prototypes.h ${DEST}/include/afs/afsutil_prototypes.h
+       ${INSTALL_DATA} ${srcdir}/pthread_glock.h ${DEST}/include/afs/pthread_glock.h
+       ${INSTALL_DATA} ${srcdir}/afs_atomlist.h ${DEST}/include/afs/afs_atomlist.h
+       ${INSTALL_DATA} ${srcdir}/afs_lhash.h ${DEST}/include/afs/afs_lhash.h
+       ${INSTALL_DATA} ${srcdir}/softsig.h ${DEST}/include/afs/softsig.h
+       ${INSTALL_DATA} ${srcdir}/work_queue.h ${DEST}/include/afs/work_queue.h
+       ${INSTALL_DATA} ${srcdir}/work_queue_types.h ${DEST}/include/afs/work_queue_types.h
+       ${INSTALL_DATA} ${srcdir}/thread_pool.h ${DEST}/include/afs/thread_pool.h
+       ${INSTALL_DATA} ${srcdir}/thread_pool_types.h ${DEST}/include/afs/thread_pool_types.h
+       ${INSTALL_DATA} ${srcdir}/tabular_output.h ${DEST}/include/afs/tabular_output.h
+       ${INSTALL_DATA} util.a ${DEST}/lib/afs/util.a
+       ${INSTALL_DATA} util.a ${DEST}/lib/afs/libafsutil.a
+       ${INSTALL_PROGRAM} sys ${DEST}/bin/sys
 
 #
 # Misc targets
@@ -441,23 +246,9 @@ test:
 
 include ../config/Makefile.version
 
-dest: \
-       ${DEST}/include/afs/dirpath.h \
-       ${DEST}/include/afs/pthread_nosigs.h \
-       ${DEST}/include/afs/assert.h \
-       ${DEST}/include/afs/errors.h \
-       ${DEST}/include/afs/vice.h \
-       ${DEST}/include/afs/remote.h \
-       ${DEST}/include/afs/ktime.h \
-       ${DEST}/include/afs/fileutil.h \
-       ${DEST}/include/afs/netutils.h \
-       ${DEST}/include/afs/packages.h \
-       ${DEST}/include/afs/afsutil.h \
-       ${DEST}/include/afs/pthread_glock.h \
-       ${DEST}/include/afs/afs_atomlist.h \
-       ${DEST}/include/afs/afs_lhash.h \
-       ${DEST}/include/potpourri.h \
-       ${DEST}/lib/afs/util.a \
-       ${DEST}/lib/afs/libafsutil.a \
-       ${DEST}/bin/sys
-
+check-splint:
+       sh $(HELPER_SPLINT) $(CFLAGS) \
+           assert.c base64.c casestrcpy.c ktime.c volparse.c hostparse.c \
+           hputil.c kreltime.c isathing.c get_krbrlm.c uuid.c serverLog.c \
+           dirpath.c fileutil.c netutils.c flipbase64.c \
+           afs_atomlist.c afs_lhash.c snprintf.c fstab.c