To whom it may concern:
here are the diffs which I required to make the mentioned Makefile work.
I maintain several platforms of samba servers, and thus use the VPATH
option in the Makefile. I've been fixing installscripts.sh as well,
so that `make install` works when run from my build directory.
I'm assuming SAMBA v2.x will migrate to autoconf/configure and should
fix these issues, but I thought someone else might find this handy.
NOTES: my system prompt is ': noah;'
<---------------------- cut here ------------------------->
: noah; pwd
/usr/local/src/samba/samba-1.9.18p10/sunos5.5.6
: noah; diff Makefile ../source/Makefile
8c8
< BASEDIR = /opt/samba-1.9.18p10
---> BASEDIR = /usr/local/samba
12c12
< MANDIR = ($BASEDIR)/man
---> MANDIR = /usr/local/man
42,43c42,43
< srcdir=../source/
< VPATH=$(srcdir)
---> # srcdir=./
> # VPATH=$(srcdir)
250,252c250,252
< FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES
< LIBSM = -lsocket -lnsl
< AWK = nawk
---> # FLAGSM = -DSUNOS5 -DSHADOW_PWD -DNETGROUP -DFAST_SHARE_MODES
> # LIBSM = -lsocket -lnsl
> # AWK = nawk
754,757c754
< @if test ! -d $(@D) ; then \
< mkdir $(@D); \
< fi
< @$(CC) $(CFLAGS) -c $(srcdir)$*.c -o $*.o
---> @$(CC) $(CFLAGS) -c $(srcdir)$*.c -o $(srcdir)$*.o