summaryrefslogtreecommitdiff
path: root/source3/build-me
diff options
context:
space:
mode:
Diffstat (limited to 'source3/build-me')
-rwxr-xr-xsource3/build-me36
1 files changed, 36 insertions, 0 deletions
diff --git a/source3/build-me b/source3/build-me
new file mode 100755
index 0000000000..a5d3f32f70
--- /dev/null
+++ b/source3/build-me
@@ -0,0 +1,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