version 1.12, 2000/01/17 16:53:43 |
version 1.19, 2000/01/21 14:50:04 |
|
|
# |
# |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.11 2000/01/17 15:42:00 tam Exp $ |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.18 2000/01/20 18:14:32 tam Exp $ |
|
|
|
OpenXM_HOME = ../.. |
|
INSTALLDIR = $(OpenXM_HOME)/lib/java-support |
|
|
JAVADIR = /usr/local/jdk1.1.8/ |
#JAVADIR = /usr/local/jdk1.1.8/ |
JAVABINDIR = $(JAVADIR)bin/ |
#JAVABINDIR = $(JAVADIR)bin/ |
LIBDIR = ../../lib/java-support |
#JAVAINCLUDEDIR = $(JAVADIR)include |
|
JAVAINCLUDEDIR = /usr/local/include/kaffe |
|
|
TARGETS = OpenXM.jar OM2OXM.class OMproxy.class libnative.so |
JAVAC = $(JAVABINDIR)javac |
|
JAVAH = $(JAVABINDIR)javah |
|
JAR = $(JAVABINDIR)jar |
|
|
|
TAR = tar |
|
|
all: configure $(TARGETS) |
PKGSRCS = JP/ac/kobe_u/math/tam/OpenXM/CMO.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_BIGFLOAT.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_DATUM.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_DISTRIBUTED_POLYNOMIAL.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS_GENERIC.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR2.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_INDETERMINATE.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_INT32.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_LIST.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_MATHCAP.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_MONOMIAL32.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_NULL.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_POLYNOMIAL_IN_ONE_VARIABLE.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_QQ.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_RATIONAL.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_RECURSIVE_POLYNOMIAL.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_STRING.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_TREE.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_ZERO.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_ZZ.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/DebugInputStream.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/MathcapViolation.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/OpenXMconnection.java \ |
|
JP/ac/kobe_u/math/tam/OpenXM/SM.java |
|
PKGTARGETS = JP/ac/kobe_u/math/tam/OpenXM/CMO.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_BIGFLOAT.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_DATUM.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_DISTRIBUTED_POLYNOMIAL.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS_GENERIC.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR2.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_INDETERMINATE.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_INT32.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_LIST.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_MATHCAP.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_MONOMIAL32.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_NULL.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_POLYNOMIAL_IN_ONE_VARIABLE.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_QQ.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_RATIONAL.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_RECURSIVE_POLYNOMIAL.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_STRING.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_TREE.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_ZERO.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/CMO_ZZ.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/DebugInputStream.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/MathcapViolation.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/OpenXM.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/OpenXMconnection.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/SM.class |
|
|
|
TARGETS = OM2OXM.class OMproxy.class |
|
|
|
|
|
all: configure OpenXM.jar $(TARGETS) |
|
|
|
|
configure: |
configure: |
|
|
|
|
clean: |
clean: |
find . -name '*.class' \ |
-rm -f *.jar *.class $(PKGTARGETS) |
-exec echo rm -f {} \; \ |
|
-exec rm -f {} \; |
|
-rm -f *.so *.h *.jar |
|
|
|
|
|
distclean: clean |
distclean: clean |
|
|
|
|
|
|
install: all |
install: all |
if ! test -d $(LIBDIR); then \ |
if ! test -d $(INSTALLDIR); then \ |
mkdir -p $(LIBDIR); \ |
mkdir -p $(INSTALLDIR); \ |
fi |
fi |
cp `find . -name '*.class'` $(TARGETS) $(LIBDIR) |
$(TAR) cf - $(PKGTARGETS) $(TARGETS) | \ |
|
(cd $(INSTALLDIR) ; $(TAR) xf -) |
|
|
|
|
install2: |
install2: |
|
|
|
|
test: |
test: |
$(JAVADIR)/bin/javac -d . -deprecation -g *.java |
$(JAVAC) -d . -deprecation -g *.java |
make libnative.so |
|
|
|
|
|
.SUFFIXES: .java .class |
.SUFFIXES: .java .class |
|
|
|
|
.java.class: |
.java.class: |
$(JAVABINDIR)javac -d . -O $< |
$(JAVAC) -d . -O $< |
|
|
|
|
OpenXM.jar: JP/ac/kobe_u/math/tam/OpenXM/*.java |
OpenXM.jar: $(PKGSRCS) |
@echo jar |
$(JAVAC) -d . -O $? |
@#$(JAVABINDIR)javac -d . -O JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java |
@#touch $@ |
$(JAVABINDIR)javac -d . -O $? |
-@#$(JAR) cf $@ $(PKGTARGETS) |
-$(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/'` |
|