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=your-pw-goes-here
9

    
10
default: all
11

    
12
all: orasax reader query
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
query:
33
	javac -classpath "$(CPATH)" \
34
		DBSimpleQuery.java
35

    
36
test:
37
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
38

    
39
test1:
40
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
41
		jdbc:oracle:thin:@localhost:1521:test
42

    
43
rdtest:
44
	java -cp $(CPATH) DBReader 1 $(USER) $(PW) 
45

    
46
rdtest1:
47
	java -cp $(CPATH) DBReader 31 $(USER) $(PW) 
48

    
49
qtest:
50
	java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW) 
51

    
52
qtest1:
53
	java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW) 
54

    
55
javadoc:
56
	javadoc -classpath $(CPATH) -d docs \
57
		DBSAXWriter.java \
58
		BasicElement.java \
59
		DBSAXElement.java \
60
		DBSAXHandler.java \
61
		DBReader.java \
62
		ReaderElement.java \
63
		DBSimpleQuery.java
64

    
65
clean:
66
	-rm -f *.class Log
(10-10/13)