view3d

view configure @ 4:0aee5df08cfc

fixed some shit
author John Tsiombikas <nuclear@mutantstargoat.com>
date Thu, 19 Jan 2012 07:03:47 +0200
parents
children
line source
1 #!/bin/sh
3 prefix='/usr/local'
4 opt=false
5 dbg=true
7 while [ $# -gt 0 ]; do
8 case $1 in
9 --prefix=*)
10 prefix=`echo $1 | sed 's/^--prefix=//'`
11 ;;
13 --enable-opt)
14 opt=true
15 ;;
16 --disable-opt)
17 opt=false
18 ;;
19 --enable-debug)
20 dbg=true
21 ;;
22 --disable-debug)
23 dbg=false
24 ;;
25 esac
26 shift
27 done
29 echo '# this file is generated by the configure script' >Makefile
30 echo "PREFIX = $prefix" >>Makefile
31 $opt && echo 'opt = -O3 -ffast-math' >>Makefile
32 $dbg && echo 'dbg = -g' >>Makefile
33 cat Makefile.in >>Makefile