Annotation of OpenXM/src/ox_math/Makefile.in, Revision 1.4
1.1 ohara 1: # -*- mode: Makefile -*-
1.4 ! ohara 2: # $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.3 2000/03/08 05:55:52 ohara Exp $
1.1 ohara 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: 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.1 ohara 16:
17: BINARIES = ox_math math2ox
18: INSTALL = @INSTALL@
19: INSTALL_PROGRAM = @INSTALL_PROGRAM@
20:
1.3 ohara 21: all: ${BINARIES}
1.1 ohara 22:
23: serv1.o serv2.o mlo.o: serv2.h
24:
1.3 ohara 25: ox_math: serv1.o serv2.o mlo.o
1.1 ohara 26: ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
27:
1.3 ohara 28: math2ox: math2ox.o math2.o mlo.o serv2.o
1.1 ohara 29: ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
30:
31: math2.c: math2.tm
32: -rm -f $@
33: ${MPREP} $? > $@
34:
35: install: install-binary install-document
36:
37: install-document:
38: (cd documents; ${MAKE} install-document)
39:
40: install-binary:
41: if [ -x ${MPREP} ]; then \
42: ${MAKE} install-binary-real ; \
43: fi
44:
45: install-binary-real: ${BINARIES}
46: ${INSTALL_PROGRAM} ${BINARIES} ${OpenXM_HOME}/bin/
47: (cd lib; ${MAKE} install)
48:
49: install-for-debug: ${BINARIES}
50: -for i in ${BINARIES}; do \
51: ${LN} ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
52: done
53:
54: clean-for-debug:
55: (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
56:
57: clean-binary: clean-for-debug
58:
59: clean:
1.3 ohara 60: -rm -f *.o *~ math2.c ox_math math2ox
61:
62: distclean: clean
63: -rm -f .configure_done configure config.cache config.log config.status Makefile
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>