Mercurial > octave-nkf
comparison mkoctfile.in @ 5285:fe5ee25a5e6c
[project @ 2005-04-19 15:02:49 by jwe]
author | jwe |
---|---|
date | Tue, 19 Apr 2005 15:02:49 +0000 |
parents | 16a6247730d9 |
children | d2df058c4319 |
comparison
equal
deleted
inserted
replaced
5284:e14d6e159dab | 5285:fe5ee25a5e6c |
---|---|
4 # Octave. | 4 # Octave. |
5 | 5 |
6 # Exit immediately on any error. | 6 # Exit immediately on any error. |
7 | 7 |
8 set -e | 8 set -e |
9 | |
10 OCTAVE_VERSION="%OCTAVE_CONF_VERSION%" | |
9 | 11 |
10 # Default values for these variables are filled in when Octave is | 12 # Default values for these variables are filled in when Octave is |
11 # compiled. | 13 # compiled. |
12 | 14 |
13 : ${SED=%OCTAVE_CONF_SED%} | 15 : ${SED=%OCTAVE_CONF_SED%} |
60 : ${OCTAVE_LIBS="$LIBOCTINTERP $LIBOCTAVE $SPECIAL_MATH_LIB $LIBCRUFT"} | 62 : ${OCTAVE_LIBS="$LIBOCTINTERP $LIBOCTAVE $SPECIAL_MATH_LIB $LIBCRUFT"} |
61 | 63 |
62 # Local variables. | 64 # Local variables. |
63 | 65 |
64 usage_msg="usage: mkoctfile [options] file ..." | 66 usage_msg="usage: mkoctfile [options] file ..." |
67 | |
68 version_msg="mkoctfile, version $OCTAVE_VERSION" | |
65 | 69 |
66 cfiles= | 70 cfiles= |
67 ccfiles= | 71 ccfiles= |
68 f77files= | 72 f77files= |
69 objfiles= | 73 objfiles= |
83 compile=true | 87 compile=true |
84 | 88 |
85 if [ $# -eq 0 ]; then | 89 if [ $# -eq 0 ]; then |
86 echo $usage_msg 1>&2 | 90 echo $usage_msg 1>&2 |
87 exit 1 | 91 exit 1 |
92 fi | |
93 | |
94 if [ $# -eq 1 ]; then | |
95 case "$1" in | |
96 -v | --version) | |
97 echo $version_msg 1>&2 | |
98 exit 0 | |
99 ;; | |
100 esac | |
88 fi | 101 fi |
89 | 102 |
90 while [ $# -gt 0 ]; do | 103 while [ $# -gt 0 ]; do |
91 file= | 104 file= |
92 case "$1" in | 105 case "$1" in |
402 ## eval $cmd | 415 ## eval $cmd |
403 ## fi | 416 ## fi |
404 | 417 |
405 # Link all the object files. | 418 # Link all the object files. |
406 | 419 |
407 if $link; then | 420 if $link && [ -n "$objfiles" ]; then |
408 if $link_stand_alone; then | 421 if $link_stand_alone; then |
409 if [ -n "$LD_CXX" ]; then | 422 if [ -n "$LD_CXX" ]; then |
410 cmd="$LD_CXX $CPPFLAGS $ALL_CXXFLAGS $RDYNAMIC_FLAG $ALL_LDFLAGS $pass_on_options $output_option $objfiles $ldflags $LFLAGS $RLD_FLAG $OCTAVE_LIBS $BLAS_LIBS $FFTW_LIBS $LIBREADLINE $LIBS $FLIBS" | 423 cmd="$LD_CXX $CPPFLAGS $ALL_CXXFLAGS $RDYNAMIC_FLAG $ALL_LDFLAGS $pass_on_options $output_option $objfiles $ldflags $LFLAGS $RLD_FLAG $OCTAVE_LIBS $BLAS_LIBS $FFTW_LIBS $LIBREADLINE $LIBS $FLIBS" |
411 $dbg $cmd | 424 $dbg $cmd |
412 eval $cmd | 425 eval $cmd |