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

Diff for /OpenXM/src/ox_math/Makefile.linux between version 1.9 and 1.14

version 1.9, 1999/12/09 22:52:49 version 1.14, 2000/01/21 09:33:42
Line 1 
Line 1 
 # -*- mode: Makefile; coding: euc-japan -*-  # -*- mode: Makefile -*-
 # $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.8 1999/11/29 12:14:26 ohara Exp $  # $OpenXM: OpenXM/src/ox_math/Makefile.linux,v 1.13 2000/01/20 15:28:50 ohara Exp $
   
 #  
 PREFIX=/usr/local  PREFIX=/usr/local
   OpenXM_HOME=../..
   
 MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits  MLINKDIR = ${PREFIX}/mathematica/AddOns/MathLink/DevelopersKits
 SYS = Linux  SYS = Linux
Line 10  ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
Line 10  ADDONSDIR = ${MLINKDIR}/${SYS}/CompilerAdditions
 MPREP = ${ADDONSDIR}/mprep  MPREP = ${ADDONSDIR}/mprep
   
 GMPSRC = ${OpenXM_HOME}/src/gmp  GMPSRC = ${OpenXM_HOME}/src/gmp
 GMPINC = -I${GMPSRC}  
   
 CDEFS  = -DDEBUG  CDEFS  = -DDEBUG
 INCDIR = -I${ADDONSDIR} ${GMPINC} -I${OpenXM_HOME}/src/ox_toolkit  INCDIR = -I${ADDONSDIR} -I${GMPSRC} -I${OpenXM_HOME}/src/ox_toolkit
 LIBDIR = -L${ADDONSDIR} -L.  LIBDIR = -L${ADDONSDIR} -L.
 CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}  CFLAGS = -g -O2 ${CDEFS} ${INCDIR} ${LIBDIR}
   
 #SOLLIBS  = -lsocket -lnsl  LIBS = -lox -lgmp -lML -lm
 MATHLIBS = -lML  -lm  
 LIBS = -lox -lgmp ${MATHLIBS} ${SOLLIBS}  
   
 BINARIES = bconv testclient ox_math math2ox  BINARIES = ox_math math2ox
   
 all: libgmp.a libox.a $(BINARIES)  all: libgmp.a libox.a ${BINARIES}
   
 serv1.o serv2.o mlo.o: serv2.h  serv1.o serv2.o mlo.o: serv2.h
   
Line 36  libox.a:
Line 33  libox.a:
         (cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a)          (cd ${OpenXM_HOME}/src/ox_toolkit; ${MAKE} libox.a)
         ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a .          ln -s ${OpenXM_HOME}/src/ox_toolkit/libox.a .
   
 bconv: bconv.o libox.a libgmp.a  
         ${CC} ${CFLAGS} -o $@ bconv.o ${LIBS}  
   
 testclient: testclient.o libox.a libgmp.a  
         ${CC} ${CFLAGS} -o $@ testclient.o ${LIBS}  
   
 ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a  ox_math: serv1.o serv2.o mlo.o libox.a libgmp.a
         ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}          ${CC} ${CFLAGS} -o $@ serv2.o serv1.o mlo.o ${LIBS}
   
Line 52  math2.c: math2.tm
Line 43  math2.c: math2.tm
         -rm -f $@          -rm -f $@
         ${MPREP} $? > $@          ${MPREP} $? > $@
   
 install-bin:  $(BINARIES)  install: install-binary install-document
         install -c -m 755  $(BINARIES) ${OpenXM_HOME}/bin/  
   
 install:  $(BINARIES)  install-document:
         -ln -s $(BINARIES) ${OpenXM_HOME}/bin          (cd documents; ${MAKE} install-document)
   
   install-binary:
           -if [ -x ${MPREP} ]; then \
                   ${MAKE} install-binary-real ; \
           fi
   
   install-binary-real: ${BINARIES}
           install -c -m 755  ${BINARIES} ${OpenXM_HOME}/bin/
           (cd lib; ${MAKE} install)
   
   install-for-debug: ${BINARIES}
           -for i in ${BINARIES}; do \
                   ln -s -f ${OpenXM_HOME}/src/ox_math/$$i ${OpenXM_HOME}/bin ; \
           done
   
   clean-for-debug:
           (cd ${OpenXM_HOME}/bin; rm -f ${BINARIES})
   
   clean-binary: clean-for-debug
   
 clean:  clean:
         -rm -f *.o *~ libox.a libgmp.a math2.c          -rm -f *.o *~ libox.a libgmp.a math2.c ox_math math2ox
         -rm -f bconv testclient ox_math math2ox  
         -rm -f sample  

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.14

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