=================================================================== RCS file: /home/cvs/OpenXM/src/ox_math/Makefile.cygwin,v retrieving revision 1.2 retrieving revision 1.7 diff -u -p -r1.2 -r1.7 --- OpenXM/src/ox_math/Makefile.cygwin 2003/01/11 12:39:11 1.2 +++ OpenXM/src/ox_math/Makefile.cygwin 2005/07/19 10:43:21 1.7 @@ -1,22 +1,21 @@ # -*- mode: Makefile -*- -# $OpenXM: OpenXM/src/ox_math/Makefile.cygwin,v 1.1 2002/08/15 02:31:52 ohara Exp $ +# $OpenXM: OpenXM/src/ox_math/Makefile.cygwin,v 1.6 2003/09/10 20:04:58 ohara Exp $ OpenXM_HOME=../.. PREFIX = /usr/local SYS = -ADDONSDIR = mathlink/mldev32 -MPREP = ${ADDONSDIR}/bin/mprep +ADDONSDIR = mathlink/ml +MPREP = ${ADDONSDIR}/mprep LN = ln -s CC = gcc DEFS = -DDEBUG -mwindows -DWIN32_MATHLINK -CFLAGS = -g -O2 ${DEFS} -I${ADDONSDIR}/include -I${OpenXM_HOME}/include -LIBS = -L${OpenXM_HOME}/lib -L${ADDONSDIR}/lib -lox -lgmp -lml32i1 -lml32i2 -lm +CFLAGS = -g -O2 ${DEFS} -I${ADDONSDIR} -I${OpenXM_HOME}/include +LIBS = -L. -L${OpenXM_HOME}/lib -L${ADDONSDIR} -lox -lgc -lgmp -lml32i1 -lml32i2 -lm STATIC_LINK_FLAGS = -e _mainCRTStartup - -BINARIES = ox_math math2ox +BINARIES = ox_math math2ox test1 test2 INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} @@ -28,13 +27,19 @@ INSTALL_PROGRAM = ${INSTALL} all: ${BINARIES} +test1: test1.o mlo.o + ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ test1.o mlo.o ${LIBS} + +test2: test2.o int.o + ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ test2.o int.o ${LIBS} + 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 $@ sm.o sm_ext.o serv1.o mlo.o ${LIBS} + ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ serv1.o sm.o sm_ext.o mlo.o ${LIBS} -math2ox: math2ox.o math2.o mlo.o sm.o sm_ext.o - ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ math2ox.o math2.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 @@ -56,13 +61,13 @@ install-for-debug: ${BINARIES} done clean-for-debug: - (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES}) + (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES} *.exe) clean-binary: clean-for-debug clean: - -rm -f *.o *~ math2.c ox_math math2ox + -rm -f *.o *~ ${TM_C} ${BINARIES} *.exe distclean: clean -rm -f .configure_done configure config.cache config.log config.status Makefile - + -rm -rf mathlink/ml mathlink/.configure_done