Annotation of OpenXM/src/OpenMath/Makefile, Revision 1.13
1.1 tam 1: #
1.13 ! tam 2: # $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.12 2000/01/17 16:53:43 tam Exp $
1.7 tam 3:
4:
1.11 tam 5: JAVADIR = /usr/local/jdk1.1.8/
1.13 ! tam 6: #JAVABINDIR = $(JAVADIR)bin/
1.7 tam 7: LIBDIR = ../../lib/java-support
8:
1.11 tam 9: TARGETS = OpenXM.jar OM2OXM.class OMproxy.class libnative.so
10:
1.7 tam 11:
1.12 tam 12: all: configure $(TARGETS)
1.8 tam 13:
14:
1.12 tam 15: configure:
1.1 tam 16:
17:
18: clean:
19: find . -name '*.class' \
20: -exec echo rm -f {} \; \
21: -exec rm -f {} \;
1.7 tam 22: -rm -f *.so *.h *.jar
1.1 tam 23:
24:
1.7 tam 25: distclean: clean
1.1 tam 26: find . -name '*~' \
27: -exec echo rm -f {} \; \
28: -exec rm -f {} \;
29:
1.7 tam 30:
1.8 tam 31: install: all
1.7 tam 32: if ! test -d $(LIBDIR); then \
33: mkdir -p $(LIBDIR); \
34: fi
1.11 tam 35: cp `find . -name '*.class'` $(TARGETS) $(LIBDIR)
36:
1.8 tam 37:
38: install2:
39:
40:
41: test:
1.13 ! tam 42: $(JAVABINDIR)javac -d . -deprecation -g *.java
1.8 tam 43: make libnative.so
1.7 tam 44:
45:
46: .SUFFIXES: .java .class
47:
48:
1.12 tam 49: .java.class:
50: $(JAVABINDIR)javac -d . -O $<
1.7 tam 51:
52:
1.12 tam 53: OpenXM.jar: JP/ac/kobe_u/math/tam/OpenXM/*.java
54: $(JAVABINDIR)javac -d . -O $?
1.13 ! tam 55: touch $@
! 56: -@#$(JAVABINDIR)jar cf OpenXM.jar `find JP/ -name '*.class'`
1.7 tam 57:
58:
59: OMproxy.h: OMproxy.class
1.12 tam 60: -$(JAVABINDIR)javah -jni $*
1.7 tam 61:
62:
63: libnative.so: native.c OMproxy.h
64: cc -o libnative.so native.c \
65: -shared `find $(JAVADIR)/include/ -type d | sed 's/^/-I/'`
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>