source: main/trunk/greenstone2/common-src/src/jdbmedit/Makefile@ 21400

Last change on this file since 21400 was 21400, checked in by davidb, 13 years ago

Development of JdbmAPI that supports -- as a persistent session -- interaction with the JDBM database

File size: 564 bytes
Line 
1
2GSDL_DIR = ../../..
3
4OBJECTS = JdbmAPI.class Jdb2Txt.class Txt2Jdb.class JdbGet.class \
5 JdbSet.class JdbDel.class JdbKeys.class
6
7
8JDBM_JAR = ../../packages/jdbm/jdbm-1.0/dist/jdbm-1.0.jar
9
10all: JDBMWrapper.jar
11 @echo "Done"
12
13JDBMWrapper.jar: $(OBJECTS)
14 jar cvf JDBMWrapper.jar $(OBJECTS)
15
16install: all
17 /bin/cp JDBMWrapper.jar $(GSDL_DIR)/bin/java
18
19%.class: %.java
20 javac -cp $(JDBM_JAR):. $<
21
22
23clean:
24 /bin/rm -f *.class test.lg test.jdb
25
26distclean: clean
27 /bin/rm -f JDBMWrapper.jar
28
29test-api:
30 java -cp $(JDBM_JAR):JDBMWrapper.jar JdbmAPI test
Note: See TracBrowser for help on using the repository browser.