CC = cc JAVAC = jikes +E CFLAGS = -Wall GDBMINCL = -I/usr/local/include JNIINCL = -I/usr/local/java/include -I/usr/local/java/include/freebsd INCLUDES = $(GDBMINCL) $(JNIINCL) all: libjdbm.so Database.class Database.class: Database.java \ KeyExistsException.java \ FileUnavailableException.java \ NoSuchKeyException.java \ IllegalOperationError.java $(JAVAC) -d $(HOME) -O Database.java libjdbm.so: jdbm_Database.o ld -Bshareable -o $@ jdbm_Database.o -L/usr/local/lib -lgdbm jdbm_Database.o: jdbm_Database.c $(CC) $(CFLAGS) -fpic -c $(INCLUDES) jdbm_Database.c doc:: javadoc -author -version -d $(HOME)/jdbm/doc jdbm clean: rm -f *.o *.class *.so *.a *.core *~ install: all mv libjdbm.so $(HOME)/lib/