Annotation of OpenXM/src/OpenMath/Makefile, Revision 1.14
1.1 tam 1: #
1.14 ! tam 2: # $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.13 2000/01/17 17:09:24 tam Exp $
1.7 tam 3:
1.14 ! tam 4: OpenXM_HOME ?= ../..
! 5: INSTALLDIR = $(OpenXM_HOME)/lib/java-support
1.7 tam 6:
1.14 ! tam 7: #JAVADIR = /usr/local/jdk1.1.8/
1.13 tam 8: #JAVABINDIR = $(JAVADIR)bin/
1.14 ! tam 9: #JAVAINCLUDEDIR = $(JAVADIR)include
! 10: JAVAINCLUDEDIR = /usr/local/include/kaffe
! 11:
! 12: JAVAC = $(JAVABINDIR)javac
! 13: JAVAH = $(JAVABINDIR)javah
! 14: JAR = $(JAVABINDIR)jar
! 15:
! 16: TAR = tar
! 17:
! 18: PKGSRCS = JP/ac/kobe_u/math/tam/OpenXM/CMO.java \
! 19: JP/ac/kobe_u/math/tam/OpenXM/CMO_BIGFLOAT.java \
! 20: JP/ac/kobe_u/math/tam/OpenXM/CMO_DATUM.java \
! 21: JP/ac/kobe_u/math/tam/OpenXM/CMO_DISTRIBUTED_POLYNOMIAL.java \
! 22: JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS.java \
! 23: JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS_GENERIC.java \
! 24: JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR.java \
! 25: JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR2.java \
! 26: JP/ac/kobe_u/math/tam/OpenXM/CMO_INDETERMINATE.java \
! 27: JP/ac/kobe_u/math/tam/OpenXM/CMO_INT32.java \
! 28: JP/ac/kobe_u/math/tam/OpenXM/CMO_LIST.java \
! 29: JP/ac/kobe_u/math/tam/OpenXM/CMO_MATHCAP.java \
! 30: JP/ac/kobe_u/math/tam/OpenXM/CMO_MONOMIAL32.java \
! 31: JP/ac/kobe_u/math/tam/OpenXM/CMO_NULL.java \
! 32: JP/ac/kobe_u/math/tam/OpenXM/CMO_POLYNOMIAL_IN_ONE_VARIABLE.java \
! 33: JP/ac/kobe_u/math/tam/OpenXM/CMO_QQ.java \
! 34: JP/ac/kobe_u/math/tam/OpenXM/CMO_RATIONAL.java \
! 35: JP/ac/kobe_u/math/tam/OpenXM/CMO_RECURSIVE_POLYNOMIAL.java \
! 36: JP/ac/kobe_u/math/tam/OpenXM/CMO_STRING.java \
! 37: JP/ac/kobe_u/math/tam/OpenXM/CMO_TREE.java \
! 38: JP/ac/kobe_u/math/tam/OpenXM/CMO_ZERO.java \
! 39: JP/ac/kobe_u/math/tam/OpenXM/CMO_ZZ.java \
! 40: JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java \
! 41: JP/ac/kobe_u/math/tam/OpenXM/OpenXMconnection.java \
! 42: JP/ac/kobe_u/math/tam/OpenXM/SM.java
! 43: PKGTARGETS = JP/ac/kobe_u/math/tam/OpenXM/CMO.class \
! 44: JP/ac/kobe_u/math/tam/OpenXM/CMO_BIGFLOAT.class \
! 45: JP/ac/kobe_u/math/tam/OpenXM/CMO_DATUM.class \
! 46: JP/ac/kobe_u/math/tam/OpenXM/CMO_DISTRIBUTED_POLYNOMIAL.class \
! 47: JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS.class \
! 48: JP/ac/kobe_u/math/tam/OpenXM/CMO_DMS_GENERIC.class \
! 49: JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR.class \
! 50: JP/ac/kobe_u/math/tam/OpenXM/CMO_ERROR2.class \
! 51: JP/ac/kobe_u/math/tam/OpenXM/CMO_INDETERMINATE.class \
! 52: JP/ac/kobe_u/math/tam/OpenXM/CMO_INT32.class \
! 53: JP/ac/kobe_u/math/tam/OpenXM/CMO_LIST.class \
! 54: JP/ac/kobe_u/math/tam/OpenXM/CMO_MATHCAP.class \
! 55: JP/ac/kobe_u/math/tam/OpenXM/CMO_MONOMIAL32.class \
! 56: JP/ac/kobe_u/math/tam/OpenXM/CMO_NULL.class \
! 57: JP/ac/kobe_u/math/tam/OpenXM/CMO_POLYNOMIAL_IN_ONE_VARIABLE.class \
! 58: JP/ac/kobe_u/math/tam/OpenXM/CMO_QQ.class \
! 59: JP/ac/kobe_u/math/tam/OpenXM/CMO_RATIONAL.class \
! 60: JP/ac/kobe_u/math/tam/OpenXM/CMO_RECURSIVE_POLYNOMIAL.class \
! 61: JP/ac/kobe_u/math/tam/OpenXM/CMO_STRING.class \
! 62: JP/ac/kobe_u/math/tam/OpenXM/CMO_TREE.class \
! 63: JP/ac/kobe_u/math/tam/OpenXM/CMO_ZERO.class \
! 64: JP/ac/kobe_u/math/tam/OpenXM/CMO_ZZ.class \
! 65: JP/ac/kobe_u/math/tam/OpenXM/OpenXM.class \
! 66: JP/ac/kobe_u/math/tam/OpenXM/OpenXMconnection.class \
! 67: JP/ac/kobe_u/math/tam/OpenXM/SM.class
1.7 tam 68:
1.11 tam 69: TARGETS = OpenXM.jar OM2OXM.class OMproxy.class libnative.so
70:
1.7 tam 71:
1.12 tam 72: all: configure $(TARGETS)
1.8 tam 73:
74:
1.12 tam 75: configure:
1.1 tam 76:
77:
78: clean:
1.14 ! tam 79: -rm -f *.so *.h *.jar *.class $(PKGTARGETS)
1.1 tam 80:
81:
1.7 tam 82: distclean: clean
1.1 tam 83: find . -name '*~' \
84: -exec echo rm -f {} \; \
85: -exec rm -f {} \;
86:
1.7 tam 87:
1.8 tam 88: install: all
1.14 ! tam 89: if ! test -d $(INSTALLDIR); then \
! 90: mkdir -p $(INSTALLDIR); \
1.7 tam 91: fi
1.14 ! tam 92: $(TAR) cf - $(PKGTARGETS) $(TARGETS) | \
! 93: (cd $(INSTALLDIR) ; $(TAR) xf -)
1.11 tam 94:
1.8 tam 95:
96: install2:
97:
98:
99: test:
1.14 ! tam 100: $(JAVAC) -d . -deprecation -g *.java
1.8 tam 101: make libnative.so
1.7 tam 102:
103:
104: .SUFFIXES: .java .class
105:
106:
1.12 tam 107: .java.class:
1.14 ! tam 108: $(JAVAC) -d . -O $<
1.7 tam 109:
110:
1.14 ! tam 111: OpenXM.jar: $(PKGSRCS)
! 112: $(JAVAC) -d . -O $?
! 113: @touch $@
! 114: -@#$(JAR) cf $@ $(PKGTARGETS)
1.7 tam 115:
116:
117: OMproxy.h: OMproxy.class
1.14 ! tam 118: -$(JAVAH) -jni $*
1.7 tam 119:
120:
121: libnative.so: native.c OMproxy.h
1.14 ! tam 122: -$(CC) -o libnative.so native.c \
! 123: -shared `find $(JAVAINCLUDEDIR) -type d | sed 's/^/-I/'`
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>