Annotation of OpenXM/src/ox_math/Makefile.linux, Revision 1.14
1.10 ohara 1: # -*- mode: Makefile -*-
1.14 ! ohara 2: # $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.13 2000/01/20 15:28:50 ohara 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:
1.14 ! ohara 51: install-binary:
! 52: -if [ -x ${MPREP} ]; then \
! 53: ${MAKE} install-binary-real ; \
! 54: fi
! 55:
! 56: install-binary-real: ${BINARIES}
1.10 ohara 57: install -c -m 755 ${BINARIES} ${OpenXM_HOME}/bin/
1.13 ohara 58: (cd lib; ${MAKE} install)
1.9 ohara 59:
1.11 ohara 60: install-for-debug: ${BINARIES}
1.10 ohara 61: -for i in ${BINARIES}; do \
1.11 ohara 62: ln -s -f ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
1.10 ohara 63: done
1.11 ohara 64:
1.14 ! ohara 65: clean-for-debug:
1.11 ohara 66: (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
1.14 ! ohara 67:
! 68: clean-binary: clean-for-debug
1.1 ohara 69:
70: clean:
1.10 ohara 71: -rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>