summaryrefslogtreecommitdiff
path: root/source3/build-me
blob: a5d3f32f7043168aa9534484030855b0473c2ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh

umask 022

## Build options
CONFIGUREOPT="--enable-debug --enable-developer --with-pam --with-libsmbclient=no --with-static-modules"
export CONFIGUREOPT

./autogen.sh

case "$1" in 
	dmalloc)
		env CFLAGS="-Wall" ./configure \
			--enable-dmalloc \
			$CONFIGUREOPT
		;;
	insure)
		env CFLAGS="-g" CC="insure" ./configure \
			$CONFIGUREOPT
		;;
	ccache)
		env CFLAGS="-Wall" CC="ccache gcc" ./configure \
			$CONFIGUREOPT
		;;
	*)
		env CFLAGS="-Wall" ./configure \
			$CONFIGUREOPT
		;;
esac

## disable optimization
sed 's/-O //g' Makefile | sed 's/-O2 //g' > Makefile.new; /bin/mv -f Makefile.new Makefile

## build
make proto
make all modules