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)/usr/lib/apache/ApacheJServ.jar$(SEP)/home/httpd/classes/servlet-2.0.jar$(SEP).
5

    
6
USER=jones
7

    
8
PW=your-pw-goes-here
9

    
10
default: all
11

    
12
all: orasax reader query servlet
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
servlet:
37
	javac -classpath "$(CPATH)" \
38
		MetaCatServlet.java \
39
		DBSimpleQuery.java
40
	cp MetaCatServlet.class DBSimpleQuery.class /home/httpd/servlets/
41

    
42
test:
43
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
44

    
45
test1:
46
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
47
		jdbc:oracle:thin:@localhost:1521:test
48

    
49
rdtest:
50
	java -cp $(CPATH) DBReader 1 $(USER) $(PW) 
51

    
52
rdtest1:
53
	java -cp $(CPATH) DBReader 31 $(USER) $(PW) 
54

    
55
qtest:
56
	java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW) 
57

    
58
qtest1:
59
	java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW) 
60

    
61
javadoc:
62
	javadoc -classpath $(CPATH) -d docs \
63
		DBSAXWriter.java \
64
		BasicElement.java \
65
		DBSAXElement.java \
66
		DBSAXHandler.java \
67
		DBReader.java \
68
		ReaderElement.java \
69
		DBSimpleQuery.java \
70
		MetaCatServlet.java
71

    
72
clean:
73
	-rm -f *.class Log
(10-10/14)