version 1.4, 1999/11/05 08:41:19 |
version 1.6, 1999/11/19 20:51:36 |
|
|
# -*- mode: Makefile; coding: euc-japan -*- |
# -*- mode: Makefile; coding: euc-japan -*- |
# $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.3 1999/11/03 10:56:40 ohara Exp $ |
# $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.5 1999/11/07 12:12:55 ohara Exp $ |
|
|
# |
# |
PREFIX=/usr/local |
PREFIX=/usr/local |
Line 28 MATHLIBS = -lML -lm |
|
Line 28 MATHLIBS = -lML -lm |
|
LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS} |
LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS} |
|
|
LIBOBJS = ox.o parse.o mysocket.o |
LIBOBJS = ox.o parse.o mysocket.o |
|
BINARIES = bconv testclient ox_math math2ox |
|
|
all: libox.a bconv testclient ox_math math2ox |
all: libox.a $(BINARIES) |
|
|
configure: |
configure: |
@(cd ${OpenXM_HOME}/src; ${MAKE} configure) |
@(cd ${OpenXM_HOME}/src; ${MAKE} configure) |
@(cd ${OpenXM_HOME}/src/gmp; ./configure; make) |
@(cd ${OpenXM_HOME}/src/gmp; ./configure; make) |
|
|
bconv.o: ox.h oxtag.h parse.h |
bconv.o: ox.h oxtag.h parse.h |
parse.o: ox.h oxtag.h parse.h |
math2ox.o: ox.h oxtag.h parse.h |
ox.o: ox.h oxtag.h parse.h mysocket.h |
mysocket.o: mysocket.h |
|
ox.o: ox.h oxtag.h parse.h mysocket.h |
|
parse.o: ox.h oxtag.h parse.h |
|
serv1.o: ox.h oxtag.h serv2.h |
|
serv2.o: ox.h oxtag.h parse.h serv2.h |
testclient.o: ox.h oxtag.h |
testclient.o: ox.h oxtag.h |
serv1.o: ox.h oxtag.h serv2.h |
|
serv2.o: ox.h oxtag.h serv2.h |
|
|
|
libgmp.a: |
libgmp.a: |
@if [ ! -f ${GMPSRC}/libgmp.a ]; then \ |
@if [ ! -f ${GMPSRC}/libgmp.a ]; then \ |
Line 62 testclient: testclient.o libox.a |
|
Line 65 testclient: testclient.o libox.a |
|
ox_math: serv1.o serv2.o libox.a |
ox_math: serv1.o serv2.o libox.a |
${CC} ${CFLAGS} -o $@ serv2.o serv1.o ${LIBS} |
${CC} ${CFLAGS} -o $@ serv2.o serv1.o ${LIBS} |
|
|
math2ox: math2ox.o math2.o libox.a |
math2ox: math2ox.o math2.o serv2.o libox.a |
${CC} ${CFLAGS} -o $@ math2ox.o math2.o ${LIBS} |
${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o ${LIBS} |
|
|
sample : sample.o libox.a |
sample : sample.o libox.a |
${CC} ${CFLAGS} -o $@ sample.o ${LIBS} |
${CC} ${CFLAGS} -o $@ sample.o ${LIBS} |
Line 72 math2.c: math2.tm |
|
Line 75 math2.c: math2.tm |
|
-rm -f $@ |
-rm -f $@ |
${MPREP} $? > $@ |
${MPREP} $? > $@ |
|
|
install-openXM-bin: ox_math math2ox testclient bconv |
install-openXM-bin: $(BINARIES) |
install -c -m 755 ox_math math2ox testclient bconv ${OpenXM_HOME}/bin/ |
install -c -m 755 $(BINARIES) ${OpenXM_HOME}/bin/ |
|
|
clean: |
clean: |
-rm -f *.o *~ libox.a libgmp.a math2.c |
-rm -f *.o *~ libox.a libgmp.a math2.c |