Annotation of OpenXM/src/ox_math/Makefile.in, Revision 1.17
1.1 ohara 1: # -*- mode: Makefile -*-
1.17 ! ohara 2: # $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.16 2003/03/23 21:56:11 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@
1.16 ohara 13: DEFS = @DEFS@
1.3 ohara 14: CFLAGS = -g -O2 ${DEFS} -I${ADDONSDIR} -I${OpenXM_HOME}/include
1.16 ohara 15: GMPLIB = @GMPLIB@
16: LIBS = @LIBS@ -L${OpenXM_HOME}/lib -lox ${GMPLIB} -L${ADDONSDIR} -lML -lm
1.6 ohara 17: STATIC_LINK_FLAGS = @static_link_flags@
1.13 ohara 18: TM_C = math2.c int.c
1.6 ohara 19:
1.13 ohara 20: BINARIES = ox_math math2ox test1 test2
1.1 ohara 21: INSTALL = @INSTALL@
22: INSTALL_PROGRAM = @INSTALL_PROGRAM@
23:
1.10 ohara 24: .SUFFIXES: .tm .c
25:
26: .tm.c:
27: -rm -f $@
28: ${MPREP} $? > $@
29:
1.3 ohara 30: all: ${BINARIES}
1.15 ohara 31:
32: math2.o: math2.c
33: int.o: int.c
1.1 ohara 34:
1.13 ohara 35: test1: test1.o mlo.o
36: ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ test1.o mlo.o ${LIBS}
37:
38: test2: test2.o int.o
39: ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ test2.o int.o ${LIBS}
40:
1.8 ohara 41: serv1.o sm.o sm_ext.o mlo.o: sm.h
1.1 ohara 42:
1.8 ohara 43: ox_math: serv1.o sm.o sm_ext.o mlo.o
1.14 ohara 44: ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ serv1.o sm.o sm_ext.o mlo.o ${LIBS}
1.1 ohara 45:
1.14 ohara 46: math2ox: math2ox.o math2.o mlo.o
47: ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ math2ox.o math2.o mlo.o ${LIBS}
1.1 ohara 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:
1.13 ohara 74: -rm -f *.o *~ ${TM_C} ${BINARIES}
1.3 ohara 75:
76: distclean: clean
1.17 ! ohara 77: -rm -f .configure_done config.cache config.log config.status Makefile
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>