Commit | Line | Data |
---|---|---|
805e021f CE |
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 | include @TOP_OBJDIR@/src/config/Makefile.lwptool | |
19 | ||
20 | LT_objs=audit.lo audit-file.lo audit-sysvmq.lo | |
21 | LT_deps = $(top_builddir)/src/rxkad/liboafs_rxkad.la \ | |
22 | $(top_builddir)/src/util/liboafs_util.la | |
23 | ||
24 | all: liboafs_audit.la libaudit_pic.la ${TOP_LIBDIR}/libaudit.a ${TOP_INCDIR}/afs/audit.h | |
25 | ||
26 | ${TOP_LIBDIR}/libaudit.a: libaudit.a | |
27 | ${INSTALL_DATA} $? $@ | |
28 | ||
29 | ${TOP_INCDIR}/afs/audit.h: audit.h | |
30 | ${INSTALL_DATA} $? $@ | |
31 | ||
32 | libaudit.a: $(LT_objs) | |
33 | $(LT_LDLIB_lwp) $(LT_objs) | |
34 | ||
35 | liboafs_audit.la: liboafs_audit.la.sym $(LT_objs) $(LT_deps) | |
36 | $(LT_LDLIB_shlib) $(LT_objs) $(LT_deps) $(LT_libs) | |
37 | ||
38 | libaudit_pic.la: $(LT_objs) | |
39 | $(LT_LDLIB_pic) $(LT_objs) | |
40 | ||
41 | audit.lo: audit.c audit.h audit-api.h | |
42 | audit-file.lo: audit-file.c audit.h audit-api.h | |
43 | audit-sysvmq.lo: audit-sysvmq.c audit.h audit-api.h | |
44 | ||
45 | # XXX-INST: where to install the AIX audit files? | |
46 | install: audit.h libaudit.a | |
47 | ${INSTALL} -d ${DESTDIR}${libdir}/afs | |
48 | ${INSTALL} -d ${DESTDIR}${includedir}/afs | |
49 | ${INSTALL_DATA} libaudit.a ${DESTDIR}${libdir}/afs/libaudit.a | |
50 | ${INSTALL_DATA} ${srcdir}/audit.h ${DESTDIR}${includedir}/afs/audit.h | |
51 | ||
52 | dest: libaudit.a audit.h | |
53 | ${INSTALL} -d ${DEST}/lib/afs | |
54 | ${INSTALL} -d ${DEST}/include/afs | |
55 | ${INSTALL_DATA} libaudit.a ${DEST}/lib/afs/libaudit.a | |
56 | ${INSTALL_DATA} ${srcdir}/audit.h ${DEST}/include/afs/audit.h | |
57 | case ${SYS_NAME} in \ | |
58 | rs_aix*) \ | |
59 | ${INSTALL} -d ${DEST}/root.server/usr/afs/local ; \ | |
60 | ${INSTALL} -d ${DEST}/root.server/usr/afs/local/audit ; \ | |
61 | ${INSTALL_DATA} ${srcdir}/Audit ${DEST}/root.server/usr/afs/local/Audit ; \ | |
62 | ${INSTALL_DATA} ${srcdir}/objects.aix.sample ${DEST}/root.server/usr/afs/local/audit/objects.sample ; \ | |
63 | ${INSTALL_DATA} ${srcdir}/events.aix.sample ${DEST}/root.server/usr/afs/local/audit/events.sample ; \ | |
64 | ${INSTALL_DATA} ${srcdir}/config.aix.sample ${DEST}/root.server/usr/afs/local/audit/config.sample ;; \ | |
65 | *) ;; \ | |
66 | esac ; | |
67 | ||
68 | clean: | |
69 | $(LT_CLEAN) | |
70 | $(RM) -f *.a *.o core AFS_component_version_number.c | |
71 | ||
72 | include ../config/Makefile.version |