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

1.1       ohara       1: # -*- mode: Makefile; coding: euc-japan -*-
1.5     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.FreeBSD,v 1.4 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: GMPSRC = /usr/lib
1.5     ! ohara      13: GMPINC =
1.1       ohara      14:
                     15: CDEFS  = -DDEBUG
1.5     ! ohara      16: INCDIR = -I${ADDONSDIR} ${GMPINC} -I${OpenXM_HOME}/src/ox_toolkit
1.1       ohara      17: LIBDIR = -L${ADDONSDIR} -L.
1.3       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.3       ohara      24: BINARIES = bconv testclient
1.1       ohara      25:
1.5     ! ohara      26: all: libgmp.a libox.a $(BINARIES)
1.1       ohara      27:
1.5     ! ohara      28: serv1.o:      serv2.h
        !            29: serv2.o:      serv2.h
        !            30: mlo.o:        serv2.h
1.1       ohara      31:
                     32: libgmp.a:
1.5     ! ohara      33:        ln -s -f ${GMPSRC}/libgmp.a .
1.1       ohara      34:
1.5     ! ohara      35: libox.a:
        !            36:        -rm -f libox.a
        !            37:        (cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a)
        !            38:        ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a .
1.1       ohara      39:
1.5     ! ohara      40: bconv: bconv.o libox.a libgmp.a
1.1       ohara      41:        ${CC} ${CFLAGS} -o $@ bconv.o ${LIBS}
                     42:
1.5     ! ohara      43: testclient: testclient.o libox.a libgmp.a
1.1       ohara      44:        ${CC} ${CFLAGS} -o $@ testclient.o ${LIBS}
                     45:
1.5     ! ohara      46: ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a
        !            47:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
1.1       ohara      48:
1.5     ! ohara      49: math2ox: math2ox.o math2.o mlo.o serv2.o libox.a libgmp.a
        !            50:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o serv2.o mlo.o ${LIBS}
1.1       ohara      51:
                     52: math2.c: math2.tm
                     53:        -rm -f $@
                     54:        ${MPREP} $? > $@
                     55:
1.5     ! ohara      56: install-bin:  $(BINARIES)
1.3       ohara      57:        install -c -m 755  $(BINARIES) ${OpenXM_HOME}/bin/
1.5     ! ohara      58:
        !            59: install:  $(BINARIES)
        !            60:        -ln -s $(BINARIES) ${OpenXM_HOME}/bin
1.1       ohara      61:
                     62: clean:
                     63:        -rm -f *.o *~ libox.a libgmp.a math2.c
                     64:        -rm -f bconv testclient ox_math math2ox
                     65:        -rm -f sample

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