diff -urN ../jdbc.orig/Makefile ./Makefile --- ../jdbc.orig/Makefile Fri Jun 25 18:11:45 2004 +++ ./Makefile Fri Jun 25 18:12:52 2004 @@ -1,15 +1,21 @@ JAVAC = javac JAVA = java JAR = jar -CLASSPATH = ../../../src/interfaces/jdbc/jars/postgresql.jar:. +CLASSPATH = $(JAVAJARDIR)/postgresql.jar:. all: ogis \ pgobjs \ - test + test \ + jar jar: $(JAR) -cf postgis.jar org/postgis/*.java org/postgis/*.class README +install: + $(INSTALL_DATA) postgis.jar $(JAVAJARDIR) + [ -d $(EXAMPLESDIR) ] || mkdir $(EXAMPLESDIR) || exit -1 + $(INSTALL_DATA) examples/Test.java examples/TestServer.java $(EXAMPLESDIR) + ogis: $(JAVAC) -classpath $(CLASSPATH) \ org/postgis/Geometry.java \ @@ -20,19 +26,21 @@ org/postgis/LinearRing.java \ org/postgis/Polygon.java \ org/postgis/MultiPolygon.java + touch ogis pgobjs: $(JAVAC) -classpath $(CLASSPATH) \ org/postgis/PGgeometry.java \ org/postgis/PGbox3d.java + touch pgobjs test: $(JAVAC) -classpath $(CLASSPATH) examples/Test.java $(JAVA) -classpath $(CLASSPATH) examples/Test - + touch test jtest: $(JAVAC) -classpath $(CLASSPATH) examples/TestServer.java $(JAVA) -classpath $(CLASSPATH) examples/TestServer - + touch jtest