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