[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.5

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

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