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

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

1.1       tam         1: #
1.11    ! tam         2: # $OpenXM: OpenXM/src/OpenMath/Makefile,v 1.10 2000/01/17 13:43:50 takayama 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.8       tam        12: configure:
                     13:
                     14:
1.11    ! tam        15: all:   $(TARGETS)
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:
                     49: .java.class :
1.11    ! tam        50:        $(JAVABINDIR)javac -d . -O ${.IMPSRC}
1.7       tam        51:
                     52:
                     53: OpenXM.jar:    JP/ac/kobe_u/math/tam/OpenXM/{OpenXM,*}.class
1.11    ! tam        54:        @$(JAVABINDIR)javac -d . -O JP/ac/kobe_u/math/tam/OpenXM/OpenXM.java
1.7       tam        55:        @#$(JAVADIR)/bin/javac -d . -O ${.OODATE}
1.11    ! tam        56:        -$(JAVABINDIR)jar cf OpenXM.jar `find JP/ -name '*.class'`
1.7       tam        57:
                     58:
                     59: OMproxy.h:     OMproxy.class
1.11    ! tam        60:        -$(JAVABINDIR)javah -jni ${.PREFIX}
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>