summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/VFS/Makefile.in22
1 files changed, 9 insertions, 13 deletions
diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in
index f9b81ebcd3..fab5611ffd 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)