Annotation of OpenXM/src/ox_math/Makefile.OSF1, Revision 1.1
1.1 ! noro 1: # -*- mode: Makefile -*-
! 2: # $OpenXM$
! 3:
! 4: PREFIX=/usr/local
! 5: OpenXM_HOME=../..
! 6:
! 7: MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits
! 8: SYS = DEC-AXP
! 9: ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
! 10: MPREP = ${ADDONSDIR}/mprep
! 11:
! 12: GMPSRC = ${OpenXM_HOME}/src/gmp
! 13:
! 14: CDEFS = -DDEBUG
! 15: INCDIR = -I${ADDONSDIR} -I${GMPSRC} -I${OpenXM_HOME}/src/ox_toolkit
! 16: LIBDIR = -L${ADDONSDIR} -L.
! 17: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
! 18:
! 19: LIBS = -lox -lgmp -lML -lm
! 20:
! 21: BINARIES = ox_math math2ox
! 22:
! 23: all: libgmp.a libox.a ${BINARIES}
! 24:
! 25: serv1.o serv2.o mlo.o: serv2.h
! 26:
! 27: libgmp.a:
! 28: test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE})
! 29: ln -s -f ${GMPSRC}/libgmp.a .
! 30:
! 31: libox.a:
! 32: -rm -f libox.a
! 33: (cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a)
! 34: ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a .
! 35:
! 36: ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a
! 37: ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
! 38:
! 39: math2ox: math2ox.o math2.o mlo.o serv2.o libox.a libgmp.a
! 40: ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
! 41:
! 42: math2.c: math2.tm
! 43: -rm -f $@
! 44: ${MPREP} $? > $@
! 45:
! 46: install: install-binary install-document
! 47:
! 48: install-document:
! 49: (cd documents; ${MAKE} install-document)
! 50:
! 51: install-binary:
! 52: -if [ -x ${MPREP} ]; then \
! 53: ${MAKE} install-binary-real ; \
! 54: fi
! 55:
! 56: install-binary-real: ${BINARIES}
! 57: install -c -m 755 ${BINARIES} ${OpenXM_HOME}/bin/
! 58: (cd lib; ${MAKE} install)
! 59:
! 60: install-for-debug: ${BINARIES}
! 61: -for i in ${BINARIES}; do \
! 62: ln -s -f ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
! 63: done
! 64:
! 65: clean-for-debug:
! 66: (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
! 67:
! 68: clean-binary: clean-for-debug
! 69:
! 70: clean:
! 71: -rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>