b2cfdaf0985e476a3bb69dc1257b2972338168a9
[openafs.git] / src / audit / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
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
7
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 # ######################################################################
14
15 srcdir=@srcdir@
16 include @TOP_OBJDIR@/src/config/Makefile.config
17 include @TOP_OBJDIR@/src/config/Makefile.lwp
18
19
20 all: ${TOP_LIBDIR}/libaudit.a ${TOP_INCDIR}/afs/audit.h
21
22 ${TOP_LIBDIR}/libaudit.a: libaudit.a
23         ${INSTALL_DATA} $? $@
24
25 ${TOP_INCDIR}/afs/audit.h: audit.h
26         ${INSTALL_DATA} $? $@
27
28 libaudit.a: audit.o audit-file.o audit-sysvmq.o AFS_component_version_number.o
29         $(RM) -f libaudit.a
30         ar r libaudit.a audit.o audit-file.o audit-sysvmq.o AFS_component_version_number.o
31         $(RANLIB) libaudit.a
32
33 audit.o: audit.c audit.h audit-api.h
34 audit-file.o: audit-file.c audit.h audit-api.h
35 audit-sysvmq.o: audit-sysvmq.c audit.h audit-api.h
36
37 # XXX-INST: where to install the AIX audit files?
38 install: audit.h libaudit.a
39         ${INSTALL} -d ${DESTDIR}${libdir}/afs
40         ${INSTALL} -d ${DESTDIR}${includedir}/afs
41         ${INSTALL_DATA} libaudit.a ${DESTDIR}${libdir}/afs/libaudit.a
42         ${INSTALL_DATA} ${srcdir}/audit.h ${DESTDIR}${includedir}/afs/audit.h
43
44 dest: libaudit.a audit.h
45         ${INSTALL} -d ${DEST}/lib/afs
46         ${INSTALL} -d ${DEST}/include/afs
47         ${INSTALL_DATA} libaudit.a ${DEST}/lib/afs/libaudit.a
48         ${INSTALL_DATA} ${srcdir}/audit.h ${DEST}/include/afs/audit.h
49         case ${SYS_NAME} in \
50         rs_aix*) \
51            ${INSTALL} -d ${DEST}/root.server/usr/afs/local ; \
52            ${INSTALL} -d ${DEST}/root.server/usr/afs/local/audit ; \
53            ${INSTALL_DATA} ${srcdir}/Audit              ${DEST}/root.server/usr/afs/local/Audit ;  \
54            ${INSTALL_DATA} ${srcdir}/objects.aix.sample ${DEST}/root.server/usr/afs/local/audit/objects.sample ;  \
55            ${INSTALL_DATA} ${srcdir}/events.aix.sample  ${DEST}/root.server/usr/afs/local/audit/events.sample  ;  \
56            ${INSTALL_DATA} ${srcdir}/config.aix.sample  ${DEST}/root.server/usr/afs/local/audit/config.sample  ;; \
57         *) ;; \
58         esac ;
59
60 clean:
61         $(RM) -f *.a *.o core AFS_component_version_number.c
62
63 include ../config/Makefile.version