Annotation of OpenXM/src/ox_math/Makefile.cygwin, Revision 1.1
1.1 ! ohara 1: # -*- mode: Makefile -*-
! 2: # $OpenXM$
! 3:
! 4: OpenXM_HOME=../..
! 5:
! 6: PREFIX = /usr/local
! 7: SYS =
! 8: ADDONSDIR = mathlink/mldev32
! 9: MPREP = ${ADDONSDIR}/bin/mprep
! 10:
! 11: LN = ln -s
! 12: CC = gcc
! 13: DEFS = -DDEBUG -mwindows -DWIN32_MATHLINK
! 14: CFLAGS = -g -O2 ${DEFS} -I${ADDONSDIR}/include -I${OpenXM_HOME}/include
! 15: LIBS = -L${OpenXM_HOME}/lib -L${ADDONSDIR}/lib -lox -lgmp -lml32i1 -lml32i2 -lm
! 16: STATIC_LINK_FLAGS = -e _mainCRTStartup
! 17:
! 18:
! 19: BINARIES = ox_math math2ox
! 20: INSTALL = /usr/bin/install -c
! 21: INSTALL_PROGRAM = ${INSTALL}
! 22:
! 23: all: ${BINARIES}
! 24:
! 25: serv1.o sm.o sm_ext.o mlo.o: sm.h
! 26:
! 27: ox_math: serv1.o sm.o sm_ext.o mlo.o
! 28: ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ sm.o sm_ext.o serv1.o mlo.o ${LIBS}
! 29:
! 30: math2ox: math2ox.o math2.o mlo.o sm_ext.o
! 31: ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ math2ox.o math2.o sm.o sm_ext.o mlo.o ${LIBS}
! 32:
! 33: math2.c: math2.tm
! 34: -rm -f $@
! 35: ${MPREP} $? > $@
! 36:
! 37: install: install-binary install-document
! 38:
! 39: install-document:
! 40: (cd documents; ${MAKE} install-document)
! 41:
! 42: install-binary:
! 43: if [ -x ${MPREP} ]; then \
! 44: ${MAKE} install-binary-real ; \
! 45: fi
! 46:
! 47: install-binary-real: ${BINARIES}
! 48: ${INSTALL_PROGRAM} ${BINARIES} ${OpenXM_HOME}/bin/
! 49: (cd lib; ${MAKE} install)
! 50:
! 51: install-for-debug: ${BINARIES}
! 52: -for i in ${BINARIES}; do \
! 53: ${LN} ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
! 54: done
! 55:
! 56: clean-for-debug:
! 57: (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
! 58:
! 59: clean-binary: clean-for-debug
! 60:
! 61: clean:
! 62: -rm -f *.o *~ math2.c ox_math math2ox
! 63:
! 64: distclean: clean
! 65: -rm -f .configure_done configure config.cache config.log config.status Makefile
! 66:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>