Project

General

Profile

1 6 jones
# For Win32, make 'SEP' be a semicolon
2
SEP=:
3
#CPATH=../../xml.jar$(SEP)$(JAVA_HOME)/lib/classes.zip
4 45 jones
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP)/usr/lib/apache/ApacheJServ.jar$(SEP)/home/httpd/classes/servlet-2.0.jar$(SEP).
5 26 jones
6 21 jones
USER=jones
7 6 jones
8 30 jones
PW=your-pw-goes-here
9 26 jones
10 27 jones
default: all
11 15 jones
12 45 jones
all: orasax reader query servlet
13 21 jones
14 50 jones
orasax: util
15 6 jones
	javac -classpath "$(CPATH)" \
16 15 jones
		DBSAXWriter.java \
17 21 jones
		BasicElement.java \
18 17 jones
		DBSAXElement.java \
19
		DBSAXHandler.java
20 15 jones
21
sundom:
22
	javac -classpath "$(CPATH)" \
23 6 jones
		DBWriter.java \
24
		DBElement.java
25
26 50 jones
reader: util
27 21 jones
	javac -classpath "$(CPATH)" \
28
		DBReader.java \
29 23 jones
		BasicElement.java \
30
		ReaderElement.java
31 49 jones
	cp DBReader.class \
32
		ReaderElement.class \
33
		BasicElement.class \
34
		/home/httpd/servlets/
35 21 jones
36 50 jones
query: util
37 27 jones
	javac -classpath "$(CPATH)" \
38
		DBSimpleQuery.java
39 49 jones
	cp DBSimpleQuery.class /home/httpd/servlets/
40 27 jones
41 49 jones
servlet: query reader
42
	javac -classpath "$(CPATH)" MetaCatServlet.java
43
	cp MetaCatServlet.class /home/httpd/servlets/
44 45 jones
45 50 jones
util:
46
	javac -classpath "$(CPATH)" \
47
		MetaCatUtil.java
48
	cp MetaCatUtil.class /home/httpd/servlets/
49
50 15 jones
test:
51 21 jones
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
52 6 jones
53 15 jones
test1:
54 21 jones
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
55 15 jones
		jdbc:oracle:thin:@localhost:1521:test
56
57 21 jones
rdtest:
58
	java -cp $(CPATH) DBReader 1 $(USER) $(PW)
59
60 24 jones
rdtest1:
61 25 jones
	java -cp $(CPATH) DBReader 31 $(USER) $(PW)
62 24 jones
63 27 jones
qtest:
64 28 jones
	java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW)
65 27 jones
66 28 jones
qtest1:
67
	java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW)
68
69 31 jones
javadoc:
70
	javadoc -classpath $(CPATH) -d docs \
71
		DBSAXWriter.java \
72
		BasicElement.java \
73
		DBSAXElement.java \
74
		DBSAXHandler.java \
75
		DBReader.java \
76
		ReaderElement.java \
77 46 jones
		DBSimpleQuery.java \
78
		MetaCatServlet.java
79 31 jones
80 6 jones
clean:
81
	-rm -f *.class Log