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

Annotation of OpenXM/src/ox_math/Makefile.linux, Revision 1.4

1.1       ohara       1: # -*- mode: Makefile; coding: euc-japan -*-
1.4     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.3 1999/11/03 10:56:40 ohara Exp $
1.1       ohara       3:
                      4: #
                      5: PREFIX=/usr/local
                      6:
                      7: MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits
                      8: #SYS = Solaris
                      9: SYS = Linux
                     10: ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
                     11: MPREP = ${ADDONSDIR}/mprep
                     12:
                     13: # ADDONSDIR =
                     14:
                     15: CC = gcc
1.3       ohara      16: #GMPSRC = ${OpenXM_HOME}/src/gmp
1.1       ohara      17: GMPSRC = ${PREFIX}/lib
1.3       ohara      18: #GMPINC = -I${GMPSRC}
                     19: GMPINC = -I${PREFIX}/include
1.1       ohara      20:
                     21: CDEFS  = -DDEBUG
                     22: INCDIR = -I${ADDONSDIR} ${GMPINC}
                     23: LIBDIR = -L${ADDONSDIR} -L.
1.2       ohara      24: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1       ohara      25:
                     26: #SOLLIBS  = -lsocket -lnsl
                     27: MATHLIBS = -lML  -lm
                     28: LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS}
                     29:
                     30: LIBOBJS = ox.o parse.o mysocket.o
                     31:
                     32: all: libox.a bconv testclient ox_math math2ox
                     33:
1.3       ohara      34: configure:
                     35:        @(cd ${OpenXM_HOME}/src; ${MAKE} configure)
                     36:        @(cd ${OpenXM_HOME}/src/gmp; ./configure; make)
                     37:
1.1       ohara      38: bconv.o:  ox.h oxtag.h parse.h
                     39: parse.o:  ox.h oxtag.h parse.h
1.2       ohara      40: ox.o:     ox.h oxtag.h parse.h mysocket.h
1.1       ohara      41: testclient.o: ox.h oxtag.h
                     42: serv1.o:  ox.h oxtag.h serv2.h
                     43: serv2.o:  ox.h oxtag.h serv2.h
                     44:
                     45: libgmp.a:
                     46:        @if [ ! -f ${GMPSRC}/libgmp.a ]; then \
1.3       ohara      47:                ${MAKE} configure; \
1.1       ohara      48:        fi
1.3       ohara      49:        cp -f ${GMPSRC}/libgmp.a .
1.1       ohara      50:
                     51: libox.a: ${LIBOBJS} libgmp.a
                     52:        -rm -f $@
                     53:        ar -rc $@ ${LIBOBJS}
                     54:        ranlib $@
                     55:
                     56: bconv: bconv.o libox.a
                     57:        ${CC} ${CFLAGS} -o $@ bconv.o ${LIBS}
                     58:
                     59: testclient: testclient.o libox.a
                     60:        ${CC} ${CFLAGS} -o $@ testclient.o ${LIBS}
                     61:
                     62: ox_math: serv1.o serv2.o libox.a
                     63:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o ${LIBS}
                     64:
                     65: math2ox: math2ox.o math2.o libox.a
                     66:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o ${LIBS}
                     67:
                     68: sample : sample.o libox.a
                     69:        ${CC} ${CFLAGS} -o $@ sample.o ${LIBS}
                     70:
                     71: math2.c: math2.tm
                     72:        -rm -f $@
                     73:        ${MPREP} $? > $@
                     74:
1.4     ! ohara      75: install-openXM-bin: ox_math math2ox testclient bconv
1.3       ohara      76:        install -c -m 755 ox_math math2ox testclient bconv ${OpenXM_HOME}/bin/
1.1       ohara      77:
                     78: clean:
                     79:        -rm -f *.o *~ libox.a libgmp.a math2.c
                     80:        -rm -f bconv testclient ox_math math2ox
                     81:        -rm -f sample

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