version 1.11, 2000/01/17 15:42:00 |
version 1.37, 2000/11/28 10:06:45 |
|
|
# |
# |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.10 2000/01/17 13:43:50 takayama 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/ |
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 |
|
|
|
JFLAGS = -O -g -deprecation |
|
|
configure: |
# TARGETS = OMproxy.class OM2OXM.class ORG/openxm/tam/OpenXM.class |
|
TARGETS = OMproxy.class |
|
|
|
.SUFFIXES: .java .class |
|
|
all: $(TARGETS) |
.java.class: |
|
${JAVAC} ${JFLAGS} -d . $< |
|
|
|
all: ${TARGETS} |
|
|
|
configure: |
|
|
clean: |
clean: |
find . -name '*.class' \ |
-find . -name '*~' | xargs rm -f |
-exec echo rm -f {} \; \ |
-find . -name '*.class' | xargs rm -f OpenXM.jar |
-exec rm -f {} \; |
|
-rm -f *.so *.h *.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 `find . -name '*.class'` $(TARGETS) $(LIBDIR) |
|
|
|
|
|
install2: |
|
|
|
|
|
test: |
|
$(JAVADIR)/bin/javac -d . -deprecation -g *.java |
|
make libnative.so |
|
|
|
|
|
.SUFFIXES: .java .class |
|
|
|
|
|
.java.class : |
|
$(JAVABINDIR)javac -d . -O ${.IMPSRC} |
|
|
|
|
|
OpenXM.jar: JP/ac/kobe_u/math/tam/OpenXM/{OpenXM,*}.class |
|
@$(JAVABINDIR)javac -d . -O JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java |
|
@#$(JAVADIR)/bin/javac -d . -O ${.OODATE} |
|
-$(JAVABINDIR)jar cf OpenXM.jar `find JP/ -name '*.class'` |
|
|
|
|
|
OMproxy.h: OMproxy.class |
|
-$(JAVABINDIR)javah -jni ${.PREFIX} |
|
|
|
|
|
libnative.so: native.c OMproxy.h |
|
cc -o libnative.so native.c \ |
|
-shared `find $(JAVADIR)/include/ -type d | sed 's/^/-I/'` |
|