f102b1e4b7c03cb3733e2295fc63928395f562be
[openafs.git] / src / audit / Makefile
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 SHELL = /bin/sh
16
17 COMPONENT=audit
18 include ../config/Makefile.${SYS_NAME}
19 MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
20
21 UKERNELDIR = ../libuafs/
22 LOCALDIR = ${DESTDIR}root.server/usr/afs/local/
23
24 audobjs = audit.o
25
26 CFLAGS = ${OPTMZ} -I${TOP_SRCDIR}/config -I$(SRCDIR)include ${XCFLAGS}
27
28 include ../config/Makefile.version
29
30 noversion system: install
31
32 UKSRCS = audit.h
33
34 all:  libaudit.a 
35
36 headers: audit.h
37         ${INSTALL} audit.h ${DESTDIR}include/afs
38
39 install: ukinstall libaudit.a 
40         ${INSTALL} libaudit.a ${DESTDIR}lib/afs
41         ${INSTALL} audit.h ${DESTDIR}include/afs
42         case ${SYS_NAME} in \
43         rs_aix*) \
44            ${INSTALL} Audit              ${LOCALDIR}                     ;  \
45            ${INSTALL} objects.aix.sample ${LOCALDIR}audit/objects.sample ;  \
46            ${INSTALL} events.aix.sample  ${LOCALDIR}audit/events.sample  ;  \
47            ${INSTALL} config.aix.sample  ${LOCALDIR}audit/config.sample  ;; \
48         *) ;; \
49         esac ;
50
51
52 kinstall:
53         @echo No $@ source here.
54
55 ukinstall webinstall:
56         set ${UKERNELDIR}afs; $(MKDIR_IF_NEEDED)
57         ${INSTALL} ${UKSRCS} ${UKERNELDIR}afs
58
59 doc:
60         echo no documents in this directory
61
62 libaudit.a: ${audobjs} AFS_component_version_number.o
63         rm -f libaudit.a
64         ar r libaudit.a ${audobjs} AFS_component_version_number.o
65         $(RANLIB) libaudit.a
66
67 audit.o: audit.c audit.h 
68         ${CC} ${CFLAGS} -c audit.c
69
70 clean:
71         rm -f *.o core AFS_component_version_number.c *.a
72
73 beancount:
74         wc -l *.c *.h
75