##############################################################################
#
#           Copyright (c)2005 Geovariances, Avon, France.
#
#   In consideration  of payment of  the license fee,  which is a part of
#   the price you  paid for this  product, Geovariances (GV) as licensor,
#   grants you, the licensee, a non-exclusive right to use this copy of a
#   GV software product.
#   GV reserves all rights not  expressly granted to licensee. GV retains
#   titleship and ownership  of software.  This license is not  a sale of
#   the original  software or any  copy. GV also  retains  titleship  and
#   ownership of any modifications or  derivations of this software.  Any
#   modifications of this software  must be clearly marked as such.  This
#   copyright message must  appear in its entirety  in this software,  or
#   any modifications or derivations thereof.
#
#   Geovariances welcomes any comments, suggestions, bug reports, etc. At
#   the discretion  of Geovariances,  any customer  supplied  bug  fixes,
#   enhancements, or utility codes will be distributed in future software
#   releases (the contributor will of course be credited). 
#   
#           Geovariances
#           49bis, Avenue Franklin Roosevelt
#           77210 Avon, FRANCE
#
#            Phone: +33-(0)-160.749.100
#              Fax: +33-(0)-164.228.728
#           e-mail: support@geovariances.fr
#
#                       All Rights Reserved
#
##############################################################################

OUT_DIR = com/geovariances/gtxclient
SOURCES.java = $(wildcard *.java)
OBJECTS = $(SOURCES.java:%.java=$(OUT_DIR)/%.class) 

$(OUT_DIR)/%.class: %.java
	echo "Compiling $<..."
	javac $(SOURCES.java) -d .

all: ../../lib/gtxclient.jar

../../lib/gtxclient.jar: $(OBJECTS)
	echo "Building gtxclient.jar..."
	jar cf $@ $(OUT_DIR)/*.class

clean:
	$(RM) ../../doc/java/*.html $(OBJECTS)

doc-java: $(SOURCES.java)
	javadoc -d ../../doc/java -version $(SOURCES.java)


# Special Geovariances Target
make-target: all
