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 45 jones
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 26 jones
6 21 jones
USER=jones
7 6 jones
8 30 jones
PW=your-pw-goes-here
9 26 jones
10 27 jones
default: all
11 15 jones
12 45 jones
all: orasax reader query servlet
13 21 jones
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 27 jones
query:
33
	javac -classpath "$(CPATH)" \
34
		DBSimpleQuery.java
35
36 45 jones
servlet:
37
	javac -classpath "$(CPATH)" \
38
		MetaCatServlet.java \
39
		DBSimpleQuery.java
40
	cp MetaCatServlet.class DBSimpleQuery.class /home/httpd/servlets/
41
42 15 jones
test:
43 21 jones
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
44 6 jones
45 15 jones
test1:
46 21 jones
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
47 15 jones
		jdbc:oracle:thin:@localhost:1521:test
48
49 21 jones
rdtest:
50
	java -cp $(CPATH) DBReader 1 $(USER) $(PW)
51
52 24 jones
rdtest1:
53 25 jones
	java -cp $(CPATH) DBReader 31 $(USER) $(PW)
54 24 jones
55 27 jones
qtest:
56 28 jones
	java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW)
57 27 jones
58 28 jones
qtest1:
59
	java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW)
60
61 31 jones
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 46 jones
		DBSimpleQuery.java \
70
		MetaCatServlet.java
71 31 jones
72 6 jones
clean:
73
	-rm -f *.class Log