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

Annotation of OpenXM/src/ox_math/Makefile.in, Revision 1.2

1.1       ohara       1: # -*- mode: Makefile -*-
1.2     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.1 2000/02/08 21:14:01 ohara Exp $
1.1       ohara       3:
                      4: OpenXM_HOME=../..
                      5:
                      6: PREFIX    = @prefix@
                      7: SYS       = @ml_system@
                      8: ADDONSDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits/${SYS}/CompilerAdditions
                      9: MPREP     = ${ADDONSDIR}/mprep
                     10:
                     11: GMPSRC    = ${OpenXM_HOME}/src/gmp
                     12: OXTK      = ${OpenXM_HOME}/src/ox_toolkit
                     13: LN        = @LN_S@
                     14: CC        = @CC@
                     15: DEFS      = -DDEBUG
                     16: CFLAGS    = -g -O2 ${DEFS} -I${ADDONSDIR} -I${GMPSRC} -I${OXTK}
                     17: LIBS      = @LIBS@ -L. -lox -lgmp -L${ADDONSDIR} -lML -lm
                     18:
                     19: BINARIES  = ox_math math2ox
                     20: INSTALL   = @INSTALL@
                     21: INSTALL_PROGRAM = @INSTALL_PROGRAM@
                     22:
                     23: all: libgmp.a libox.a ${BINARIES}
                     24:
                     25: serv1.o serv2.o mlo.o: serv2.h
                     26:
                     27: libgmp.a:
1.2     ! ohara      28:        if [ ! -d ${GMPSRC} ]; then \
        !            29:                (cd ${OpenXM_HOME}/src; ${MAKE} configure-links) \
        !            30:        fi
1.1       ohara      31:        if [ ! -f ${GMPSRC}/libgmp.a ]; then \
                     32:                (cd ${GMPSRC}; ./configure; ${MAKE} libgmp.a) \
                     33:        fi
                     34:        ${LN} ${GMPSRC}/libgmp.a .
                     35:
                     36: libox.a:
                     37:        if [ ! -f ${OXTK}/libox.a ]; then \
                     38:                (cd ${OXTK}; ./make-configure; ${MAKE} libox.a) \
                     39:        fi
                     40:        ${LN} ${OXTK}/libox.a .
                     41:
                     42: ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a
                     43:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
                     44:
                     45: math2ox: math2ox.o math2.o mlo.o serv2.o libox.a libgmp.a
                     46:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
                     47:
                     48: math2.c: math2.tm
                     49:        -rm -f $@
                     50:        ${MPREP} $? > $@
                     51:
                     52: install: install-binary install-document
                     53:
                     54: install-document:
                     55:        (cd documents; ${MAKE} install-document)
                     56:
                     57: install-binary:
                     58:        if [ -x ${MPREP} ]; then \
                     59:                ${MAKE} install-binary-real ; \
                     60:        fi
                     61:
                     62: install-binary-real: ${BINARIES}
                     63:        ${INSTALL_PROGRAM} ${BINARIES} ${OpenXM_HOME}/bin/
                     64:        (cd lib; ${MAKE} install)
                     65:
                     66: install-for-debug: ${BINARIES}
                     67:        -for i in ${BINARIES}; do \
                     68:                ${LN} ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
                     69:        done
                     70:
                     71: clean-for-debug:
                     72:        (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
                     73:
                     74: clean-binary: clean-for-debug
                     75:
                     76: clean:
                     77:        -rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox

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