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

1.1       ohara       1: # -*- mode: Makefile; coding: euc-japan -*-
1.8     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.7 1999/11/23 02:03:14 ohara Exp $
1.1       ohara       3:
                      4: #
                      5: PREFIX=/usr/local
                      6:
                      7: MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits
                      8: SYS = Linux
                      9: ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
                     10: MPREP = ${ADDONSDIR}/mprep
                     11:
                     12: # ADDONSDIR =
                     13:
                     14: CC = gcc
1.7       ohara      15: GMPSRC = ${OpenXM_HOME}/src/gmp
                     16: GMPINC = -I${GMPSRC}
1.1       ohara      17:
                     18: CDEFS  = -DDEBUG
                     19: INCDIR = -I${ADDONSDIR} ${GMPINC}
                     20: LIBDIR = -L${ADDONSDIR} -L.
1.2       ohara      21: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1       ohara      22:
                     23: #SOLLIBS  = -lsocket -lnsl
                     24: MATHLIBS = -lML  -lm
                     25: LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS}
                     26:
                     27: LIBOBJS = ox.o parse.o mysocket.o
1.5       ohara      28: BINARIES = bconv testclient ox_math math2ox
1.1       ohara      29:
1.5       ohara      30: all: libox.a $(BINARIES)
1.1       ohara      31:
1.3       ohara      32: configure:
                     33:        @(cd ${OpenXM_HOME}/src; ${MAKE} configure)
                     34:        @(cd ${OpenXM_HOME}/src/gmp; ./configure; make)
                     35:
1.5       ohara      36: bconv.o:      ox.h oxtag.h parse.h
                     37: math2ox.o:    ox.h oxtag.h parse.h
                     38: mysocket.o:   mysocket.h
                     39: ox.o:         ox.h oxtag.h parse.h mysocket.h
                     40: parse.o:      ox.h oxtag.h parse.h
                     41: serv1.o:      ox.h oxtag.h serv2.h
                     42: serv2.o:      ox.h oxtag.h parse.h serv2.h
1.8     ! ohara      43: mlo.o:        ox.h oxtag.h parse.h serv2.h
1.1       ohara      44: testclient.o: ox.h oxtag.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:
1.8     ! ohara      63: ox_math: serv1.o serv2.o mlo.o libox.a
        !            64:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
1.1       ohara      65:
1.8     ! ohara      66: math2ox: math2ox.o math2.o mlo.o serv2.o libox.a
        !            67:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
1.1       ohara      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:
1.5       ohara      76: install-openXM-bin:  $(BINARIES)
                     77:        install -c -m 755  $(BINARIES) ${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>