version 1.5, 1999/11/16 13:19:14 |
version 1.13, 2000/01/17 17:09:24 |
|
|
# |
# |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.4 1999/11/02 16:23:07 tam Exp $ |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.12 2000/01/17 16:53:43 tam Exp $ |
|
|
make: |
|
if ! test -d ../../lib/java-support; then \ |
|
mkdir -p ../../lib/java-support; \ |
|
fi |
|
make clean |
|
javac -d ../../lib/java-support -O *.java |
|
|
|
|
JAVADIR = /usr/local/jdk1.1.8/ |
|
#JAVABINDIR = $(JAVADIR)bin/ |
|
LIBDIR = ../../lib/java-support |
|
|
|
TARGETS = OpenXM.jar OM2OXM.class OMproxy.class libnative.so |
|
|
|
|
|
all: configure $(TARGETS) |
|
|
|
|
|
configure: |
|
|
|
|
clean: |
clean: |
find . -name '*.class' \ |
find . -name '*.class' \ |
-exec echo rm -f {} \; \ |
-exec echo rm -f {} \; \ |
-exec rm -f {} \; |
-exec rm -f {} \; |
|
-rm -f *.so *.h *.jar |
|
|
dist: |
|
tar cvfz ../OM2OXM.tgz . |
|
|
|
dist-clean: #clean dist |
distclean: clean |
make clean |
|
find . -name '*~' \ |
find . -name '*~' \ |
-exec echo rm -f {} \; \ |
-exec echo rm -f {} \; \ |
-exec rm -f {} \; |
-exec rm -f {} \; |
|
|
|
|
|
install: all |
|
if ! test -d $(LIBDIR); then \ |
|
mkdir -p $(LIBDIR); \ |
|
fi |
|
cp `find . -name '*.class'` $(TARGETS) $(LIBDIR) |
|
|
|
|
|
install2: |
|
|
|
|
test: |
test: |
javac -d . -deprecation -g *.java |
$(JAVABINDIR)javac -d . -deprecation -g *.java |
|
make libnative.so |
|
|
|
|
|
.SUFFIXES: .java .class |
|
|
|
|
|
.java.class: |
|
$(JAVABINDIR)javac -d . -O $< |
|
|
|
|
|
OpenXM.jar: JP/ac/kobe_u/math/tam/OpenXM/*.java |
|
$(JAVABINDIR)javac -d . -O $? |
|
touch $@ |
|
-@#$(JAVABINDIR)jar cf OpenXM.jar `find JP/ -name '*.class'` |
|
|
|
|
|
OMproxy.h: OMproxy.class |
|
-$(JAVABINDIR)javah -jni $* |
|
|
|
|
|
libnative.so: native.c OMproxy.h |
|
cc -o libnative.so native.c \ |
|
-shared `find $(JAVADIR)/include/ -type d | sed 's/^/-I/'` |