=================================================================== RCS file: /home/cvs/OpenXM/src/ox_math/Makefile.in,v retrieving revision 1.3 retrieving revision 1.18 diff -u -p -r1.3 -r1.18 --- OpenXM/src/ox_math/Makefile.in 2000/03/08 05:55:52 1.3 +++ OpenXM/src/ox_math/Makefile.in 2003/09/10 16:00:09 1.18 @@ -1,37 +1,51 @@ # -*- mode: Makefile -*- -# $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.2 2000/02/14 09:35:00 ohara Exp $ +# $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.17 2003/03/30 08:07:09 ohara Exp $ OpenXM_HOME=../.. PREFIX = @prefix@ SYS = @ml_system@ -ADDONSDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits/${SYS}/CompilerAdditions +ADDONSDIR = /usr/local/mathematica/AddOns/MathLink/DevelopersKits/${SYS}/CompilerAdditions MPREP = ${ADDONSDIR}/mprep LN = @LN_S@ CC = @CC@ -DEFS = -DDEBUG +DEFS = @DEFS@ CFLAGS = -g -O2 ${DEFS} -I${ADDONSDIR} -I${OpenXM_HOME}/include -LIBS = @LIBS@ -L${OpenXM_HOME} -lox -lgmp -L${ADDONSDIR} -lML -lm +GMPLIB = @GMPLIB@ +LIBS = @LIBS@ -L${OpenXM_HOME}/lib -lox -lgc -L${ADDONSDIR} -lML -lm +# STATIC_LINK_FLAGS = @static_link_flags@ +TM_C = math2.c int.c -BINARIES = ox_math math2ox +BINARIES = ox_math math2ox test1 test2 INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ +.SUFFIXES: .tm .c + +.tm.c: + -rm -f $@ + ${MPREP} $? > $@ + all: ${BINARIES} -serv1.o serv2.o mlo.o: serv2.h +math2.o: math2.c +int.o: int.c -ox_math: serv1.o serv2.o mlo.o - ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS} +test1: test1.o mlo.o + ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ test1.o mlo.o ${LIBS} -math2ox: math2ox.o math2.o mlo.o serv2.o - ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS} +test2: test2.o int.o + ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ test2.o int.o ${LIBS} -math2.c: math2.tm - -rm -f $@ - ${MPREP} $? > $@ +serv1.o sm.o sm_ext.o mlo.o: sm.h +ox_math: serv1.o sm.o sm_ext.o mlo.o + ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ serv1.o sm.o sm_ext.o mlo.o ${LIBS} + +math2ox: math2ox.o math2.o mlo.o + ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ math2ox.o math2.o mlo.o ${LIBS} + install: install-binary install-document install-document: @@ -57,7 +71,7 @@ clean-for-debug: clean-binary: clean-for-debug clean: - -rm -f *.o *~ math2.c ox_math math2ox + -rm -f *.o *~ ${TM_C} ${BINARIES} distclean: clean - -rm -f .configure_done configure config.cache config.log config.status Makefile + -rm -f .configure_done config.cache config.log config.status Makefile