1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
8 # # Auditing is currently only supported for AIX32 machines. It is
9 # # integrated with the AIX auditing facility. The objects, events,
10 # # and config files are AIX specific. The Audit file is not but is
11 # # included in the rs_aix32 case since other platforms are not
12 # # supported (if not supported, don't show it).
13 # ######################################################################
16 include @TOP_OBJDIR@/src/config/Makefile.config
18 CFLAGS=-I. -I${srcdir} ${OPTMZ} -I${TOP_OBJDIR}/src/config -I${TOP_INCDIR} ${XCFLAGS} ${ARCHFLAGS}
20 all: ${TOP_LIBDIR}/libaudit.a ${TOP_INCDIR}/afs/audit.h
22 # XXX-INST: where to install the AIX audit files?
24 ${DESTDIR}${libdir}/afs/libaudit.a \
25 ${DESTDIR}${includedir}/afs/audit.h
27 ${DEST}/include/afs/audit.h: audit.h
30 ${DEST}/lib/afs/libaudit.a: libaudit.a
33 libaudit.a: audit.o AFS_component_version_number.o
35 ar r libaudit.a audit.o AFS_component_version_number.o
38 audit.o: audit.c audit.h
39 ${CC} ${CFLAGS} -c ${srcdir}/audit.c
42 $(RM) -f *.a *.o core AFS_component_version_number.c
44 include ../config/Makefile.version
45 ${DESTDIR}${libdir}/afs/libaudit.a: libaudit.a
48 ${TOP_LIBDIR}/libaudit.a: libaudit.a
51 ${DESTDIR}${includedir}/afs/audit.h: audit.h
54 ${TOP_INCDIR}/afs/audit.h: audit.h
57 dest: ${DEST}/lib/afs/libaudit.a ${DEST}/include/afs/audit.h
60 ${INSTALL} ${srcdir}/Audit ${DEST}/root.server/usr/afs/local ; \
61 ${INSTALL} ${srcdir}/objects.aix.sample ${DEST}/root.server/usr/afs/local/audit/objects.sample ; \
62 ${INSTALL} ${srcdir}/events.aix.sample ${DEST}/root.server/usr/afs/local/audit/events.sample ; \
63 ${INSTALL} ${srcdir}/config.aix.sample ${DEST}/root.server/usr/afs/local/audit/config.sample ;; \