version 1.9, 2000/01/17 11:07:12 |
version 1.37, 2000/11/28 10:06:45 |
|
|
# |
# |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.8 2000/01/17 10:41:51 tam Exp $ |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.36 2000/11/27 08:15:07 ohara Exp $ |
|
|
|
OpenXM_HOME = ../.. |
|
INSTALLDIR = ${OpenXM_HOME}/lib/java-support |
|
|
JAVADIR = /usr/local/jdk1.1.8 |
#JAVADIR = /usr/local/jdk1.1.8/ |
LIBDIR = ../../lib/java-support |
#JAVABINDIR = ${JAVADIR}bin/ |
|
#JAVAINCLUDEDIR = ${JAVADIR}include |
|
#JAVAINCLUDEDIR = /usr/local/include/kaffe |
|
|
|
JAVAC = ${JAVABINDIR}javac |
|
JAVAH = ${JAVABINDIR}javah |
|
JAR = ${JAVABINDIR}jar |
|
|
configure: |
JFLAGS = -O -g -deprecation |
|
|
|
# TARGETS = OMproxy.class OM2OXM.class ORG/openxm/tam/OpenXM.class |
|
TARGETS = OMproxy.class |
|
|
all: OpenXM.jar OM2OXM.class OMproxy.class libnative.so |
.SUFFIXES: .java .class |
|
|
|
.java.class: |
|
${JAVAC} ${JFLAGS} -d . $< |
|
|
clean: |
all: ${TARGETS} |
find . -name '*.class' \ |
|
-exec echo rm -f {} \; \ |
|
-exec rm -f {} \; |
|
-rm -f *.so *.h *.jar |
|
|
|
|
configure: |
|
|
|
clean: |
|
-find . -name '*~' | xargs rm -f |
|
-find . -name '*.class' | xargs rm -f OpenXM.jar |
|
|
distclean: clean |
distclean: clean |
find . -name '*~' \ |
|
-exec echo rm -f {} \; \ |
|
-exec rm -f {} \; |
|
|
|
|
install: all |
|
-mkdir -p ${INSTALLDIR} |
|
find . -name '*.class' | xargs tar cf - ${TARGETS} | \ |
|
(cd ${INSTALLDIR} ; tar xf -) |
|
|
install: all |
OpenXM.jar: all |
if ! test -d $(LIBDIR); then \ |
find ORG -name '*.class' | xargs ${JAR} cf OpenXM.jar |
mkdir -p $(LIBDIR); \ |
|
fi |
|
cp ${.ALLSRC} $(LIBDIR) |
|
|
|
install2: |
|
|
|
|
|
test: |
|
$(JAVADIR)/bin/javac -d . -deprecation -g *.java |
|
make libnative.so |
|
|
|
|
|
.SUFFIXES: .java .class |
|
|
|
|
|
.java.class : |
|
$(JAVADIR)/bin/javac -d . -O ${.IMPSRC} |
|
|
|
|
|
OpenXM.jar: JP/ac/kobe_u/math/tam/OpenXM/{OpenXM,*}.class |
|
@$(JAVADIR)/bin/javac -d . -O JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java |
|
@#$(JAVADIR)/bin/javac -d . -O ${.OODATE} |
|
$(JAVADIR)/bin/jar cf OpenXM.jar `find JP/ -name '*.class'` |
|
|
|
|
|
OMproxy.h: OMproxy.class |
|
$(JAVADIR)/bin/javah -jni ${.PREFIX} |
|
|
|
|
|
libnative.so: native.c OMproxy.h |
|
cc -o libnative.so native.c \ |
|
-shared `find $(JAVADIR)/include/ -type d | sed 's/^/-I/'` |
|