[BACK]Return to Makefile.linux CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_math

Annotation of OpenXM/src/ox_math/Makefile.linux, Revision 1.13

1.10      ohara       1: # -*- mode: Makefile -*-
1.13    ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.12 2000/01/19 06:18:50 noro Exp $
1.1       ohara       3:
                      4: PREFIX=/usr/local
1.12      noro        5: OpenXM_HOME=../..
1.1       ohara       6:
                      7: MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits
                      8: SYS = Linux
                      9: ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
                     10: MPREP = ${ADDONSDIR}/mprep
                     11:
1.7       ohara      12: GMPSRC = ${OpenXM_HOME}/src/gmp
1.1       ohara      13:
                     14: CDEFS  = -DDEBUG
1.10      ohara      15: INCDIR = -I${ADDONSDIR} -I${GMPSRC} -I${OpenXM_HOME}/src/ox_toolkit
1.1       ohara      16: LIBDIR = -L${ADDONSDIR} -L.
1.2       ohara      17: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1       ohara      18:
1.10      ohara      19: LIBS = -lox -lgmp -lML -lm
1.1       ohara      20:
1.10      ohara      21: BINARIES = ox_math math2ox
1.1       ohara      22:
1.10      ohara      23: all: libgmp.a libox.a ${BINARIES}
1.1       ohara      24:
1.9       ohara      25: serv1.o serv2.o mlo.o: serv2.h
1.1       ohara      26:
                     27: libgmp.a:
1.9       ohara      28:        test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE})
                     29:        ln -s -f ${GMPSRC}/libgmp.a .
1.1       ohara      30:
1.9       ohara      31: libox.a:
                     32:        -rm -f libox.a
                     33:        (cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a)
                     34:        ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a .
1.1       ohara      35:
1.9       ohara      36: ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a
1.8       ohara      37:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
1.1       ohara      38:
1.9       ohara      39: math2ox: math2ox.o math2.o mlo.o serv2.o libox.a libgmp.a
1.8       ohara      40:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
1.1       ohara      41:
                     42: math2.c: math2.tm
                     43:        -rm -f $@
                     44:        ${MPREP} $? > $@
                     45:
1.13    ! ohara      46: install: install-binary install-document
        !            47:
        !            48: install-document:
        !            49:        (cd documents; ${MAKE} install-document)
        !            50:
        !            51: install-binary: ${BINARIES}
1.10      ohara      52:        install -c -m 755  ${BINARIES} ${OpenXM_HOME}/bin/
1.13    ! ohara      53:        (cd lib; ${MAKE} install)
1.9       ohara      54:
1.11      ohara      55: install-for-debug: ${BINARIES}
1.10      ohara      56:        -for i in ${BINARIES}; do \
1.11      ohara      57:                ln -s -f ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
1.10      ohara      58:        done
1.11      ohara      59:
                     60: clean-for-debug:
                     61:        (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
1.1       ohara      62:
                     63: clean:
1.10      ohara      64:        -rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox

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