version 1.9, 2000/01/17 11:07:12 |
version 1.13, 2000/01/17 17:09:24 |
|
|
# |
# |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.8 2000/01/17 10:41:51 tam Exp $ |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.12 2000/01/17 16:53:43 tam Exp $ |
|
|
|
|
JAVADIR = /usr/local/jdk1.1.8 |
JAVADIR = /usr/local/jdk1.1.8/ |
|
#JAVABINDIR = $(JAVADIR)bin/ |
LIBDIR = ../../lib/java-support |
LIBDIR = ../../lib/java-support |
|
|
|
TARGETS = OpenXM.jar OM2OXM.class OMproxy.class libnative.so |
|
|
configure: |
|
|
|
|
all: configure $(TARGETS) |
|
|
all: OpenXM.jar OM2OXM.class OMproxy.class libnative.so |
|
|
|
|
configure: |
|
|
|
|
clean: |
clean: |
find . -name '*.class' \ |
find . -name '*.class' \ |
-exec echo rm -f {} \; \ |
-exec echo rm -f {} \; \ |
|
|
if ! test -d $(LIBDIR); then \ |
if ! test -d $(LIBDIR); then \ |
mkdir -p $(LIBDIR); \ |
mkdir -p $(LIBDIR); \ |
fi |
fi |
cp ${.ALLSRC} $(LIBDIR) |
cp `find . -name '*.class'` $(TARGETS) $(LIBDIR) |
|
|
|
|
install2: |
install2: |
|
|
|
|
test: |
test: |
$(JAVADIR)/bin/javac -d . -deprecation -g *.java |
$(JAVABINDIR)javac -d . -deprecation -g *.java |
make libnative.so |
make libnative.so |
|
|
|
|
.SUFFIXES: .java .class |
.SUFFIXES: .java .class |
|
|
|
|
.java.class : |
.java.class: |
$(JAVADIR)/bin/javac -d . -O ${.IMPSRC} |
$(JAVABINDIR)javac -d . -O $< |
|
|
|
|
OpenXM.jar: JP/ac/kobe_u/math/tam/OpenXM/{OpenXM,*}.class |
OpenXM.jar: JP/ac/kobe_u/math/tam/OpenXM/*.java |
@$(JAVADIR)/bin/javac -d . -O JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java |
$(JAVABINDIR)javac -d . -O $? |
@#$(JAVADIR)/bin/javac -d . -O ${.OODATE} |
touch $@ |
$(JAVADIR)/bin/jar cf OpenXM.jar `find JP/ -name '*.class'` |
-@#$(JAVABINDIR)jar cf OpenXM.jar `find JP/ -name '*.class'` |
|
|
|
|
OMproxy.h: OMproxy.class |
OMproxy.h: OMproxy.class |
$(JAVADIR)/bin/javah -jni ${.PREFIX} |
-$(JAVABINDIR)javah -jni $* |
|
|
|
|
libnative.so: native.c OMproxy.h |
libnative.so: native.c OMproxy.h |