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

1.1       ohara       1: # -*- mode: Makefile; coding: euc-japan -*-
1.4     ! ohara       2: # $OpenXM: OpenXM/src/ox_math/Makefile.solaris,v 1.3 1999/11/05 08:41:19 ohara Exp $
1.1       ohara       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
1.3       ohara      16: #GMPSRC = ${OpenXM_HOME}/src/gmp
                     17: GMPSRC = ${PREFIX}/lib
                     18: #GMPINC = -I${GMPSRC}
                     19: GMPINC = -I${PREFIX}/include
1.1       ohara      20:
                     21: CDEFS  = -DDEBUG
                     22: INCDIR = -I${ADDONSDIR} ${GMPINC}
                     23: LIBDIR = -L${ADDONSDIR} -L.
1.3       ohara      24: CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
1.1       ohara      25:
                     26: SOLLIBS  = -lsocket -lnsl
                     27: MATHLIBS = -lML  -lm
                     28: LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS}
                     29:
                     30: LIBOBJS = ox.o parse.o mysocket.o
1.4     ! ohara      31: BINARIES = bconv testclient ox_math math2ox
1.1       ohara      32:
1.4     ! ohara      33: all: libox.a $(BINARIES)
1.1       ohara      34:
1.3       ohara      35: configure:
                     36:        @(cd ${OpenXM_HOME}/src; ${MAKE} configure)
                     37:        @(cd ${OpenXM_HOME}/src/gmp; ./configure; make)
                     38:
1.4     ! ohara      39: bconv.o:      ox.h oxtag.h parse.h
        !            40: math2ox.o:    ox.h oxtag.h parse.h
        !            41: mysocket.o:   mysocket.h
        !            42: ox.o:         ox.h oxtag.h parse.h mysocket.h
        !            43: parse.o:      ox.h oxtag.h parse.h
        !            44: serv1.o:      ox.h oxtag.h serv2.h
        !            45: serv2.o:      ox.h oxtag.h parse.h serv2.h
1.1       ohara      46: testclient.o: ox.h oxtag.h
                     47:
                     48: libgmp.a:
                     49:        @if [ ! -f ${GMPSRC}/libgmp.a ]; then \
1.3       ohara      50:                ${MAKE} configure; \
1.1       ohara      51:        fi
1.3       ohara      52:        cp -f ${GMPSRC}/libgmp.a .
1.1       ohara      53:
                     54: libox.a: ${LIBOBJS} libgmp.a
                     55:        -rm -f $@
                     56:        ar -rc $@ ${LIBOBJS}
                     57:        ranlib $@
                     58:
                     59: bconv: bconv.o libox.a
                     60:        ${CC} ${CFLAGS} -o $@ bconv.o ${LIBS}
                     61:
                     62: testclient: testclient.o libox.a
                     63:        ${CC} ${CFLAGS} -o $@ testclient.o ${LIBS}
                     64:
                     65: ox_math: serv1.o serv2.o libox.a
                     66:        ${CC} ${CFLAGS} -o $@ serv2.o serv1.o ${LIBS}
                     67:
                     68: math2ox: math2ox.o math2.o libox.a
                     69:        ${CC} ${CFLAGS} -o $@ math2ox.o math2.o ${LIBS}
                     70:
                     71: sample : sample.o libox.a
                     72:        ${CC} ${CFLAGS} -o $@ sample.o ${LIBS}
                     73:
                     74: math2.c: math2.tm
                     75:        -rm -f $@
                     76:        ${MPREP} $? > $@
                     77:
1.4     ! ohara      78: install-openXM-bin:  $(BINARIES)
        !            79:        install -c -m 755  $(BINARIES) ${OpenXM_HOME}/bin/
1.1       ohara      80:
                     81: clean:
                     82:        -rm -f *.o *~ libox.a libgmp.a math2.c
                     83:        -rm -f bconv testclient ox_math math2ox
                     84:        -rm -f sample

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