# Makefile for sample java files
#
# If not installed in ORACLE_HOME, set ORACLE_HOME to installation root
#
# ======================================================================

.SUFFIXES : .java .class

CLASSES = ViewSample.class  AsyncTransformSample.class XMLTransformPanelSample.class DBViewClaims.class DBViewFrame.class DBViewSample.class XMLTransformPanelSample1.class XMLDiffSample.class filepanel.class dbpanel.class compstreamdata.class xmlcompressutil.class compviewer.class 

# Change it to the appropriate separator based on the OS 
PATHSEP = :

# Make sure that the following product jar/zip files are in the classpath:
# - Oracle JDBC driver for thin client (file classes111.zip)
# - Oracle XML SQL Utility (file xsu111.jar)
# - Oracle XDB jar (xdb_g.jar) to run XMLType demo

# You can download this products from technet.us.oracle.com

# sqlplus is used to run the sql from claim.sql. You will need to
# change USERID and PASSWORD if your database does not have the default 
# scott/tiger account
USERID=scott
PASSWORD=tiger


# If you use JDK 1.1, you will need to download also Swing 1.1 and add
# swingall.jar to your classpath.  You do not need to do this for JDK
# 1.2 since Swing is part of JDK 1.2
#
# If you don't have an ORACLE_HOME set, set it to the root dir of your 
# XDK for Java Beans installation
#
# Running the xml differ demo using 'make sample6' might give a null 
# pointer exception if java runtime is jdk1.2.  It should work correctly 
# for jdk1.1.6, jdk1.1.8, jdk1.2_2*, jdk1.3*
MAKE_CLASSPATH = .$(PATHSEP)$(ORACLE_HOME)/lib/xmlparserv2.jar$(PATHSEP)$(ORACLE_HOME)/lib/xmlcomp.jar$(PATHSEP)$(ORACLE_HOME)/lib/jdev-rt.zip$(PATHSEP)$(PATHSEP)$(ORACLE_HOME)/lib/xmlcomp2.jar$(PATHSEP)$(CLASSPATH)

.java.class:
	javac -classpath "$(MAKE_CLASSPATH)" $<

# make all class files
all: $(CLASSES)


sample1: XMLTransformPanelSample.class
	java -classpath "$(MAKE_CLASSPATH)" XMLTransformPanelSample
sample2: ViewSample.class
	java -classpath "$(MAKE_CLASSPATH)" ViewSample
sample3: AsyncTransformSample.class
	java -classpath "$(MAKE_CLASSPATH)" AsyncTransformSample
sample4: DBViewSample.class
	#sqlplus $(USERID)/$(PASSWORD) @claim.sql 
	java -classpath "$(MAKE_CLASSPATH)" DBViewSample
sample5: XMLTransformPanelSample1.class
	java -classpath "$(MAKE_CLASSPATH)" XMLTransformPanelSample1
sample6: XMLDiffSample.class
	java -mx50m -classpath "$(MAKE_CLASSPATH)" XMLDiffSample ${FILE1} ${FILE2} ${FILE3}
sample7:compstreamdata.class dbpanel.class filepanel.class xmlcompressutil.class compviewer.class
	java -classpath "$(MAKE_CLASSPATH)" compviewer

        #end of makefile

