2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
2N/A#
2N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
2N/A# Use is subject to license terms.
2N/A#
2N/A#
2N/A#ident "%Z%%M% %I% %E% SMI"
2N/A# lib/libadt_jni/com/sun/audit/Makefile
2N/A
2N/Ainclude ../Makefile.com
2N/A
2N/AADT_PKG = com.sun.audit
2N/A
2N/ATOP = $(SRC)/lib/libadt_jni
2N/ACLASSPATH = $(TOP):com/sun/audit
2N/A
2N/AJAVAFLAGS += -source 1.4 -target 1.4
2N/A
2N/ASOURCE:sh = ls *.java
2N/A
2N/ACLASSES = $(SOURCE:java=class)
2N/A
2N/AJNIH = AuditSession.h
2N/A
2N/AJAR_FILE=Audit.jar
2N/A
2N/AINSTALL_JAR = $(ROOTAUDITHOME)/$(JAR_FILE)
2N/A
2N/ACLEAN_FILES = *.class $(JNIH) *.jar AuditEvent*.java
2N/A
2N/ADEFINES=
2N/A
2N/AINCLUDES= -I${JAVA_HOME}/include \
2N/A -I${JAVA_HOME}/include/solaris
2N/A
2N/A.KEEP_STATE:
2N/A
2N/Aall: $(JNIH) $(CLASSES)
2N/A
2N/Ainstall: $(CLASSES) $(ROOTAUDITHOME) \
2N/A $(JAR_FILE) $(INSTALL_JAR) \
2N/A $(JNIH)
2N/A
2N/A$(JNIH): $(CLASSES)
2N/A @for class_name in $(CLASSES) ; do \
2N/A k=`/bin/basename $$class_name .class`; \
2N/A class="$$class $(ADT_PKG).$$k"; \
2N/A done; \
2N/A JC="$(JAVAH) -classpath $(CLASSPATH) -jni -o $(JNIH) $$class"; \
2N/A echo $$JC; \
2N/A $$JC
2N/A
2N/Aclean clobber:
2N/A $(RM) $(CLEAN_FILES)
2N/A
2N/A$(ROOTAUDITHOME):
2N/A $(INS.dir)
2N/A
2N/A$(ROOTAUDITHOME)/%: %
2N/A $(INS.file)
2N/A
2N/A$(JAR_FILE): $(CLASSES)
2N/A cd $(TOP); \
2N/A pwd; \
2N/A $(JAR) -cvf $(TOP)/com/sun/audit/$(JAR_FILE) com/sun/audit/*.class