summaryrefslogtreecommitdiff
path: root/source3/build-me
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-16 05:42:34 +0000
committerGerald Carter <jerry@samba.org>2003-07-16 05:42:34 +0000
commit1caa6b23e417f77e7b38ecdfa47d9abe8c7b7d0e (patch)
tree8bdf608593fc37227886691b0a12190dd1e8ba66 /source3/build-me
parent4a090ba06a54f5da179ac02bb307cc03d08831bf (diff)
downloadsamba-1caa6b23e417f77e7b38ecdfa47d9abe8c7b7d0e.tar.gz
samba-1caa6b23e417f77e7b38ecdfa47d9abe8c7b7d0e.tar.bz2
samba-1caa6b23e417f77e7b38ecdfa47d9abe8c7b7d0e.zip
ading new files from 3.0
(This used to be commit 99feae7b5b1c229a925367b87c0c0f636d9a2d75)
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