usr/src/test/java/Makefile
author Dan Labrecque <dan.labrecque@oracle.com>
Thu, 19 Jan 2012 16:01:30 -0500
changeset 793 0a5a7daf579b
parent 758 06c57694c78d
child 797 a33daeba9b4c
permissions -rw-r--r--
7130765 - Move old SMF module to VP core package

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
#

include ../../Makefile.env

JSRC=src
BUILD=build
GEN=$(BUILD)/gen

DEPENDENCY_JARS = $(PROTO_RAD_JAVA)/rad.jar
DEPENDENCY_JARS += $(PROTO_RAD_JAVA)/adr.jar
DEPENDENCY_JARS += $(PROTO_RAD_JAVA)/afunix.jar
DEPENDENCY_JARS += $(PROTO_RAD_JAVA)/smf.jar
DEPENDENCY_JARS += /usr/share/lib/java/junit.jar

JAVA_OPTS = -g -Xlint -Xlint:-serial
JAVA_OPTS += -d $(BUILD)
JAVA_OPTS += -classpath $(CLASS_PATH)
JAVA_OPTS += -sourcepath $(JSRC):$(GEN)

APIS = $(SRC)/apis/test.xml
APIS += $(SRC)/apis/test-unions.xml
APIS += $(SRC)/apis/test-fallback-old.xml
APIS += $(SRC)/apis/test-fallback-new.xml
APIS += $(SRC)/apis/test-version-vold.xml
APIS += $(SRC)/apis/test-version-vnew.xml
APIS += $(SRC)/apis/test-compat-cold.xml
APIS += $(SRC)/apis/test-compat-cnew.xml
APIS += $(SRC)/apis/pam.xml

all:
	mkdir -p $(GEN)
	$(ADRGEN) -j $(GEN) -i $(APIS)
	$(JAVAC) $(JAVA_OPTS) `find $(JSRC) $(GEN) -name '*.java'`

test:
	PYTHONPATH=.. python -m radtest.java $(BUILD)

clean clobber:
	$(RM) -rf $(BUILD)

lint: