aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
blob: 4eea5ce1be651cb991d5081899976e1717574401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#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

#######################################
# 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
     SRCS = *.java
     OBJS = $(SRCS:.java=.class)
     DOCS = ../doc/html/api

.java.class:
	$(JAVAC) $(JAVACOPTS) $(CLASSPATH) $<

ivy-java:
	$(JAVAC) $(JAVACOPTS) $(CLASSPATH) $(SRCS)

all:	$(OBJS)

clean:
	/bin/rm -f -- $(OBJS) *~ *.bak $(JAR) fr/dgac/ivy/*.class

docs:
	rm -fR $(DOCS)/*html
	rm -fR $(DOCS)/*css
	rm -fR $(DOCS)/fr/dgac/ivy/*html
	javadoc $(CLASSPATH) -d $(DOCS) $(SRCS)
	rm -f $(DOCS)/package-list