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

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

1.1       tam         1: #
1.12    ! tam         2: # $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.11 2000/01/17 15:42:00 tam Exp $
1.7       tam         3:
                      4:
1.11      tam         5: JAVADIR = /usr/local/jdk1.1.8/
                      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:
                     42:        $(JAVADIR)/bin/javac -d . -deprecation -g *.java
                     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:        @echo jar
        !            55:        @#$(JAVABINDIR)javac -d . -O JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java
        !            56:        $(JAVABINDIR)javac -d . -O $?
1.11      tam        57:        -$(JAVABINDIR)jar cf OpenXM.jar `find JP/ -name '*.class'`
1.7       tam        58:
                     59:
                     60: OMproxy.h:     OMproxy.class
1.12    ! tam        61:        -$(JAVABINDIR)javah -jni $*
1.7       tam        62:
                     63:
                     64: libnative.so:  native.c OMproxy.h
                     65:        cc -o libnative.so native.c \
                     66:                -shared `find $(JAVADIR)/include/ -type d | sed 's/^/-I/'`

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