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

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

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

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