db687d5600a4bb2cc132b514089adf0c12da322e
[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 DESTDIR=@DESTDIR@
16 SRCDIR=@SRCDIR@
17 TOP_SRCDIR=@TOP_SRCDIR@
18 SYS_NAME=@AFS_SYSNAME@
19
20 SHELL = /bin/sh
21
22 include ../config/Makefile.${SYS_NAME}
23
24 UKERNELDIR = ../libuafs/
25
26 CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I${SRCDIR}/include ${XCFLAGS}
27
28 all: install
29
30 install: ukinstall ${DESTDIR}/lib/afs/libaudit.a ${DESTDIR}/include/afs/audit.h
31         case ${SYS_NAME} in \
32         rs_aix*) \
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  ;; \
37         *) ;; \
38         esac ;
39
40 ukinstall: ${UKERNELDIR}/afs ${UKERNELDIR}/afs/audit.h
41
42 ${UKERNELDIR}/afs:
43         mkdir -p ${UKERNELDIR}/afs
44
45 ${UKERNELDIR}/afs/audit.h: audit.h
46         ${INSTALL} $? $@
47
48 ${DESTDIR}/include/afs/audit.h: audit.h
49         ${INSTALL} $? $@
50
51 ${DESTDIR}/lib/afs/libaudit.a: libaudit.a
52         ${INSTALL} $? $@
53
54 libaudit.a: audit.o AFS_component_version_number.o
55         $(RM) -f libaudit.a
56         ar r libaudit.a audit.o AFS_component_version_number.o
57         $(RANLIB) libaudit.a
58
59 audit.o: audit.c audit.h 
60         ${CC} ${CFLAGS} -c audit.c
61
62 clean:
63         $(RM) -f *.a *.o core AFS_component_version_number.c
64
65 include ../config/Makefile.version