###############################################################################
#     Generic command-line makefile for SeqHound Remote Java Applications
#
# This file assumes the java SDK 2.0 v 1.4.1 is installed correctly and 
# accessible in the current directory.
#
# USAGE:
#    To compile your application, 
#    1) edit SRC and EXE below and then 
#    2) type at the command line: make
#
#################################################################################

##### Your source code that uses the seqhound source code
##### This is the only section you should need to change
SRC   = Example.java
CLASS = Example.class
EXE   = Example

##### Everything below should not be changed
# Java compiler and JVM commands
JAVAC = javac
JAVA  = java

# jar files 
APACHE_HTTPCLIENT = commons-httpclient-2.0.jar
APACHE_LOGGIN1    = commons-logging-api.jar
SEQHOUND_JAR      = seqhound.jar

# blueprint java src files
CLASSPATH = $(JARPATH)/$(SEQHOUND_JAR):$(JARPATH)/$(APACHE_HTTPCLIENT):$(JARPATH)/$(APACHE_LOGGIN1):.

##############
# MAKE SECTION
##############

# SUFFIX RULES
JV_OBJS = $(JAVA_SRC)
OBJS = $(JV_OBJS)

.SUFFIXES : 
.SUFFIXES : .class .java

.java.class:
	$(JAVAC) -classpath $(CLASSPATH) -d . $<

# Make rules
default: $(CLASS)
	$(JAVA) -classpath $(CLASSPATH) $(EXE)

clean: 
	rm -f $(CLASS) 

doc:
	javadoc -breakiterator -d docs SeqHound.java ConfigFileReader.java SLRIMisc.java