Annotation of OpenXM/src/ox_math/Makefile.solaris, Revision 1.7
1.7 ! ohara 1: # -*- mode: Makefile -*-
! 2: # $OpenXM: OpenXM/src/ox_math/Makefile.solaris,v 1.6 1999/12/09 22:52:49 ohara Exp $
1.1 ohara 3:
4: PREFIX=/usr/local
5:
6: MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits
7: SYS = Solaris
8: ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
9: MPREP = ${ADDONSDIR}/mprep
10:
11: CC = gcc
1.5 ohara 12: GMPSRC = ${OpenXM_HOME}/src/gmp
1.1 ohara 13:
14: CDEFS = -DDEBUG
1.7 ! ohara 15: INCDIR = -I${ADDONSDIR} -I${GMPSRC} -I${OpenXM_HOME}/src/ox_toolkit
1.1 ohara 16: LIBDIR = -L${ADDONSDIR} -L.
1.3 ohara 17: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1 ohara 18:
1.7 ! ohara 19: LIBS = -lox -lgmp -lML -lm -lsocket -lnsl
1.1 ohara 20:
1.7 ! ohara 21: BINARIES = ox_math math2ox
1.1 ohara 22:
1.7 ! ohara 23: all: libgmp.a libox.a ${BINARIES}
1.1 ohara 24:
1.6 ohara 25: serv1.o serv2.o mlo.o: serv2.h
1.1 ohara 26:
27: libgmp.a:
1.6 ohara 28: test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE})
29: -rm -f libgmp.a
30: ln -s ${GMPSRC}/libgmp.a .
31:
32: libox.a:
33: -rm -f libox.a
1.7 ! ohara 34: (cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a)
1.6 ohara 35: ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a .
1.1 ohara 36:
1.6 ohara 37: ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a
38: ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
1.1 ohara 39:
1.6 ohara 40: math2ox: math2ox.o math2.o mlo.o serv2.o libox.a libgmp.a
41: ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
1.1 ohara 42:
43: math2.c: math2.tm
44: -rm -f $@
45: ${MPREP} $? > $@
46:
1.7 ! ohara 47: install-bin: ${BINARIES}
! 48: install -c -m 755 ${BINARIES} ${OpenXM_HOME}/bin/
1.6 ohara 49:
1.7 ! ohara 50: install: ${BINARIES}
! 51: -for i in ${BINARIES}; do \
! 52: ln -s -f ../src/ox_math/$$i ${OpenXM_HOME}/bin ; \
! 53: done
1.1 ohara 54:
55: clean:
1.7 ! ohara 56: -rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>