[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.4, Wed Mar 8 06:43:29 2000 UTC (24 years, 2 months ago) by ohara
Branch: MAIN
Changes since 1.3: +2 -2 lines

I have fixed a bug.

# -*- mode: Makefile -*-
# $OpenXM: OpenXM/src/ox_math/Makefile.in,v 1.4 2000/03/08 06:43:29 ohara Exp $

OpenXM_HOME=../..

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

LN        = @LN_S@
CC        = @CC@
DEFS      = -DDEBUG
CFLAGS    = -g -O2 ${DEFS} -I${ADDONSDIR} -I${OpenXM_HOME}/include
LIBS      = @LIBS@ -L${OpenXM_HOME}/lib -lox -lgmp -L${ADDONSDIR} -lML -lm

BINARIES  = ox_math math2ox
INSTALL   = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@

all: ${BINARIES}

serv1.o serv2.o mlo.o: serv2.h

ox_math: serv1.o serv2.o mlo.o
	${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}

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

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

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 *~ math2.c ox_math math2ox

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