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