Proposed changes to examples/VFS/Makefile.in
Richard Sharpe
realrichardsharpe at gmail.com
Mon Jun 4 23:07:10 MDT 2012
Hi folks,
Here are the changes that I think will work for FreeBSD and
OpenIndiana/Solaris with Solaris make. I have tested that it works on
Linux, and will test on OpenIndiana. It would be useful is someone can
test FreeBSD.
Also, comments ...
commit c316bc4535ef986fe360f853585558ce52b51c50
Author: Richard Sharpe <realrichardsharpe at gmail.com>
Date: Sat Jun 2 22:27:22 2012 -0700
Make it possible to build under Solaris make as well as FreeBSD and Linux. A
diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in
index db787de..ba41923 100644
--- a/examples/VFS/Makefile.in
+++ b/examples/VFS/Makefile.in
@@ -27,6 +27,13 @@ libdir = @libdir@
VFS_LIBDIR = $(libdir)/vfs
+# Note, if make fails, it might be because your version of make does not
+# support what we need. Try installing GNU make and rerun make.
+#
+# Note also, that if your module requires more than one object file to be
+# linked in you will have to modify Makefile.in to accommodate your needs and
+# then rerun configure before you can build.
+
# 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@
@@ -37,13 +44,19 @@ all: $(MODULES)
.SUFFIXES: . at SHLIBEXT@
-. at OBJEXT@. at SHLIBEXT@:
- @echo "Linking $<"
- @$(CC) $(LDSHFLAGS) $(LDFLAGS) $*. at OBJEXT@ -o $*. at SHLIBEXT@
+# You might need to create an explicit rule for your shared object if your
+# shared object is built from multiple .c files.
-.c. at OBJEXT@:
+.c. at SHLIBEXT@:
@echo "Compiling $<"
@$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module
+ @echo "Linking $@"
+ @$(CC) $(LDSHFLAGS) $(LDFLAGS) $*. at OBJEXT@ -o $*. at SHLIBEXT@
+
+# You might need to uncomment this if you have other .c files to compile
+#.c. at OBJEXT@:
+# @echo "Compiling $<"
+# @$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module
install: default
$(INSTALLCMD) -d $(VFS_LIBDIR)
--
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
More information about the samba-technical
mailing list