install-util-archive-also-as-libafsutil-20010327
[openafs.git] / src / util / Makefile
index 7cde3d9..cb021f4 100644 (file)
@@ -1,3 +1,9 @@
+# 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
 
 SHELL = /bin/sh
 COMPONENT=util
@@ -5,12 +11,11 @@ include ../config/Makefile.${SYS_NAME}
 
 CFLAGS = ${OPTMZ} -I$(SRCDIR)include ${XCFLAGS}
 LDFLAGS = ${OPTMZ} ${XLDFLAGS}
-INSTALL = ${SRCDIR}bin/install
 
 objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.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
+        afs_atomlist.o afs_lhash.o snprintf.o ${REGEX_OBJ}
 
 headers = assert.h potpourri.h itc.h errors.h afsutil.h pthread_glock.h \
          dirpath.h afs_atomlist.h afs_lhash.h
@@ -28,6 +33,7 @@ install0: ${DESTDIR}include/afs/dirpath.h \
        ${DESTDIR}include/afs/pthread_nosigs.h \
        ${objects} util.a ${DESTDIR}bin/sys ${someheaders} doc 
        ${INSTALL} util.a ${DESTDIR}lib/afs
+       ${INSTALL} util.a ${DESTDIR}lib/afs/libafsutil.a
        ${INSTALL} assert.h errors.h vice.h remote.h ktime.h fileutil.h \
                netutils.h packages.h afsutil.h pthread_glock.h \
                afs_atomlist.h afs_lhash.h \
@@ -55,10 +61,10 @@ ukinstall webinstall: install0
 
 ${DESTDIR}include/afs/dirpath.h: dirpath.h
        ${INSTALL} dirpath.h  ${DESTDIR}include/afs
-       
+
 ${DESTDIR}include/afs/pthread_nosigs.h: pthread_nosigs.h
        ${INSTALL} pthread_nosigs.h  ${DESTDIR}include/afs
-       
+
 doc:
        echo no documents in this directory
 
@@ -70,6 +76,9 @@ util.a: ${objects} AFS_component_version_number.o
 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