Annotation of OpenXM/src/ox_math/Makefile.solaris, Revision 1.5
1.1 ohara 1: # -*- mode: Makefile; coding: euc-japan -*-
1.5 ! ohara 2: # $OpenXM: OpenXM/src/ox_math/Makefile.solaris,v 1.4 1999/11/07 12:12:55 ohara Exp $
1.1 ohara 3:
4: #
5: PREFIX=/usr/local
6:
7: MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits
8: SYS = Solaris
9: ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
10: MPREP = ${ADDONSDIR}/mprep
11:
12: # ADDONSDIR =
13:
14: CC = gcc
1.5 ! ohara 15: GMPSRC = ${OpenXM_HOME}/src/gmp
! 16: GMPINC = -I${GMPSRC}
1.1 ohara 17:
18: CDEFS = -DDEBUG
19: INCDIR = -I${ADDONSDIR} ${GMPINC}
20: LIBDIR = -L${ADDONSDIR} -L.
1.3 ohara 21: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1 ohara 22:
23: SOLLIBS = -lsocket -lnsl
24: MATHLIBS = -lML -lm
25: LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS}
26:
27: LIBOBJS = ox.o parse.o mysocket.o
1.4 ohara 28: BINARIES = bconv testclient ox_math math2ox
1.1 ohara 29:
1.4 ohara 30: all: libox.a $(BINARIES)
1.1 ohara 31:
1.3 ohara 32: configure:
33: @(cd ${OpenXM_HOME}/src; ${MAKE} configure)
34: @(cd ${OpenXM_HOME}/src/gmp; ./configure; make)
35:
1.4 ohara 36: bconv.o: ox.h oxtag.h parse.h
37: math2ox.o: ox.h oxtag.h parse.h
38: mysocket.o: mysocket.h
39: ox.o: ox.h oxtag.h parse.h mysocket.h
40: parse.o: ox.h oxtag.h parse.h
41: serv1.o: ox.h oxtag.h serv2.h
42: serv2.o: ox.h oxtag.h parse.h serv2.h
1.1 ohara 43: testclient.o: ox.h oxtag.h
44:
45: libgmp.a:
46: @if [ ! -f ${GMPSRC}/libgmp.a ]; then \
1.3 ohara 47: ${MAKE} configure; \
1.1 ohara 48: fi
1.3 ohara 49: cp -f ${GMPSRC}/libgmp.a .
1.1 ohara 50:
51: libox.a: ${LIBOBJS} libgmp.a
52: -rm -f $@
53: ar -rc $@ ${LIBOBJS}
54: ranlib $@
55:
56: bconv: bconv.o libox.a
57: ${CC} ${CFLAGS} -o $@ bconv.o ${LIBS}
58:
59: testclient: testclient.o libox.a
60: ${CC} ${CFLAGS} -o $@ testclient.o ${LIBS}
61:
62: ox_math: serv1.o serv2.o libox.a
63: ${CC} ${CFLAGS} -o $@ serv2.o serv1.o ${LIBS}
64:
1.5 ! ohara 65: math2ox: math2ox.o math2.o serv2.o libox.a
! 66: ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o ${LIBS}
1.1 ohara 67:
68: sample : sample.o libox.a
69: ${CC} ${CFLAGS} -o $@ sample.o ${LIBS}
70:
71: math2.c: math2.tm
72: -rm -f $@
73: ${MPREP} $? > $@
74:
1.4 ohara 75: install-openXM-bin: $(BINARIES)
76: install -c -m 755 $(BINARIES) ${OpenXM_HOME}/bin/
1.1 ohara 77:
78: clean:
79: -rm -f *.o *~ libox.a libgmp.a math2.c
80: -rm -f bconv testclient ox_math math2ox
81: -rm -f sample
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>