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 TOP_INCDIR=@TOP_INCDIR@
17 TOP_LIBDIR=@TOP_LIBDIR@
19 exec_prefix=@exec_prefix@
22 libexecdir=@libexecdir@
24 includedir=@includedir@
26 afssrvbindir=@afssrvbindir@
27 afssrvsbindir=@afssrvsbindir@
28 afssrvlibexecdir=@afssrvlibexecdir@
29 COMPILE_ET=${TOP_SRCDIR}/comerr/compile_et
30 RXGEN=${TOP_SRCDIR}/rxgen/rxgen
31 TOP_SRCDIR=@TOP_SRCDIR@
32 SYS_NAME=@AFS_SYSNAME@
36 include ../config/Makefile.${SYS_NAME}
38 UKERNELDIR = ../libuafs/
40 CFLAGS=${OPTMZ} -I${TOP_SRCDIR}/config -I${TOP_INCDIR} ${XCFLAGS}
42 all: ukinstall ${TOP_LIBDIR}/libaudit.a ${TOP_INCDIR}/afs/audit.h
44 # XXX-INST: where to install the AIX audit files?
45 install: ${DESTDIR}${libdir}/afs/libaudit.a ${DESTDIR}${includedir}/afs/audit.h
47 ukinstall: ${UKERNELDIR}/afs ${UKERNELDIR}/afs/audit.h
50 mkdir -p ${UKERNELDIR}/afs
52 ${UKERNELDIR}/afs/audit.h: audit.h
55 ${DEST}/include/afs/audit.h: audit.h
58 ${DEST}/lib/afs/libaudit.a: libaudit.a
61 libaudit.a: audit.o AFS_component_version_number.o
63 ar r libaudit.a audit.o AFS_component_version_number.o
66 audit.o: audit.c audit.h
67 ${CC} ${CFLAGS} -c audit.c
70 $(RM) -f *.a *.o core AFS_component_version_number.c
72 include ../config/Makefile.version
73 ${DESTDIR}${libdir}/afs/libaudit.a: libaudit.a
76 ${TOP_LIBDIR}/libaudit.a: libaudit.a
79 ${DESTDIR}${includedir}/afs/audit.h: audit.h
82 ${TOP_INCDIR}/afs/audit.h: audit.h
85 dest: ${DEST}/lib/afs/libaudit.a ${DEST}/include/afs/audit.h
88 ${INSTALL} Audit ${DEST}/root.server/usr/afs/local ; \
89 ${INSTALL} objects.aix.sample ${DEST}/root.server/usr/afs/local/audit/objects.sample ; \
90 ${INSTALL} events.aix.sample ${DEST}/root.server/usr/afs/local/audit/events.sample ; \
91 ${INSTALL} config.aix.sample ${DEST}/root.server/usr/afs/local/audit/config.sample ;; \