aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile70
1 files changed, 16 insertions, 54 deletions
diff --git a/src/Makefile b/src/Makefile
index 4eea5ce..f6cdfe0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -1,63 +1,24 @@
-#GNUPATH=/usr/share/java/gnu-getopt.jar:/usr/share/java/regexp.jar # debian SID
-GNUPATH=/usr/lib/jdk1.1/lib/classes.zip:/usr/share/java/gnu.getopt.jar:/usr/share/java/regexp.jar # debian woody
-#GNUPATH=${HOME}/java/jars/gnu-getopt.jar:${HOME}/java/jars/regexp.jar
-#GNUPATH=../bundle
+include ../java.mk
-#######################################
-# generic setup
-#######################################
- JAVAC = javac
-JAVACOPTS = -d . -deprecation
-CLASSPATH = -classpath .:$(GNUPATH)
-
-#######################################
-# gcj setup
-#######################################
-# JAVAC = gcj
-#JAVACOPTS = -d . -deprecation
-#CLASSPATH = -classpath .:/usr/share/kaffe/Klasses.jar:$(GNUPATH)
-
-#######################################
-# jikes setup on my box
-#######################################
-# RTPATH = /usr/local/jdk1.5.0/jre/lib/rt.jar
-#JAVACOPTS = -d . -deprecation
-# JAVAC = jikes
-#CLASSPATH = -classpath .:$(RTPATH):$(GNUPATH)
-
-#######################################
-# blackdown jdk118 setup
-#######################################
-# JAVAC = /usr/local/jdk118_v3/bin/javac
-#CLASSPATH = -classpath .:/usr/local/jdk118_v3/lib/classes.zip:/home/jestin/java/Jars/swingall.jar:$(GNUPATH)
-#JAVACOPTS = -d .
-
-######################################
-# local Blackdown linux 1.2.2
-######################################
-#CLASSPATH = -classpath .:$(GNUPATH)
-#JAVACOPTS = -deprecation -d .
-# JAVAC = /usr/local/jdk1.2.2/bin/javac
-
-######################################
-# local Blackdown linux 1.3.1
-######################################
-#CLASSPATH = -classpath .:$(GNUPATH)
-#JAVACOPTS = -deprecation -d .
-# JAVAC = /usr/local/j2sdk1.3.1/bin/javac
-
-.SUFFIXES: .java .class
+#.SUFFIXES: .java .class
SRCS = *.java
OBJS = $(SRCS:.java=.class)
DOCS = ../doc/html/api
-.java.class:
- $(JAVAC) $(JAVACOPTS) $(CLASSPATH) $<
+ GNUPATH = /usr/share/java/gnu-getopt.jar:/usr/share/java/regexp.jar # debian SID
+#GNUPATH = /usr/lib/jdk1.1/lib/classes.zip:/usr/share/java/gnu.getopt.jar:/usr/share/java/regexp.jar # debian woody
+#GNUPATH = ${HOME}/java/Jars/gnu.getopt.jar:${HOME}/java/Jars/regexp.jar # Others
+#RTPATH = /usr/local/jdk1.5.0/jre/lib/rt.jar # for jikes on my box
+#RTPATH = /usr/local/jdk118_v3/lib/classes.zip:/home/jestin/java/Jars/swingall.jar # for 1.1.8 on my box
+
+CLASSPATH = -classpath .:$(GNUPATH)
-ivy-java:
- $(JAVAC) $(JAVACOPTS) $(CLASSPATH) $(SRCS)
+#ivy-java:
+# $(JAVAC) $(JAVACOPTS) $(CLASSPATH) $(SRCS)
-all: $(OBJS)
+all:
+ $(JAVAC) -d . $(JAVACOPTS) $(CLASSPATH) $(SRCS)
+
clean:
/bin/rm -f -- $(OBJS) *~ *.bak $(JAR) fr/dgac/ivy/*.class
@@ -66,5 +27,6 @@ docs:
rm -fR $(DOCS)/*html
rm -fR $(DOCS)/*css
rm -fR $(DOCS)/fr/dgac/ivy/*html
- javadoc $(CLASSPATH) -d $(DOCS) $(SRCS)
+ #javadoc $(CLASSPATH) -d $(DOCS) $(SRCS)
+ javadoc -d $(DOCS) $(SRCS)
rm -f $(DOCS)/package-list