version 1.15, 2000/01/19 06:18:50 |
version 1.36, 2000/11/27 08:15:07 |
|
|
# |
# |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.14 2000/01/18 07:59:19 tam Exp $ |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.35 2000/09/13 06:44:55 tam Exp $ |
|
|
OpenXM_HOME = ../.. |
OpenXM_HOME = ../.. |
INSTALLDIR = $(OpenXM_HOME)/lib/java-support |
INSTALLDIR = $(OpenXM_HOME)/lib/java-support |
Line 7 INSTALLDIR = $(OpenXM_HOME)/lib/java-support |
|
Line 7 INSTALLDIR = $(OpenXM_HOME)/lib/java-support |
|
#JAVADIR = /usr/local/jdk1.1.8/ |
#JAVADIR = /usr/local/jdk1.1.8/ |
#JAVABINDIR = $(JAVADIR)bin/ |
#JAVABINDIR = $(JAVADIR)bin/ |
#JAVAINCLUDEDIR = $(JAVADIR)include |
#JAVAINCLUDEDIR = $(JAVADIR)include |
JAVAINCLUDEDIR = /usr/local/include/kaffe |
#JAVAINCLUDEDIR = /usr/local/include/kaffe |
|
|
JAVAC = $(JAVABINDIR)javac |
JAVAC = $(JAVABINDIR)javac |
JAVAH = $(JAVABINDIR)javah |
JAVAH = $(JAVABINDIR)javah |
JAR = $(JAVABINDIR)jar |
JAR = $(JAVABINDIR)jar |
|
|
TAR = tar |
PKGSRCS = \ |
|
ORG/openxm/tam/CMO.java \ |
|
ORG/openxm/tam/CMO_BIGFLOAT.java \ |
|
ORG/openxm/tam/CMO_DATUM.java \ |
|
ORG/openxm/tam/CMO_DISTRIBUTED_POLYNOMIAL.java \ |
|
ORG/openxm/tam/CMO_DMS.java \ |
|
ORG/openxm/tam/CMO_DMS_GENERIC.java \ |
|
ORG/openxm/tam/CMO_ERROR2.java \ |
|
ORG/openxm/tam/CMO_INDETERMINATE.java \ |
|
ORG/openxm/tam/CMO_INT32.java \ |
|
ORG/openxm/tam/CMO_LIST.java \ |
|
ORG/openxm/tam/CMO_MATHCAP.java \ |
|
ORG/openxm/tam/CMO_MONOMIAL32.java \ |
|
ORG/openxm/tam/CMO_NULL.java \ |
|
ORG/openxm/tam/CMO_POLYNOMIAL_IN_ONE_VARIABLE.java \ |
|
ORG/openxm/tam/CMO_QQ.java \ |
|
ORG/openxm/tam/CMO_RATIONAL.java \ |
|
ORG/openxm/tam/CMO_RECURSIVE_POLYNOMIAL.java \ |
|
ORG/openxm/tam/CMO_STRING.java \ |
|
ORG/openxm/tam/CMO_TREE.java \ |
|
ORG/openxm/tam/CMO_ZERO.java \ |
|
ORG/openxm/tam/CMO_ZZ.java \ |
|
ORG/openxm/tam/MathcapViolation.java \ |
|
ORG/openxm/tam/OXbody.java \ |
|
ORG/openxm/tam/OXmessage.java \ |
|
ORG/openxm/tam/OpenXM.java \ |
|
ORG/openxm/tam/OpenXMserver.java \ |
|
ORG/openxm/tam/OpenXMstream.java \ |
|
ORG/openxm/tam/SM.java |
|
|
PKGSRCS = JP/ac/kobe_u/math/tam/OpenXM/CMO.java \ |
PKGTARGETS = ORG/openxm/tam/CMO.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_BIGFLOAT.java \ |
ORG/openxm/tam/CMO_BIGFLOAT.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_DATUM.java \ |
ORG/openxm/tam/CMO_DATUM.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_DISTRIBUTED_POLYNOMIAL.java \ |
ORG/openxm/tam/CMO_DISTRIBUTED_POLYNOMIAL.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS.java \ |
ORG/openxm/tam/CMO_DMS.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS_GENERIC.java \ |
ORG/openxm/tam/CMO_DMS_GENERIC.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR.java \ |
ORG/openxm/tam/CMO_ERROR2.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR2.java \ |
ORG/openxm/tam/CMO_INDETERMINATE.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_INDETERMINATE.java \ |
ORG/openxm/tam/CMO_INT32.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_INT32.java \ |
ORG/openxm/tam/CMO_LIST.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_LIST.java \ |
ORG/openxm/tam/CMO_MATHCAP.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_MATHCAP.java \ |
ORG/openxm/tam/CMO_MONOMIAL32.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_MONOMIAL32.java \ |
ORG/openxm/tam/CMO_NULL.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_NULL.java \ |
ORG/openxm/tam/CMO_POLYNOMIAL_IN_ONE_VARIABLE.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_POLYNOMIAL_IN_ONE_VARIABLE.java \ |
ORG/openxm/tam/CMO_QQ.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_QQ.java \ |
ORG/openxm/tam/CMO_RATIONAL.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_RATIONAL.java \ |
ORG/openxm/tam/CMO_RECURSIVE_POLYNOMIAL.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_RECURSIVE_POLYNOMIAL.java \ |
ORG/openxm/tam/CMO_STRING.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_STRING.java \ |
ORG/openxm/tam/CMO_TREE.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_TREE.java \ |
ORG/openxm/tam/CMO_ZERO.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_ZERO.java \ |
ORG/openxm/tam/CMO_ZZ.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_ZZ.java \ |
ORG/openxm/tam/MathcapViolation.class \ |
JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java \ |
ORG/openxm/tam/OpenXM.class \ |
JP/ac/kobe_u/math/tam/OpenXM/OpenXMconnection.java \ |
ORG/openxm/tam/OpenXMserver.class \ |
JP/ac/kobe_u/math/tam/OpenXM/SM.java |
ORG/openxm/tam/OpenXMstream.class \ |
PKGTARGETS = JP/ac/kobe_u/math/tam/OpenXM/CMO.class \ |
ORG/openxm/tam/OXbody.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_BIGFLOAT.class \ |
ORG/openxm/tam/OXmessage.class \ |
JP/ac/kobe_u/math/tam/OpenXM/CMO_DATUM.class \ |
ORG/openxm/tam/SM.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/OpenXM.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/OpenXMconnection.class \ |
|
JP/ac/kobe_u/math/tam/OpenXM/SM.class |
|
|
|
TARGETS = OpenXM.jar OM2OXM.class OMproxy.class libnative.so |
TARGETS = OM2OXM.class OMproxy.class |
|
|
|
.SUFFIXES: .java .class |
|
|
all: configure $(TARGETS) |
.java.class: |
|
$(JAVAC) -d . -g -O $< |
|
|
|
all: clean configure OpenXM.jar $(TARGETS) |
|
|
configure: |
configure: |
|
|
|
|
clean: |
clean: |
-rm -f *.so *.h *.jar *.class $(PKGTARGETS) |
-find . -name '*.class' | xargs rm -f *.jar |
|
|
|
|
distclean: clean |
distclean: clean |
find . -name '*~' \ |
-find . -name '*~' | xargs rm -f |
-exec echo rm -f {} \; \ |
|
-exec rm -f {} \; |
|
|
|
|
|
install: all |
install: all |
if ! test -d $(INSTALLDIR); then \ |
-mkdir -p $(INSTALLDIR) |
mkdir -p $(INSTALLDIR); \ |
find . -name '*.class' | \ |
fi |
xargs tar cf - $(TARGETS) | \ |
$(TAR) cf - $(PKGTARGETS) $(TARGETS) | \ |
(cd $(INSTALLDIR) ; tar xf -) |
(cd $(INSTALLDIR) ; $(TAR) xf -) |
|
|
|
|
|
install2: |
install2: |
|
|
|
|
test: |
test: |
$(JAVAC) -d . -deprecation -g *.java |
$(JAVAC) -d . -deprecation -g *.java |
make libnative.so |
|
|
|
|
|
.SUFFIXES: .java .class |
|
|
|
|
|
.java.class: |
|
$(JAVAC) -d . -O $< |
|
|
|
|
|
OpenXM.jar: $(PKGSRCS) |
OpenXM.jar: $(PKGSRCS) |
$(JAVAC) -d . -O $? |
-$(JAVAC) -d . -g -O $? |
@touch $@ |
# -@touch $@ |
-@#$(JAR) cf $@ $(PKGTARGETS) |
# -@$(JAR) cf $@ $(PKGTARGETS) |
|
|
|
|
OMproxy.h: OMproxy.class |
|
-$(JAVAH) -jni $* |
|
|
|
|
|
libnative.so: native.c OMproxy.h |
|
-$(CC) -o libnative.so native.c \ |
|
-shared `find $(JAVAINCLUDEDIR) -type d | sed 's/^/-I/'` |
|