version 1.13, 2000/01/17 17:09:24 |
version 1.37, 2000/11/28 10:06:45 |
|
|
# |
# |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.12 2000/01/17 16:53:43 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/ |
#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 |
|
|
all: configure $(TARGETS) |
# TARGETS = OMproxy.class OM2OXM.class ORG/openxm/tam/OpenXM.class |
|
TARGETS = OMproxy.class |
|
|
|
.SUFFIXES: .java .class |
|
|
configure: |
.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: |
|
$(JAVABINDIR)javac -d . -deprecation -g *.java |
|
make libnative.so |
|
|
|
|
|
.SUFFIXES: .java .class |
|
|
|
|
|
.java.class: |
|
$(JAVABINDIR)javac -d . -O $< |
|
|
|
|
|
OpenXM.jar: JP/ac/kobe_u/math/tam/OpenXM/*.java |
|
$(JAVABINDIR)javac -d . -O $? |
|
touch $@ |
|
-@#$(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/'` |
|