aix-dest-make-audit-object-dir-20090609
[openafs.git] / src / audit / Makefile.in
index aeebffc..89da442 100644 (file)
 # # supported (if not supported, don't show it).
 # ######################################################################
 
-DEST=@DEST@
-TOP_INCDIR=@TOP_INCDIR@
-TOP_LIBDIR=@TOP_LIBDIR@
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-bindir=@bindir@
-sbindir=@sbindir@
-libexecdir=@libexecdir@
-libdir=@libdir@
-includedir=@includedir@
-mandir=@mandir@
-afssrvbindir=@afssrvbindir@
-afssrvsbindir=@afssrvsbindir@
-afssrvlibexecdir=@afssrvlibexecdir@
-COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
-RXGEN=${TOP_SRCDIR}/rxgen/rxgen
-TOP_SRCDIR=@TOP_SRCDIR@
-SYS_NAME=@AFS_SYSNAME@
+srcdir=@srcdir@
+include @TOP_OBJDIR@/src/config/Makefile.config
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
-SHELL = /bin/sh
+CFLAGS=-I. -I${srcdir} ${OPTMZ} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS} ${ARCHFLAGS}
 
-include ../config/Makefile.${SYS_NAME}
+all: ${TOP_LIBDIR}/libaudit.a ${TOP_INCDIR}/afs/audit.h
 
-UKERNELDIR = ../libuafs/
-
-CFLAGS=${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
-
-all: ukinstall ${TOP_LIBDIR}/libaudit.a ${TOP_INCDIR}/afs/audit.h
-
-# XXX-INST: where to install the AIX audit files?
-install:  ${DESTDIR}${libdir}/afs/libaudit.a ${DESTDIR}${includedir}/afs/audit.h
-
-ukinstall: ${UKERNELDIR}/afs ${UKERNELDIR}/afs/audit.h
-
-${UKERNELDIR}/afs:
-       mkdir -p ${UKERNELDIR}/afs
-
-${UKERNELDIR}/afs/audit.h: audit.h
-       ${INSTALL} $? $@
-
-${DEST}/include/afs/audit.h: audit.h
-       ${INSTALL} $? $@
+${TOP_LIBDIR}/libaudit.a: libaudit.a
+       ${INSTALL_DATA} $? $@
 
-${DEST}/lib/afs/libaudit.a: libaudit.a
-       ${INSTALL} $? $@
+${TOP_INCDIR}/afs/audit.h: audit.h
+       ${INSTALL_DATA} $? $@
 
 libaudit.a: audit.o AFS_component_version_number.o
        $(RM) -f libaudit.a
@@ -64,31 +35,32 @@ libaudit.a: audit.o AFS_component_version_number.o
        $(RANLIB) libaudit.a
 
 audit.o: audit.c audit.h 
-       ${CC} ${CFLAGS} -c audit.c
-
-clean:
-       $(RM) -f *.a *.o core AFS_component_version_number.c
+       ${CC} ${CFLAGS} -c ${srcdir}/audit.c
 
-include ../config/Makefile.version
-${DESTDIR}${libdir}/afs/libaudit.a: libaudit.a
-       ${INSTALL} $? $@
-
-${TOP_LIBDIR}/libaudit.a: libaudit.a
-       ${INSTALL} $? $@
-
-${DESTDIR}${includedir}/afs/audit.h: audit.h
-       ${INSTALL} $? $@
-
-${TOP_INCDIR}/afs/audit.h: audit.h
-       ${INSTALL} $? $@
-
-dest:  ${DEST}/lib/afs/libaudit.a ${DEST}/include/afs/audit.h
+# XXX-INST: where to install the AIX audit files?
+install: audit.h libaudit.a
+       ${INSTALL} -d ${DESTDIR}${libdir}/afs
+       ${INSTALL} -d ${DESTDIR}${includedir}/afs
+       ${INSTALL_DATA} libaudit.a ${DESTDIR}${libdir}/afs/libaudit.a
+       ${INSTALL_DATA} audit.h ${DESTDIR}${includedir}/afs/audit.h
+
+dest: libaudit.a audit.h
+       ${INSTALL} -d ${DEST}/lib/afs
+       ${INSTALL} -d ${DEST}/include/afs
+       ${INSTALL_DATA} libaudit.a ${DEST}/lib/afs/libaudit.a
+       ${INSTALL_DATA} audit.h ${DEST}/include/afs/audit.h
        case ${SYS_NAME} in \
        rs_aix*) \
-          ${INSTALL} Audit              ${DEST}/root.server/usr/afs/local ;  \
-          ${INSTALL} objects.aix.sample ${DEST}/root.server/usr/afs/local/audit/objects.sample ;  \
-          ${INSTALL} events.aix.sample  ${DEST}/root.server/usr/afs/local/audit/events.sample  ;  \
-          ${INSTALL} config.aix.sample  ${DEST}/root.server/usr/afs/local/audit/config.sample  ;; \
+          ${INSTALL} -d ${DEST}/root.server/usr/afs/local ; \
+          ${INSTALL} -d ${DEST}/root.server/usr/afs/local/audit ; \
+          ${INSTALL_DATA} ${srcdir}/Audit              ${DEST}/root.server/usr/afs/local/Audit ;  \
+          ${INSTALL_DATA} ${srcdir}/objects.aix.sample ${DEST}/root.server/usr/afs/local/audit/objects.sample ;  \
+          ${INSTALL_DATA} ${srcdir}/events.aix.sample  ${DEST}/root.server/usr/afs/local/audit/events.sample  ;  \
+          ${INSTALL_DATA} ${srcdir}/config.aix.sample  ${DEST}/root.server/usr/afs/local/audit/config.sample  ;; \
         *) ;; \
         esac ;
 
+clean:
+       $(RM) -f *.a *.o core AFS_component_version_number.c
+
+include ../config/Makefile.version