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: util
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: util
27
	javac -classpath "$(CPATH)" \
28
		DBReader.java \
29
		BasicElement.java \
30
		ReaderElement.java
31
	cp DBReader.class \
32
		ReaderElement.class \
33
		BasicElement.class \
34
		/home/httpd/servlets/
35

    
36
query: util
37
	javac -classpath "$(CPATH)" \
38
		DBSimpleQuery.java
39
	cp DBSimpleQuery.class /home/httpd/servlets/
40

    
41
servlet: query reader
42
	javac -classpath "$(CPATH)" MetaCatServlet.java
43
	cp MetaCatServlet.class /home/httpd/servlets/
44

    
45
util: 
46
	javac -classpath "$(CPATH)" \
47
		MetaCatUtil.java
48
	cp MetaCatUtil.class /home/httpd/servlets/
49

    
50
test:
51
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
52

    
53
test1:
54
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
55
		jdbc:oracle:thin:@localhost:1521:test
56

    
57
rdtest:
58
	java -cp $(CPATH) DBReader 1 $(USER) $(PW) 
59

    
60
rdtest1:
61
	java -cp $(CPATH) DBReader 31 $(USER) $(PW) 
62

    
63
qtest:
64
	java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW) 
65

    
66
qtest1:
67
	java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW) 
68

    
69
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
		DBSimpleQuery.java \
78
		MetaCatServlet.java
79

    
80
clean:
81
	-rm -f *.class Log
(10-10/18)