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

1.1       ohara       1: # -*- mode: Makefile; coding: euc-japan -*-
1.3     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.2 1999/11/02 06:11:57 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 -DSTREAM_PIPE
                     22: CDEFS  = -DDEBUG
                     23: INCDIR = -I${ADDONSDIR} ${GMPINC}
                     24: LIBDIR = -L${ADDONSDIR} -L.
1.2       ohara      25: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1       ohara      26:
                     27: #SOLLIBS  = -lsocket -lnsl
                     28: MATHLIBS = -lML  -lm
                     29: LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS}
                     30:
                     31: LIBOBJS = ox.o parse.o mysocket.o
                     32:
                     33: all: libox.a bconv testclient ox_math math2ox
                     34:
1.3     ! ohara      35: configure:
        !            36:        @(cd ${OpenXM_HOME}/src; ${MAKE} configure)
        !            37:        @(cd ${OpenXM_HOME}/src/gmp; ./configure; make)
        !            38:
1.1       ohara      39: bconv.o:  ox.h oxtag.h parse.h
                     40: parse.o:  ox.h oxtag.h parse.h
1.2       ohara      41: ox.o:     ox.h oxtag.h parse.h mysocket.h
1.1       ohara      42: testclient.o: ox.h oxtag.h
                     43: serv1.o:  ox.h oxtag.h serv2.h
                     44: serv2.o:  ox.h oxtag.h serv2.h
                     45:
                     46: libgmp.a:
                     47:        @if [ ! -f ${GMPSRC}/libgmp.a ]; then \
1.3     ! ohara      48:                ${MAKE} configure; \
1.1       ohara      49:        fi
1.3     ! ohara      50:        cp -f ${GMPSRC}/libgmp.a .
1.1       ohara      51:
                     52: libox.a: ${LIBOBJS} libgmp.a
                     53:        -rm -f $@
                     54:        ar -rc $@ ${LIBOBJS}
                     55:        ranlib $@
                     56:
                     57: bconv: bconv.o libox.a
                     58:        ${CC} ${CFLAGS} -o $@ bconv.o ${LIBS}
                     59:
                     60: testclient: testclient.o libox.a
                     61:        ${CC} ${CFLAGS} -o $@ testclient.o ${LIBS}
                     62:
                     63: ox_math: serv1.o serv2.o libox.a
                     64:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o ${LIBS}
                     65:
                     66: math2ox: math2ox.o math2.o libox.a
                     67:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o ${LIBS}
                     68:
                     69: sample : sample.o libox.a
                     70:        ${CC} ${CFLAGS} -o $@ sample.o ${LIBS}
                     71:
                     72: math2.c: math2.tm
                     73:        -rm -f $@
                     74:        ${MPREP} $? > $@
                     75:
                     76: install-openXM-bin: ox_math math2ox
1.3     ! ohara      77:        install -c -m 755 ox_math math2ox testclient bconv ${OpenXM_HOME}/bin/
1.1       ohara      78:
                     79: clean:
                     80:        -rm -f *.o *~ libox.a libgmp.a math2.c
                     81:        -rm -f bconv testclient ox_math math2ox
                     82:        -rm -f sample

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