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

Annotation of OpenXM/src/ox_math/Makefile.FreeBSD, Revision 1.2

1.1       ohara       1: # -*- mode: Makefile; coding: euc-japan -*-
                      2: # $OpenXM$
                      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
                     16: #GMPSRC = ../kan96xx/gmp-2.0.2
                     17: GMPSRC = /usr/lib
                     18: #GMPINC = -I${GMPSRC}
                     19: #GMPINC = -I${PREFIX}/include
                     20:
                     21: # CDEFS = -DDEBUG -DSTREAM_PIPE
                     22: CDEFS  = -DDEBUG
                     23: INCDIR = -I${ADDONSDIR} ${GMPINC}
                     24: LIBDIR = -L${ADDONSDIR} -L.
                     25: CFLAGS = -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
                     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
                     34:
                     35: bconv.o:  ox.h oxtag.h parse.h
                     36: parse.o:  ox.h oxtag.h parse.h
1.2     ! ohara      37: ox.o:     ox.h oxtag.h parse.h mysocket.h
1.1       ohara      38: testclient.o: ox.h oxtag.h
                     39: serv1.o:  ox.h oxtag.h serv2.h
                     40: serv2.o:  ox.h oxtag.h serv2.h
                     41:
                     42: libgmp.a:
                     43:        @if [ ! -f ${GMPSRC}/libgmp.a ]; then \
                     44:                (cd ${GMPSRC}; ./configure; make) \
                     45:        fi
1.2     ! ohara      46:        @if [ ! -f ./libgmp.a ]; then \
        !            47:                cp ${GMPSRC}/libgmp.a . ; \
        !            48:        fi
1.1       ohara      49:
                     50: libox.a: ${LIBOBJS} libgmp.a
                     51:        -rm -f $@
                     52:        ar -rc $@ ${LIBOBJS}
                     53:        ranlib $@
                     54:
                     55: bconv: bconv.o libox.a
                     56:        ${CC} ${CFLAGS} -o $@ bconv.o ${LIBS}
                     57:
                     58: testclient: testclient.o libox.a
                     59:        ${CC} ${CFLAGS} -o $@ testclient.o ${LIBS}
                     60:
                     61: ox_math: serv1.o serv2.o libox.a
                     62:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o ${LIBS}
                     63:
                     64: math2ox: math2ox.o math2.o libox.a
                     65:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o ${LIBS}
                     66:
                     67: sample : sample.o libox.a
                     68:        ${CC} ${CFLAGS} -o $@ sample.o ${LIBS}
                     69:
                     70: math2.c: math2.tm
                     71:        -rm -f $@
                     72:        ${MPREP} $? > $@
                     73:
                     74: install-openXM-bin: ox_math math2ox
                     75:        install -c -m 755 ox_math math2ox ${OpenXM_HOME}/bin/
                     76:
                     77: clean:
                     78:        -rm -f *.o *~ libox.a libgmp.a math2.c
                     79:        -rm -f bconv testclient ox_math math2ox
                     80:        -rm -f sample

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