Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 10, 2007, 12:12:02 PM (17 years ago)
Author:
nicolasc
Message:

better build script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutorial/Tutorial/build-script

    r23 r24  
    11#!/bin/bash
    22
     3#if [ $1 == --with-tardis ]
     4        export PKG_CONFIG_PATH=/usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/pkgconfig:/usr/pack/ois-1.0-sd/i686-debian-linux3.1/lib/pkgconfig/
     5#fi
    36
     7COMPILER="gcc-4.2.0"
     8MAIN_SRC="main.cpp"
     9EXECUTABLE="main"
     10LIBS="OGRE OIS"
     11LD_FLAGS="`pkg-config --libs ${LIBS}`"
     12CXX_FLAGS="`pkg-config --cflags ${LIBS}`"
     13INCLUDES="-I."
     14FLAGS="-O2 -march=prescott -pipe -g -ggdb"
    415
    5 g++-4.2.0 `pkg-config --libs /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/pkgconfig/OGRE.pc /usr/pack/ois-1.0-sd/i686-debian-linux3.1/lib/pkgconfig/OIS.pc` `pkg-config --cflags /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/pkgconfig/OGRE.pc /usr/pack/ois-1.0-sd/i686-debian-linux3.1/lib/pkgconfig/OIS.pc` main.cpp -I. -O2 -march=prescott -pipe -o main -g -ggdb
     16echo "${COMPILER} ${FLAGS} ${CXX_FLAGS} ${LD_FLAGS} ${INCLUDES} ${MAIN_SRC} -o ${EXECUTABLE}"
     17${COMPILER} ${FLAGS} ${CXX_FLAGS} ${LD_FLAGS} ${INCLUDES} ${MAIN_SRC} -o ${EXECUTABLE}
     18#g++-4.2.0 `pkg-config --libs /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/pkgconfig/OGRE.pc /usr/pack/ois-1.0-sd/i686-debian-linux3.1/lib/pkgconfig/OIS.pc` `pkg-config --cflags /usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1/lib/pkgconfig/OGRE.pc /usr/pack/ois-1.0-sd/i686-debian-linux3.1/lib/pkgconfig/OIS.pc` main.cpp -I. -O2 -march=prescott -pipe -o main -g -ggdb
Note: See TracChangeset for help on using the changeset viewer.