summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-03-14 19:21:49 +0000
committertruelight <truelight@openttd.org>2006-03-14 19:21:49 +0000
commita1e68882c87157b2b586d80cd55fab4818111cf5 (patch)
tree8065aa13d17dac63c8efae1259338423f07c647d /configure
parent23dd9a0ba9feb6f04af80b92be91d11f1920f7c4 (diff)
downloadopenttd-a1e68882c87157b2b586d80cd55fab4818111cf5.tar.xz
(svn r3867) -Add: added --debug, --profile and --revision to configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure22
1 files changed, 22 insertions, 0 deletions
diff --git a/configure b/configure
index 2f9eaa53f..71e9fde91 100755
--- a/configure
+++ b/configure
@@ -10,6 +10,9 @@ function showhelp() {
echo " $0 --your_options"
echo ""
echo "Params:"
+ echo " --debug Create debug-release [no]"
+ echo " --profile Create profile-release [no]"
+ echo " --revision Set the revision of the compilation [detected]"
echo " --target-cc Sets the target-compiler [\$CC]"
echo " --target-cxx Sets the C++ target-compiler []"
echo " --host-cc Sets the host-compiler [\$CC]"
@@ -53,6 +56,18 @@ do
exit 0
;;
+ --debug)
+ PARAM="$PARAM DEBUG=1"
+ ;;
+ --profile)
+ PARAM="$PARAM PROFILE=1"
+ ;;
+ --revision=*)
+ RELEASE=`awk 'BEGIN { FS="="; $0="'$n'"; print $2;}'`
+ ;;
+ --revision)
+ SITEM="RELEASE"
+ ;;
--target-cc=*)
handle "CC_TARGET" $n
;;
@@ -222,3 +237,10 @@ then
echo "CXX=$TARGET_CXX" >> Makefile.config
fi
+# Same for RELEASE (read: REVISION)
+
+if ! test -z "$RELEASE"
+then
+ echo "RELEASE=$RELEASE" >> Makefile.config
+fi
+