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 # ######################################################################
17 TOP_SRCDIR=@TOP_SRCDIR@
18 SYS_NAME=@AFS_SYSNAME@
22 include ../config/Makefile.${SYS_NAME}
24 UKERNELDIR = ../libuafs/
26 CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS}
30 install: ukinstall ${DESTDIR}/lib/afs/libaudit.a ${DESTDIR}/include/afs/audit.h
33 ${INSTALL} Audit ${DESTDIR}/root.server/usr/afs/local ; \
34 ${INSTALL} objects.aix.sample ${DESTDIR}/root.server/usr/afs/local/audit/objects.sample ; \
35 ${INSTALL} events.aix.sample ${DESTDIR}/root.server/usr/afs/local/audit/events.sample ; \
36 ${INSTALL} config.aix.sample ${DESTDIR}/root.server/usr/afs/local/audit/config.sample ;; \
40 ukinstall: ${UKERNELDIR}/afs ${UKERNELDIR}/afs/audit.h
43 mkdir -p ${UKERNELDIR}/afs
45 ${UKERNELDIR}/afs/audit.h: audit.h
48 ${DESTDIR}/include/afs/audit.h: audit.h
51 ${DESTDIR}/lib/afs/libaudit.a: libaudit.a
54 libaudit.a: audit.o AFS_component_version_number.o
56 ar r libaudit.a audit.o AFS_component_version_number.o
59 audit.o: audit.c audit.h
60 ${CC} ${CFLAGS} -c audit.c
63 $(RM) -f *.a *.o core AFS_component_version_number.c
65 include ../config/Makefile.version