/[escript]/trunk/mk
ViewVC logotype

Diff of /trunk/mk

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 82 by jgs, Tue Oct 26 06:53:54 2004 UTC revision 121 by jgs, Fri May 6 04:26:16 2005 UTC
# Line 1  Line 1 
1  #!/bin/env bash  #!/bin/bash
2    
3  # $Id$  # $Id$
4  # a brutal building script for esys  # An explicit building script for esys
5    
6    MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"
7    
8  #MODULES="tools/CppUnitTest tools/mmio esysUtils escript finley"  # use for local developmental builds
9  MODULES="escript finley"  ENVVARS="DODEBUG=YES"
10    
11    # use for production installs  - NB: overwrites installed esys llibraries
12    #ENVVARS="L_INSTLIB_DIR=/raid2/tools/esys/lib L_PYTH_DIR=/raid2/tools/esys/esys"
13    
14  if [ "$1" == "clean" ];  if [ "$1" == "clean" ];
15  then  then
16      for module in $MODULES ; do \      for module in $MODULES ; do \
17          (echo Cleaning: $module; cd $module; make clean) \          (echo Cleaning: $module; cd $module; gmake clean) \
18      done      done
19            exit
20  fi  fi
21    
22  (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)  (cd escript/lib; if [ ! -e py_src ]; then mkdir py_src; fi)
# Line 25  fi Line 32  fi
32  (cd tools/CppUnitTest; if [ ! -e Makefile ]; then ln -s ./CppUnitTest.mk Makefile; fi)  (cd tools/CppUnitTest; if [ ! -e Makefile ]; then ln -s ./CppUnitTest.mk Makefile; fi)
33    
34  for module in $MODULES ; do \  for module in $MODULES ; do \
35      (echo Building: $module; cd $module; make) \      (echo Building: $module; cd $module; env $ENVVARS gmake -j 8) \
36  done  done
37    
38  (cd escript/lib; if [ ! -e escript.so ]; then ln -s libescript.so escript.so; fi)  if [ "$1" == "install" ];
39  (cd finley/lib; if [ ! -e  finley.so ]; then ln -s libfinley.so finley.so; fi)  then
40        for module in $MODULES ; do \
41            (echo Installing: $module; cd $module; env $ENVVARS gmake install ) \
42        done
43    fi
44    
45    (cd esys; if [ ! -e escriptcpp.so ]; then ln -s ../lib/libescriptcpp.so escriptcpp.so; fi)
46    (cd esys; if [ ! -e finleycpp.so ]; then ln -s ../lib/libfinleycpp.so finleycpp.so; fi)

Legend:
Removed from v.82  
changed lines
  Added in v.121

  ViewVC Help
Powered by ViewVC 1.1.26