#
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
#

#
# @(#)Makefile	1.16 02/01/12
#

all: all2
include $(CTS_HOME)/build/Defs.mk

PACKAGE=com.sun.cts.tests.jdbc.ee.common
# PACKAGE=
#
# The name of the package that this testcase is in. This must be set here.
# For example, the package for this simple sample could be
#
#	PACKAGE=com.sun.cts.tests.samples.simpleJDBC


PKG_DIR=com$(SLASH)sun$(SLASH)cts$(SLASH)tests$(SLASH)jdbc$(SLASH)ee$(SLASH)common
# PKG_DIR=
#
# The package-name based file path of the package this test is in. This must
# be set here. For instance, if the test you are currently working on is in
# package
#
#	com.sun.cts.tests.samples.simpleJDBC
#
# then the PKG_DIR macro would be set as following
#
#	PKG_DIR=com$(SLASH)sun$(SLASH)cts$(SLASH)tests$(SLASH)samples$(SLASH)simpleJDBC


SRC_DIR=$(CTS_HOME)$(SLASH)tests$(SLASH)jdbc$(SLASH)ee$(SLASH)common
# SRC_DIR=
#
# The sources directory for this test. Normally this will be under the
#
#	<CTS_HOME>/tests
#
# directory. This is similar to the PKG_DIR macro, the difference being that
# this is the absolute path to the source files for this test. For example,
# the source directory for the package named above would be
#
#	SRC_DIR=$(CTS_HOME)$(SLASH)tests$(SLASH)samples$(SLASH)simpleJDBC

CLASS_DIR=$(COMPILE_DIR)$(SLASH)$(PKG_DIR)
#
# This is the ultimate location of the compiled .class, .jar, and .xml files
# generated during the build. $(COMPILE_DIR) is defined in Defs.mk and is the
# absolute location of the directory we are compiling all classes into.
# $(PKG_DIR) is defined above. This macro should not need to be edited.


CLIENT    = JDBCTestConnectionManager.class DriverManagerConnection.class DataSourceConnection.class dbSchema.class rsSchema.class csSchema.class fnSchema.class
# There are several additional macros that you need to provide for your tests:
#
# INTERFACE=	The interface classes for your remote objects
# BEANS=	The EJB implementations (one of which may be the test Driver)
# CLIENT=	The non-EJB class that is invoked to run the tests
#
# These need to be provided in order to build. For example, the following
# targets are appropriate for the simpleJDBC example we have been using:
#
#	INTERFACE = JDBC.class JDBCHome.class
#	BEANS     = JDBCEJB.class
#	CLIENT    = JDBCClient.class
#
# Please note that all you need to provide is the class name, i.e. Foo.class, and
# not the fully qualified class name, i.e. com.sun.cts.tests.samples.foo.Foo.class


APP_NAME  = jdbc.ee.common
# APP_NAME=
#
# The application name as it appears in the .props file
#
#	application.name=simpleJDBC
#
# This needs to be set here. For instance, the application name for the simpleJDBC
# sample application would be
#
# APP_NAME=simpleJDBC
#



# FULLCLIENT = $(PACKAGE).dbMetaClient1
# FULLCLIENT=
#
# This is the fully qualified name of your client. This is used to invoke the
# client class. This must be defined here. For example, the JDBCClient.class
# would be specified as
#
#	FULLCLIENT = $(PACKAGE).JDBCClient


# TEST=
# CLIENTARGS = $(TEST)
# CLIENTARGS=
#
# These are the arguments that the Client is passed upon invocation. For example,
# if we were interested in running only JDBCTest1 when invoking the Client, we
# would have
#
#	CLIENTARGS =  -t JDBCTest1


# CLIENT_JAR  = $(EJB_REPDIR)$(SLASH)applications$(SLASH)$(APP_NAME)Client.jar
#
# The name and location of the application client jar file. This is needed by the
# client at runtime. This has been provided for you and should not need to be modified.
# **NOTE** This will soon go away as it depends on understnading a particular server
# implementation, which we shouldn't be doing.

include $(CTS_HOME)$(SLASH)build$(SLASH)BuildRules.mk
include $(CTS_HOME)$(SLASH)build$(SLASH)jdbc.mk

# Compile all of the sources/props files into .class and .xml files
all2: all_classes

# generate all of the class files
all_classes: $(CLIENT)

#### DEPLOY ON EJBD
# deploy: deploycommon

# undeploy: undeploycommon


#### RUN CLIENT
# runclient: $(CLIENT)
# 	$(RUNCLIENT_RULE)

# Note: for clean to work, ejbd must be stopped and restarted
# This will go away soon.
clean: jdbc_common_clean

