Project

General

Profile

1
# For Win32, make 'SEP' be a semicolon
2
SEP=:
3
#CPATH=../../xml.jar$(SEP)$(JAVA_HOME)/lib/classes.zip
4
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP).
5

    
6
USER=jones
7

    
8
PW=provide-your-password-here
9

    
10
default: reader
11

    
12
all: orasax reader
13

    
14
orasax:
15
	javac -classpath "$(CPATH)" \
16
		DBSAXWriter.java \
17
		BasicElement.java \
18
		DBSAXElement.java \
19
		DBSAXHandler.java
20
		
21
sundom:
22
	javac -classpath "$(CPATH)" \
23
		DBWriter.java \
24
		DBElement.java
25
		
26
reader:
27
	javac -classpath "$(CPATH)" \
28
		DBReader.java \
29
		BasicElement.java \
30
		ReaderElement.java
31

    
32
test:
33
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
34

    
35
test1:
36
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
37
		jdbc:oracle:thin:@localhost:1521:test
38

    
39
rdtest:
40
	java -cp $(CPATH) DBReader 1 $(USER) $(PW) 
41

    
42
rdtest1:
43
	java -cp $(CPATH) DBReader 31 $(USER) $(PW) 
44

    
45
clean:
46
	-rm -f *.class Log
(9-9/12)