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

Annotation of OpenXM/src/ox_math/Makefile.solaris, Revision 1.9

1.7       ohara       1: # -*- mode: Makefile -*-
1.9     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.solaris,v 1.8 2000/01/19 06:18:50 noro Exp $
1.1       ohara       3:
                      4: PREFIX=/usr/local
1.8       noro        5: OpenXM_HOME=../..
1.1       ohara       6:
                      7: MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits
                      8: SYS = Solaris
                      9: ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
                     10: MPREP = ${ADDONSDIR}/mprep
                     11:
                     12: CC = gcc
1.5       ohara      13: GMPSRC = ${OpenXM_HOME}/src/gmp
1.1       ohara      14:
                     15: CDEFS  = -DDEBUG
1.7       ohara      16: INCDIR = -I${ADDONSDIR} -I${GMPSRC} -I${OpenXM_HOME}/src/ox_toolkit
1.1       ohara      17: LIBDIR = -L${ADDONSDIR} -L.
1.3       ohara      18: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1       ohara      19:
1.7       ohara      20: LIBS = -lox -lgmp -lML -lm -lsocket -lnsl
1.1       ohara      21:
1.7       ohara      22: BINARIES = ox_math math2ox
1.1       ohara      23:
1.7       ohara      24: all: libgmp.a libox.a ${BINARIES}
1.1       ohara      25:
1.6       ohara      26: serv1.o serv2.o mlo.o: serv2.h
1.1       ohara      27:
                     28: libgmp.a:
1.6       ohara      29:        test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE})
                     30:        -rm -f libgmp.a
                     31:        ln -s ${GMPSRC}/libgmp.a .
                     32:
                     33: libox.a:
                     34:        -rm -f libox.a
1.7       ohara      35:        (cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a)
1.6       ohara      36:        ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a .
1.1       ohara      37:
1.6       ohara      38: ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a
                     39:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
1.1       ohara      40:
1.6       ohara      41: math2ox: math2ox.o math2.o mlo.o serv2.o libox.a libgmp.a
                     42:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
1.1       ohara      43:
                     44: math2.c: math2.tm
                     45:        -rm -f $@
                     46:        ${MPREP} $? > $@
                     47:
1.9     ! ohara      48: install: install-binary install-document
        !            49:
        !            50: install-document:
        !            51:        (cd documents; ${MAKE} install-document)
        !            52:
        !            53: install-binary: ${BINARIES}
1.7       ohara      54:        install -c -m 755  ${BINARIES} ${OpenXM_HOME}/bin/
1.9     ! ohara      55:        (cd lib; ${MAKE} install)
1.6       ohara      56:
1.9     ! ohara      57: install-for-debug: ${BINARIES}
1.7       ohara      58:        -for i in ${BINARIES}; do \
1.9     ! ohara      59:                ln -s -f ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
1.7       ohara      60:        done
1.9     ! ohara      61:
        !            62: clean-for-debug:
        !            63:        (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
1.1       ohara      64:
                     65: clean:
1.7       ohara      66:        -rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox

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