Could someone with a FreeBSD systems see if this patch works please ...

Richard Sharpe realrichardsharpe at gmail.com
Sun Apr 15 15:19:39 MDT 2012


Hi Folks,

Following on from the discussion with Volker, here is a change to
examples/VFS/Makefile.in that should continue to work on FreeBSD and
makes it simple to re-use the Makefile for out-of-tree modules that
people are developing.

Can someone try it please and let me know. I am trying to install a
FreeBSD VM, but that might take me a while to get done.

Attached as well.

diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in
index f9b81eb..fab5611 100644
--- a/examples/VFS/Makefile.in
+++ b/examples/VFS/Makefile.in
@@ -26,28 +26,24 @@ libdir              = @libdir@

 VFS_LIBDIR     = $(libdir)/vfs

-all: skel_opaque. at SHLIBEXT@ shadow_copy_test. at SHLIBEXT@ \
-       skel_transparent. at SHLIBEXT@
+# Change these targets to the names of your modules if building out of tree
+MODULES                = skel_opaque. at SHLIBEXT@ shadow_copy_test. at SHLIBEXT@ \
+               skel_transparent. at SHLIBEXT@

-skel_opaque. at SHLIBEXT@: skel_opaque. at OBJEXT@
-       @echo "Linking $@"
-       @$(CC) $(LDSHFLAGS) $(LDFLAGS) skel_opaque. at OBJEXT@ -o $@
+all: $(MODULES)

-shadow_copy_test. at SHLIBEXT@: shadow_copy_test. at OBJEXT@
-       @echo "Linking $@"
-       @$(CC) $(LDSHFLAGS) $(LDFLAGS) shadow_copy_test. at OBJEXT@ -o $@
+# Pattern rules

-skel_transparent. at SHLIBEXT@: skel_transparent. at OBJEXT@
-       @echo "Linking $@"
-       @$(CC) $(LDSHFLAGS) $(LDFLAGS) skel_transparent. at OBJEXT@ -o $@
+.SUFFIXES: . at SHLIBEXT@

-# Pattern rules
+. at OBJEXT@. at SHLIBEXT@:
+       @echo "Linking $<"
+       @$(CC) $(LDSHFLAGS) $(LDFLAGS) $*. at OBJEXT@ -o $*. at SHLIBEXT@

 .c. at OBJEXT@:
        @echo "Compiling $<"
        @$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module

-
 install: default
        $(INSTALLCMD) -d $(VFS_LIBDIR)
        $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: examples.Makefile.patch
Type: application/octet-stream
Size: 1286 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20120415/36edf4e2/attachment.obj>


More information about the samba-technical mailing list