rbtree
view configure @ 0:6621337b6378
red-black tree lib
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Sun, 09 Oct 2011 07:48:14 +0300 |
parents | |
children |
line source
1 #!/bin/sh
3 prefix=/usr/local
4 opt=false
5 dbg=true
7 while [ $# != 0 ]; do
8 case $1 in
9 --prefix=*)
10 prefix=`echo $1 | sed 's/^--prefix=//'`
11 ;;
12 --enable-opt)
13 opt=true
14 ;;
15 --disable-opt)
16 opt=false
17 ;;
18 --enable-dbg)
19 dbg=true
20 ;;
21 --disable-dbg)
22 dbg=false
23 ;;
24 esac
25 shift
26 done
28 echo 'Configuring librbtree...'
30 echo "# do not modify this file manually, it's generated by configure" >Makefile
31 echo "PREFIX = $prefix" >>Makefile
32 $opt && echo '-O3' | xargs echo 'opt =' >>Makefile
33 $dbg && echo '-g' | xargs echo 'dbg =' >>Makefile
34 cat Makefile.in >>Makefile
36 echo 'Done. Run make (or gmake) to compile.'