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

Annotation of OpenXM/src/ox_math/Makefile.solaris, Revision 1.6

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

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