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