ading new files from 3.0
[samba.git] / source3 / build-me
1 #!/bin/sh
2
3 umask 022
4
5 ## Build options
6 CONFIGUREOPT="--enable-debug --enable-developer --with-pam --with-libsmbclient=no --with-static-modules"
7 export CONFIGUREOPT
8
9 ./autogen.sh
10
11 case "$1" in 
12         dmalloc)
13                 env CFLAGS="-Wall" ./configure \
14                         --enable-dmalloc \
15                         $CONFIGUREOPT
16                 ;;
17         insure)
18                 env CFLAGS="-g" CC="insure" ./configure \
19                         $CONFIGUREOPT
20                 ;;
21         ccache)
22                 env CFLAGS="-Wall" CC="ccache gcc" ./configure \
23                         $CONFIGUREOPT
24                 ;;
25         *)
26                 env CFLAGS="-Wall" ./configure \
27                         $CONFIGUREOPT
28                 ;;
29 esac
30
31 ## disable optimization
32 sed 's/-O //g' Makefile | sed 's/-O2 //g' > Makefile.new; /bin/mv -f Makefile.new Makefile
33
34 ## build
35 make proto
36 make all modules