Mercurial > mxe-octave
annotate tools/set-mxe-env.sh.in @ 4066:0962acdde3be
builld: allow out of source build
* Makefile.in: add TOP_BUILD_DIR var and use TOP_DIR=srcdir, TOP_BUILD_DIR=builddir, modify paths to use TOP_DIR where needed
* binary-dist-rules.mk: use TOP_DIR and TOP_BUILD_DIR where needed
* makeinst-script.sh: use script path to determine TOPDIR, use TOPDIR where needed
* src/default-octave.mk: install octave-version to builddir
* src/stable-octave.mk: install octave-version to builddir
* src/octave.mk: install octave-version to builddir
* tools/set-mxe-env.sh.in: update fir builddir and srcdir use
author | John Donoghue |
---|---|
date | Wed, 23 Dec 2015 08:11:04 -0500 |
parents | 6cf5d50556d4 |
children | fc075c6c9a0b |
rev | line source |
---|---|
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
1 #!/bin/bash |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
2 MXEDIR=@MXE_ROOTDIR@ |
3220
0d3feaef089f
Setup set_mxe_env.sh paths for native/non native builds dependant on config variables.
John Donoghue <john.donoghue@ieee.org>
parents:
3180
diff
changeset
|
3 |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
4 if [ -z "$MXE_OCTAVE_ENV" ]; then |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
5 |
3245
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
6 if [ "@MXE_NATIVE_BUILD@" = "yes" ]; then |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
7 MXE_PATH="$MXEDIR/usr/bin" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
8 MXE_INC_PATH="$MXEDIR/usr/include" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
9 MXE_LIB_PATH="$MXEDIR/usr/lib" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
10 else |
4066 | 11 HOST=$(@abs_top_srcdir@/tools/config.guess) |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
12 |
3245
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
13 MXE_PATH="$MXEDIR/usr/$HOST/bin:$MXEDIR/usr/bin" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
14 MXE_INC_PATH="$MXEDIR/usr/$HOST/include" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
15 MXE_LIB_PATH="$MXEDIR/usr/$HOST/lib" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
16 fi |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
17 |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
18 export PATH="$MXE_PATH:$PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
19 export CPPFLAGS="-I$MXE_INC_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
20 export LDFLAGS="-L$MXE_LIB_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
21 export LD_LIBRARY_PATH="$MXE_LIB_PATH:$LD_LIBRARY_PATH" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
22 export PKG_CONFIG_PATH="$MXE_LIB_PATH/pkgconfig" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
23 export PKG_CONFIG="$MXEDIR/usr/bin/pkg-config@EXEEXT@" |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
24 |
94042dd6ea1a
Correctly update set_mxe_env.sh for native/non natibe builds
John Donoghue <john.donoghue@ieee.org>
parents:
3220
diff
changeset
|
25 export MXE_OCTAVE_ENV=$MXEDIR |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
26 |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
27 fi |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
diff
changeset
|
28 |