version 1.2, 2000/02/14 09:35:00 |
version 1.4, 2000/03/08 06:43:29 |
|
|
# -*- mode: Makefile -*- |
# -*- mode: Makefile -*- |
# $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.1 2000/02/08 21:14:01 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.3 2000/03/08 05:55:52 ohara Exp $ |
|
|
OpenXM_HOME=../.. |
OpenXM_HOME=../.. |
|
|
|
|
ADDONSDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits/${SYS}/CompilerAdditions |
ADDONSDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits/${SYS}/CompilerAdditions |
MPREP = ${ADDONSDIR}/mprep |
MPREP = ${ADDONSDIR}/mprep |
|
|
GMPSRC = ${OpenXM_HOME}/src/gmp |
|
OXTK = ${OpenXM_HOME}/src/ox_toolkit |
|
LN = @LN_S@ |
LN = @LN_S@ |
CC = @CC@ |
CC = @CC@ |
DEFS = -DDEBUG |
DEFS = -DDEBUG |
CFLAGS = -g -O2 ${DEFS} -I${ADDONSDIR} -I${GMPSRC} -I${OXTK} |
CFLAGS = -g -O2 ${DEFS} -I${ADDONSDIR} -I${OpenXM_HOME}/include |
LIBS = @LIBS@ -L. -lox -lgmp -L${ADDONSDIR} -lML -lm |
LIBS = @LIBS@ -L${OpenXM_HOME}/lib -lox -lgmp -L${ADDONSDIR} -lML -lm |
|
|
BINARIES = ox_math math2ox |
BINARIES = ox_math math2ox |
INSTALL = @INSTALL@ |
INSTALL = @INSTALL@ |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
|
|
all: libgmp.a libox.a ${BINARIES} |
all: ${BINARIES} |
|
|
serv1.o serv2.o mlo.o: serv2.h |
serv1.o serv2.o mlo.o: serv2.h |
|
|
libgmp.a: |
ox_math: serv1.o serv2.o mlo.o |
if [ ! -d ${GMPSRC} ]; then \ |
|
(cd ${OpenXM_HOME}/src; ${MAKE} configure-links) \ |
|
fi |
|
if [ ! -f ${GMPSRC}/libgmp.a ]; then \ |
|
(cd ${GMPSRC}; ./configure; ${MAKE} libgmp.a) \ |
|
fi |
|
${LN} ${GMPSRC}/libgmp.a . |
|
|
|
libox.a: |
|
if [ ! -f ${OXTK}/libox.a ]; then \ |
|
(cd ${OXTK}; ./make-configure; ${MAKE} libox.a) \ |
|
fi |
|
${LN} ${OXTK}/libox.a . |
|
|
|
ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a |
|
${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS} |
${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS} |
|
|
math2ox: math2ox.o math2.o mlo.o serv2.o libox.a libgmp.a |
math2ox: math2ox.o math2.o mlo.o serv2.o |
${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS} |
${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS} |
|
|
math2.c: math2.tm |
math2.c: math2.tm |
|
|
clean-binary: clean-for-debug |
clean-binary: clean-for-debug |
|
|
clean: |
clean: |
-rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox |
-rm -f *.o *~ math2.c ox_math math2ox |
|
|
|
distclean: clean |
|
-rm -f .configure_done configure config.cache config.log config.status Makefile |