convert-volparse-to-afsconfig-and-cleanup-20010605
[openafs.git] / src / util / Makefile
index 86eaded..95acedf 100644 (file)
@@ -9,14 +9,13 @@ SHELL = /bin/sh
 COMPONENT=util
 include ../config/Makefile.${SYS_NAME}
 
-CFLAGS = ${OPTMZ} -I$(SRCDIR)include ${XCFLAGS}
+CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I. -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 snprintf.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
@@ -34,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 \
@@ -42,6 +42,12 @@ install0: ${DESTDIR}include/afs/dirpath.h \
 
 install: install0 kinstall ukinstall
 
+install_headers:
+       ${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 \
+               ${DESTDIR}include/afs
+
 kinstall:
        ${INSTALL} vice.h ../libafs/afs
        ${INSTALL} base64.c ../libafs/afs/afs_base64.c
@@ -61,10 +67,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