Changeset 27275


Ignore:
Timestamp:
2013-04-29T15:24:17+12:00 (11 years ago)
Author:
davidb
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/gsdl-amp/trunk/src/devel.bash

    r23100 r27275  
    1 source cascade-make/lib/cascade-lib.bash GEXTAMP . $*
     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 TracChangeset for help on using the changeset viewer.