version 1.2, 1999/11/02 14:54:37 |
version 1.37, 2000/11/28 10:06:45 |
|
|
# |
# |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.1.1.1 1999/11/02 11:52:34 tam Exp $ |
# $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.36 2000/11/27 08:15:07 ohara Exp $ |
|
|
make: |
OpenXM_HOME = ../.. |
if test -d ../../lib/java-support |
INSTALLDIR = ${OpenXM_HOME}/lib/java-support |
then |
|
mkdir ../../lib/java-support |
|
fi |
|
javac -d ../../lib/java-support -O *.java |
|
|
|
|
#JAVADIR = /usr/local/jdk1.1.8/ |
|
#JAVABINDIR = ${JAVADIR}bin/ |
|
#JAVAINCLUDEDIR = ${JAVADIR}include |
|
#JAVAINCLUDEDIR = /usr/local/include/kaffe |
|
|
|
JAVAC = ${JAVABINDIR}javac |
|
JAVAH = ${JAVABINDIR}javah |
|
JAR = ${JAVABINDIR}jar |
|
|
|
JFLAGS = -O -g -deprecation |
|
|
|
# TARGETS = OMproxy.class OM2OXM.class ORG/openxm/tam/OpenXM.class |
|
TARGETS = OMproxy.class |
|
|
|
.SUFFIXES: .java .class |
|
|
|
.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 {} \; |
|
|
|
dist: |
distclean: clean |
tar cvfz ../OM2OXM.tgz . |
|
|
|
dist-clean: #clean dist |
install: all |
make clean |
-mkdir -p ${INSTALLDIR} |
find . -name '*~' \ |
find . -name '*.class' | xargs tar cf - ${TARGETS} | \ |
-exec echo rm -f {} \; \ |
(cd ${INSTALLDIR} ; tar xf -) |
-exec rm -f {} \; |
|
|
|
test: |
OpenXM.jar: all |
javac -d . -deprecation -g *.java |
find ORG -name '*.class' | xargs ${JAR} cf OpenXM.jar |