[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / OpenXM / src / OpenMath

Annotation of OpenXM/src/OpenMath/Makefile, Revision 1.10

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>