diff options
author | Richard Sharpe <realrichardsharpe@gmail.com> | 2012-04-16 05:00:08 -0700 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2012-04-16 19:51:14 +0200 |
commit | 2730eda640d77d22db08f090f1cd1a734645a496 (patch) | |
tree | 76580f3cbbf6fa2332acdd10f512ba360ff3760f | |
parent | 1e949f3cd173fbf86d9b14a6d6e43c81fdc9cc57 (diff) | |
download | samba-2730eda640d77d22db08f090f1cd1a734645a496.tar.gz |
Improve the VFS Makefile so that it is easier for use out of tree but still works with FreeBSD.
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Mon Apr 16 19:51:14 CEST 2012 on sn-devel-104
-rw-r--r-- | examples/VFS/Makefile.in | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in index f9b81ebcd30..fab5611ffd4 100644 --- a/examples/VFS/Makefile.in +++ b/examples/VFS/Makefile.in @@ -26,28 +26,24 @@ libdir = @libdir@ VFS_LIBDIR = $(libdir)/vfs -all: skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \ - skel_transparent.@SHLIBEXT@ +# Change these targets to the names of your modules if building out of tree +MODULES = skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \ + skel_transparent.@SHLIBEXT@ -skel_opaque.@SHLIBEXT@: skel_opaque.@OBJEXT@ - @echo "Linking $@" - @$(CC) $(LDSHFLAGS) $(LDFLAGS) skel_opaque.@OBJEXT@ -o $@ +all: $(MODULES) -shadow_copy_test.@SHLIBEXT@: shadow_copy_test.@OBJEXT@ - @echo "Linking $@" - @$(CC) $(LDSHFLAGS) $(LDFLAGS) shadow_copy_test.@OBJEXT@ -o $@ +# Pattern rules -skel_transparent.@SHLIBEXT@: skel_transparent.@OBJEXT@ - @echo "Linking $@" - @$(CC) $(LDSHFLAGS) $(LDFLAGS) skel_transparent.@OBJEXT@ -o $@ +.SUFFIXES: .@SHLIBEXT@ -# Pattern rules +.@OBJEXT@.@SHLIBEXT@: + @echo "Linking $<" + @$(CC) $(LDSHFLAGS) $(LDFLAGS) $*.@OBJEXT@ -o $*.@SHLIBEXT@ .c.@OBJEXT@: @echo "Compiling $<" @$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module - install: default $(INSTALLCMD) -d $(VFS_LIBDIR) $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR) |