[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.11

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

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