version 1.9, 1999/12/09 22:52:49 |
version 1.11, 2000/01/17 20:28:52 |
|
|
# -*- mode: Makefile; coding: euc-japan -*- |
# -*- mode: Makefile -*- |
# $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.8 1999/11/29 12:14:26 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.10 1999/12/15 05:40:21 ohara Exp $ |
|
|
# |
|
PREFIX=/usr/local |
PREFIX=/usr/local |
|
|
MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits |
MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits |
Line 10 ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions |
|
Line 9 ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions |
|
MPREP = ${ADDONSDIR}/mprep |
MPREP = ${ADDONSDIR}/mprep |
|
|
GMPSRC = ${OpenXM_HOME}/src/gmp |
GMPSRC = ${OpenXM_HOME}/src/gmp |
GMPINC = -I${GMPSRC} |
|
|
|
CDEFS = -DDEBUG |
CDEFS = -DDEBUG |
INCDIR = -I${ADDONSDIR} ${GMPINC} -I${OpenXM_HOME}/src/ox_toolkit |
INCDIR = -I${ADDONSDIR} -I${GMPSRC} -I${OpenXM_HOME}/src/ox_toolkit |
LIBDIR = -L${ADDONSDIR} -L. |
LIBDIR = -L${ADDONSDIR} -L. |
CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR} |
CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR} |
|
|
#SOLLIBS = -lsocket -lnsl |
LIBS = -lox -lgmp -lML -lm |
MATHLIBS = -lML -lm |
|
LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS} |
|
|
|
BINARIES = bconv testclient ox_math math2ox |
BINARIES = ox_math math2ox |
|
|
all: libgmp.a libox.a $(BINARIES) |
all: libgmp.a libox.a ${BINARIES} |
|
|
serv1.o serv2.o mlo.o: serv2.h |
serv1.o serv2.o mlo.o: serv2.h |
|
|
|
|
(cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a) |
(cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a) |
ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a . |
ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a . |
|
|
bconv: bconv.o libox.a libgmp.a |
|
${CC} ${CFLAGS} -o $@ bconv.o ${LIBS} |
|
|
|
testclient: testclient.o libox.a libgmp.a |
|
${CC} ${CFLAGS} -o $@ testclient.o ${LIBS} |
|
|
|
ox_math: serv1.o serv2.o mlo.o libox.a libgmp.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} |
|
|
Line 52 math2.c: math2.tm |
|
Line 42 math2.c: math2.tm |
|
-rm -f $@ |
-rm -f $@ |
${MPREP} $? > $@ |
${MPREP} $? > $@ |
|
|
install-bin: $(BINARIES) |
install: ${BINARIES} |
install -c -m 755 $(BINARIES) ${OpenXM_HOME}/bin/ |
install -c -m 755 ${BINARIES} ${OpenXM_HOME}/bin/ |
|
|
install: $(BINARIES) |
install-for-debug: ${BINARIES} |
-ln -s $(BINARIES) ${OpenXM_HOME}/bin |
-for i in ${BINARIES}; do \ |
|
ln -s -f ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \ |
|
done |
|
|
|
clean-for-debug: |
|
(cd ${OpenXM_HOME}/bin; rm -f ${BINARIES}) |
|
|
clean: |
clean: |
-rm -f *.o *~ libox.a libgmp.a math2.c |
-rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox |
-rm -f bconv testclient ox_math math2ox |
|
-rm -f sample |
|