source: gs2-extensions/gsdl-amp/trunk/src/devel.bash@ 32229

Last change on this file since 32229 was 27275, checked in by davidb, 11 years ago

Expansion of devel.bash to allow other compiling programs to find what it has compiled up and installed

File size: 856 bytes
Line 
1
2
3if [ -d cascade-make ] ; then
4 source cascade-make/lib/cascade-lib.bash GEXTAMP . $*
5fi
6
7if [ -z $GEXTAMP ] ; then
8 source ./setup.sh
9fi
10
11if [ -z $GEXTAMP_DEVEL ] ; then
12 # Set environment variable so we can tell devel.bash has been sourced
13 export GEXTAMP_DEVEL=$GEXT_AMP
14
15 export PATH="$GEXTAMP_INSTALLED/bin:$PATH"
16 export CFLAGS="-I$GEXTAMP_INSTALLED/include $CFLAGS"
17 export CPPFLAGS="-I$GEXTAMP_INSTALLED/include $CPPFLAGS"
18 export CXXFLAGS="-I$GEXTAMP_INSTALLED/include $CXXFLAGS"
19 export LDFLAGS="-L$GEXTAMP_INSTALLED/lib $LDFLAGS"
20 export PKG_CONFIG_PATH="$GEXTAMP_INSTALLED/lib/pkgconfig:$PKG_CONFIG_PATH"
21
22 echo "+Your environment is now setup to compile with the AMP (Apache-MySQL-PHP) extension"
23
24else
25 echo "+Your environment is already setup to compile with the AMP (Apache-MySQL-PHP) extension"
26fi
Note: See TracBrowser for help on using the repository browser.