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

1.1       ohara       1: # -*- mode: Makefile; coding: euc-japan -*-
1.9     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.8 1999/11/29 12:14:26 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:
1.7       ohara      12: GMPSRC = ${OpenXM_HOME}/src/gmp
                     13: GMPINC = -I${GMPSRC}
1.1       ohara      14:
                     15: CDEFS  = -DDEBUG
1.9     ! ohara      16: INCDIR = -I${ADDONSDIR} ${GMPINC} -I${OpenXM_HOME}/src/ox_toolkit
1.1       ohara      17: LIBDIR = -L${ADDONSDIR} -L.
1.2       ohara      18: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1       ohara      19:
                     20: #SOLLIBS  = -lsocket -lnsl
                     21: MATHLIBS = -lML  -lm
                     22: LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS}
                     23:
1.5       ohara      24: BINARIES = bconv testclient ox_math math2ox
1.1       ohara      25:
1.9     ! ohara      26: all: libgmp.a libox.a $(BINARIES)
1.1       ohara      27:
1.9     ! ohara      28: serv1.o serv2.o mlo.o: serv2.h
1.1       ohara      29:
                     30: libgmp.a:
1.9     ! ohara      31:        test -f ${GMPSRC}/libgmp.a || (cd ${GMPSRC}; ./configure; ${MAKE})
        !            32:        ln -s -f ${GMPSRC}/libgmp.a .
1.1       ohara      33:
1.9     ! ohara      34: libox.a:
        !            35:        -rm -f libox.a
        !            36:        (cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a)
        !            37:        ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a .
1.1       ohara      38:
1.9     ! ohara      39: bconv: bconv.o libox.a libgmp.a
1.1       ohara      40:        ${CC} ${CFLAGS} -o $@ bconv.o ${LIBS}
                     41:
1.9     ! ohara      42: testclient: testclient.o libox.a libgmp.a
1.1       ohara      43:        ${CC} ${CFLAGS} -o $@ testclient.o ${LIBS}
                     44:
1.9     ! ohara      45: ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a
1.8       ohara      46:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
1.1       ohara      47:
1.9     ! ohara      48: math2ox: math2ox.o math2.o mlo.o serv2.o libox.a libgmp.a
1.8       ohara      49:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
1.1       ohara      50:
                     51: math2.c: math2.tm
                     52:        -rm -f $@
                     53:        ${MPREP} $? > $@
                     54:
1.9     ! ohara      55: install-bin:  $(BINARIES)
1.5       ohara      56:        install -c -m 755  $(BINARIES) ${OpenXM_HOME}/bin/
1.9     ! ohara      57:
        !            58: install:  $(BINARIES)
        !            59:        -ln -s $(BINARIES) ${OpenXM_HOME}/bin
1.1       ohara      60:
                     61: clean:
                     62:        -rm -f *.o *~ libox.a libgmp.a math2.c
                     63:        -rm -f bconv testclient ox_math math2ox
                     64:        -rm -f sample

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