Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/Tutorial/build-script-tardis @ 44

Last change on this file since 44 was 44, checked in by bknecht, 17 years ago

merge from tutorial branche to trunk

  • Property svn:executable set to *
File size: 1.0 KB
RevLine 
[23]1#!/bin/bash
2
[24]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
[23]6
[34]7COMPILER="gcc-3.4.3"
8SRC_FILES="src/main.cpp"
9HEADER_FILES="src/ExampleApplication.h  src/ExampleFrameListener.h  src/ExampleLoadingBar.h"
[24]10EXECUTABLE="main"
11LIBS="OGRE OIS"
12LD_FLAGS="`pkg-config --libs ${LIBS}`"
13CXX_FLAGS="`pkg-config --cflags ${LIBS}`"
[34]14INCLUDES="-Isrc"
15FLAGS="-O2 -march=pentium4 -pipe -g -ggdb"
[23]16
[34]17echo "${COMPILER} ${FLAGS} ${CXX_FLAGS} ${LD_FLAGS} ${INCLUDES} ${SRC_FILES} -o ${EXECUTABLE}"
18${COMPILER} ${FLAGS} ${CXX_FLAGS} ${LD_FLAGS} ${INCLUDES} ${SRC_FILES} -o ${EXECUTABLE}
[24]19#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 TracBrowser for help on using the repository browser.