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

Annotation of OpenXM/src/ox_math/Makefile.cygwin, Revision 1.2

1.1       ohara       1: # -*- mode: Makefile -*-
1.2     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.cygwin,v 1.1 2002/08/15 02:31:52 ohara Exp $
1.1       ohara       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: 
1.2     ! ohara      23: .SUFFIXES: .tm .c
        !            24: 
        !            25: .tm.c:
        !            26:        -rm -f $@
        !            27:        ${MPREP} $? > $@
        !            28: 
1.1       ohara      29: all: ${BINARIES}
                     30: 
                     31: serv1.o sm.o sm_ext.o mlo.o: sm.h
                     32: 
                     33: ox_math: serv1.o sm.o sm_ext.o mlo.o
                     34:        ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ sm.o sm_ext.o serv1.o mlo.o ${LIBS}
                     35: 
1.2     ! ohara      36: math2ox: math2ox.o math2.o mlo.o sm.o sm_ext.o
1.1       ohara      37:        ${CC} ${CFLAGS} ${STATIC_LINK_FLAGS} -o $@ math2ox.o math2.o sm.o sm_ext.o mlo.o ${LIBS}
                     38: 
                     39: install: install-binary install-document
                     40: 
                     41: install-document:
                     42:        (cd documents; ${MAKE} install-document)
                     43: 
                     44: install-binary:
                     45:        if [ -x ${MPREP} ]; then \
                     46:                ${MAKE} install-binary-real ; \
                     47:        fi
                     48: 
                     49: install-binary-real: ${BINARIES}
                     50:        ${INSTALL_PROGRAM} ${BINARIES} ${OpenXM_HOME}/bin/
                     51:        (cd lib; ${MAKE} install)
                     52: 
                     53: install-for-debug: ${BINARIES}
                     54:        -for i in ${BINARIES}; do \
                     55:                ${LN} ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
                     56:        done
                     57: 
                     58: clean-for-debug: 
                     59:        (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
                     60: 
                     61: clean-binary: clean-for-debug
                     62: 
                     63: clean:
                     64:        -rm -f *.o *~ math2.c ox_math math2ox
                     65: 
                     66: distclean: clean
                     67:        -rm -f .configure_done configure config.cache config.log config.status Makefile
                     68: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>