version 1.6, 1999/12/09 22:52:49 |
version 1.8, 2000/01/19 06:18:50 |
|
|
# -*- mode: Makefile; coding: euc-japan -*- |
# -*- mode: Makefile -*- |
# $OpenXM: OpenXM/src/ox_math/Makefile.solaris,v 1.5 1999/11/23 02:03:14 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_math/Makefile.solaris,v 1.7 1999/12/15 05:40:21 ohara Exp $ |
|
|
# |
|
PREFIX=/usr/local |
PREFIX=/usr/local |
|
OpenXM_HOME=../.. |
|
|
MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits |
MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits |
SYS = Solaris |
SYS = Solaris |
Line 11 MPREP = ${ADDONSDIR}/mprep |
|
Line 11 MPREP = ${ADDONSDIR}/mprep |
|
|
|
CC = gcc |
CC = gcc |
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 -lsocket -lnsl |
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 |
|
|
|
|
|
|
libox.a: |
libox.a: |
-rm -f libox.a |
-rm -f libox.a |
(cd ../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 54 math2.c: math2.tm |
|
Line 45 math2.c: math2.tm |
|
-rm -f $@ |
-rm -f $@ |
${MPREP} $? > $@ |
${MPREP} $? > $@ |
|
|
install-bin: $(BINARIES) |
install-bin: ${BINARIES} |
install -c -m 755 $(BINARIES) ${OpenXM_HOME}/bin/ |
install -c -m 755 ${BINARIES} ${OpenXM_HOME}/bin/ |
|
|
install: $(BINARIES) |
install: ${BINARIES} |
-ln -s $(BINARIES) ${OpenXM_HOME}/bin |
-for i in ${BINARIES}; do \ |
|
ln -s -f ../src/ox_math/$$i ${OpenXM_HOME}/bin ; \ |
|
done |
|
|
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 |
|