summaryrefslogtreecommitdiff
path: root/packaging/Caldera/OpenServer/Compile
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/Caldera/OpenServer/Compile')
-rwxr-xr-xpackaging/Caldera/OpenServer/Compile48
1 files changed, 48 insertions, 0 deletions
diff --git a/packaging/Caldera/OpenServer/Compile b/packaging/Caldera/OpenServer/Compile
new file mode 100755
index 0000000000..cba414ec74
--- /dev/null
+++ b/packaging/Caldera/OpenServer/Compile
@@ -0,0 +1,48 @@
+#!/bin/ksh
+#
+# invoke with -n as the first argument to get this script to tell
+# you what it would do without doing anything
+#
+
+V=
+[ "$1" = "-n" ] && V=echo
+
+CC="gcc -I/usr/local/include -L/usr/local/lib"
+CFLAGS="-O3 -I/usr/local/include -L/usr/local/lib"
+CXX="g++"
+CXXFLAGS="-O3 -I/usr/local/include/stl -I/usr/local/include -L/usr/local/lib"
+RANLIB=true
+MAKE=/usr/local/bin/make
+if [ "$V" = "echo" ]
+then
+ echo "exporting the following shell variables:"
+ echo "CC=$CC"
+ echo "CXX=$CXX"
+ echo "RANLIB=$RANLIB"
+ echo "MAKE=$MAKE"
+ echo "CFLAGS=$CFLAGS"
+ echo "CXXFLAGS=$CXXFLAGS"
+else
+ export CC CXX RANLIB MAKE CFLAGS CXXFLAGS
+fi
+
+if [ "$V" = "echo" ]
+then
+ echo "cd ../../../source"
+ echo "rm -f mout-1 mout-2 mout-3 mout-4"
+ echo "make all 2>&1 | tee mout-1"
+ echo "make smbfilter smbtorture debug2html 2>&1 | tee mout-2"
+ echo "make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3"
+ echo "make masktest locktest locktest2 2>&1 | tee mout-3"
+else
+ cd ../../../source
+ rm -f mout-1 mout-2 mout-3 mout-4
+ make all 2>&1 | tee mout-1
+ make smbfilter smbtorture debug2html 2>&1 | tee mout-2
+ make bin/smbspool smbwrapper bin/wbinfo 2>&1 | tee mout-3
+ make masktest locktest locktest2 2>&1 | tee mout-3
+fi
+#
+# Not building :
+# nsswitch - no <nss.h>
+# rpctorture - improper use of client_info struct, dunno