=================================================================== RCS file: /home/cvs/OpenXM/src/OpenMath/Makefile,v retrieving revision 1.2 retrieving revision 1.37 diff -u -p -r1.2 -r1.37 --- OpenXM/src/OpenMath/Makefile 1999/11/02 14:54:37 1.2 +++ OpenXM/src/OpenMath/Makefile 2000/11/28 10:06:45 1.37 @@ -1,26 +1,42 @@ # -# $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: - if test -d ../../lib/java-support - then - mkdir ../../lib/java-support - fi - javac -d ../../lib/java-support -O *.java +OpenXM_HOME = ../.. +INSTALLDIR = ${OpenXM_HOME}/lib/java-support +#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: - find . -name '*.class' \ - -exec echo rm -f {} \; \ - -exec rm -f {} \; + -find . -name '*~' | xargs rm -f + -find . -name '*.class' | xargs rm -f OpenXM.jar -dist: - tar cvfz ../OM2OXM.tgz . +distclean: clean -dist-clean: #clean dist - make 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 -) -test: - javac -d . -deprecation -g *.java +OpenXM.jar: all + find ORG -name '*.class' | xargs ${JAR} cf OpenXM.jar