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 15 jones
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP).
5 26 jones
6 21 jones
USER=jones
7 6 jones
8 26 jones
PW=provide-your-password-here
9
10 21 jones
default: reader
11 15 jones
12 21 jones
all: orasax reader
13
14 15 jones
orasax:
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 21 jones
reader:
27
	javac -classpath "$(CPATH)" \
28
		DBReader.java \
29 23 jones
		BasicElement.java \
30
		ReaderElement.java
31 21 jones
32 15 jones
test:
33 21 jones
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
34 6 jones
35 15 jones
test1:
36 21 jones
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
37 15 jones
		jdbc:oracle:thin:@localhost:1521:test
38
39 21 jones
rdtest:
40
	java -cp $(CPATH) DBReader 1 $(USER) $(PW)
41
42 24 jones
rdtest1:
43 25 jones
	java -cp $(CPATH) DBReader 31 $(USER) $(PW)
44 24 jones
45 6 jones
clean:
46
	-rm -f *.class Log