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

1.7       ohara       1: # -*- mode: Makefile -*-
1.8     ! noro        2: # $OpenXM: OpenXM/src/ox_math/Makefile.solaris,v 1.7 1999/12/15 05:40:21 ohara 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.7       ohara      48: install-bin: ${BINARIES}
                     49:        install -c -m 755  ${BINARIES} ${OpenXM_HOME}/bin/
1.6       ohara      50:
1.7       ohara      51: install: ${BINARIES}
                     52:        -for i in ${BINARIES}; do \
                     53:                ln -s -f ../src/ox_math/$$i ${OpenXM_HOME}/bin ; \
                     54:        done
1.1       ohara      55:
                     56: clean:
1.7       ohara      57:        -rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox

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