# You can specify clean to do a make clean before building. Make clean
# will also run configure and generate the required Makefile.
#
-# You can specify which targets to build. If targets are specified, the
-# specified targets will be built but inst packages will not be generated.
+# This will build an smbd.noquota, smbd.profile, nmbd.profile and the
+# entire package with quota support and acl support.
doclean=""
SGI_ABI=-n32
if [ -f Makefile ]; then
make distclean
fi
+ rm -rf bin/*.profile bin/*.noquota
cd ../packaging/SGI
rm -rf bins catman html codepages swat samba.idb samba.spec
fi
cd ../../source
if [ "$doclean" = "clean" ]; then
echo Create SGI specific Makefile
- ./configure --prefix=/usr/samba --sbindir='${exec_prefix}/bin' --mandir=/usr/share/catman --with-acl-support
+ ./configure --prefix=/usr/samba --sbindir=/usr/samba/bin --mandir=/usr/share/catman --with-acl-support --with-quotas --with-smbwrapper
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat creating Makefile\n";
#
echo Making binaries
+echo "===================== Making Profile versions ======================="
make clean
make headers
make -P "CFLAGS=-O -g3 -D WITH_PROFILE" bin/smbd bin/nmbd
mv bin/smbd bin/smbd.profile
mv bin/nmbd bin/nmbd.profile
+echo "===================== Making No Quota versions ======================="
make clean
+make headers
make -P "CFLAGS=-O -g3 -D QUOTAOBJS=smbd/noquotas.o" bin/smbd
errstat=$?
if [ $errstat -ne 0 ]; then
fi
mv bin/smbd bin/smbd.noquota
-make -P "CFLAGS=-O -g3" all
+echo "===================== Making smbwrapper.32.so ======================="
+# cannot use -mips3 with 32 bit shared libraries so reset the ISA variable
+# just for this object
+ISA=
+export ISA
+make -P "CFLAGS=-O -g3" bin/smbwrapper.32.so
+errstat=$?
+if [ $errstat -ne 0 ]; then
+ echo "Error $errstat building sources\n";
+ exit $errstat;
+fi
+ISA=-mips3
+export ISA
+echo "===================== Making Regular versions ======================="
+make -P "CFLAGS=-O -g3" all nsswitch/libnss_wins.so
errstat=$?
if [ $errstat -ne 0 ]; then
echo "Error $errstat building sources\n";
cd ../packaging/SGI
-#
-# Don't generate packages if targets were specified
-#
-if [ "$1" != "" ]; then
- exit 0;
-fi
-
# generate the packages
#
echo Generating Inst Packages