xref: /illumos-gate/usr/src/lib/libadt_jni/com/sun/audit/Makefile (revision 51396a8ee7fb52fe0ab33bfe7b4f495ad431904a)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# Copyright 2020 Peter Tribble
26#
27
28include ../Makefile.com
29
30ADT_PKG = com.sun.audit
31
32TOP = $(SRC)/lib/libadt_jni
33CLASSPATH = $(TOP):com/sun/audit
34
35SOURCE:sh = ls *.java
36
37CLASSES = $(SOURCE:java=class)
38
39JAR_FILE=Audit.jar
40
41INSTALL_JAR = $(ROOTAUDITHOME)/$(JAR_FILE)
42
43CLEAN_FILES = *.class *.jar AuditEvent*.java
44
45DEFINES=
46
47INCLUDES=	-I${JAVA_HOME}/include	\
48		-I${JAVA_HOME}/include/solaris
49
50.KEEP_STATE:
51
52all:	$(CLASSES)
53
54install:	$(CLASSES) $(ROOTAUDITHOME)	\
55		$(JAR_FILE) $(INSTALL_JAR)
56
57clean clobber:
58	$(RM) $(CLEAN_FILES)
59
60$(ROOTAUDITHOME):
61	$(INS.dir)
62
63$(ROOTAUDITHOME)/%: %
64	$(INS.file)
65
66$(JAR_FILE): $(CLASSES)
67	cd $(TOP); \
68	pwd; \
69	$(JAR) -cvf $(TOP)/com/sun/audit/$(JAR_FILE) com/sun/audit/*.class
70