[BACK]Return to Makefile.in CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_math

File: [local] / OpenXM / src / ox_math / Makefile.in (download)

Revision 1.20, Thu Mar 3 06:48:15 2005 UTC (19 years, 2 months ago) by ohara
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.19: +2 -3 lines

Removed an option --with-gmp of configure.

# -*- mode: Makefile -*-
# $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.20 2005/03/03 06:48:15 ohara Exp $

OpenXM_HOME=../..

PREFIX    = @prefix@
SYS       = @ml_system@
ADDONSDIR = /usr/local/mathematica/AddOns/MathLink/DevelopersKits/${SYS}/CompilerAdditions
MPREP     = ${ADDONSDIR}/mprep

LN        = @LN_S@
CC        = @CC@
DEFS      = @DEFS@
CFLAGS    = -g -O2 ${DEFS} -I${ADDONSDIR} -I${OpenXM_HOME}/include
LIBS      = @LIBS@ -L${OpenXM_HOME}/lib -lox -lgc -L${ADDONSDIR} -lML -lm -lgmp
# STATIC_LINK_FLAGS = @static_link_flags@
TM_C      = math2.c int.c

BINARIES  = ox_math math2ox test1 test2
INSTALL   = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

.SUFFIXES: .tm .c

.tm.c:
	-rm -f $@
	${MPREP} $? > $@

all: ${BINARIES}

math2.o: math2.c
int.o: int.c

test1: test1.o mlo.o
	${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ test1.o mlo.o ${LIBS}

test2: test2.o int.o 
	${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ test2.o int.o ${LIBS}

serv1.o sm.o sm_ext.o mlo.o: sm.h

ox_math: serv1.o sm.o sm_ext.o mlo.o
	${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ serv1.o sm.o sm_ext.o mlo.o ${LIBS}

math2ox: math2ox.o math2.o mlo.o
	${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ math2ox.o math2.o mlo.o ${LIBS}

install: install-binary install-document

install-document:
	(cd documents; ${MAKE} install-document)

install-binary:
	if [ -x ${MPREP} ]; then \
		${MAKE} install-binary-real ; \
	fi

install-binary-real: ${BINARIES}
	${INSTALL_PROGRAM} ${BINARIES} ${OpenXM_HOME}/bin/
	(cd lib; ${MAKE} install)

install-for-debug: ${BINARIES}
	-for i in ${BINARIES}; do \
		${LN} ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
	done

clean-for-debug: 
	(cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})

clean-binary: clean-for-debug

clean:
	-rm -f *.o *~ ${TM_C} ${BINARIES}

distclean: clean
	-rm -f .configure_done config.cache config.log config.status Makefile