diff options
author | Richard Sharpe <realrichardsharpe@gmail.com> | 2012-06-02 22:27:22 -0700 |
---|---|---|
committer | Richard Sharpe <realrichardsharpe@gmail.com> | 2012-07-31 19:24:12 -0700 |
commit | 610ac2d350ee8a2d5e58d08f61ba1af03b3d762b (patch) | |
tree | 21c22ebf208b6853c110fb004ac36f161f384925 | |
parent | 23df816328bf10f06a7c7a018c7a1e896c62f3bf (diff) | |
download | samba-610ac2d350ee8a2d5e58d08f61ba1af03b3d762b.tar.gz |
Make it possible to build under Solaris make as well as FreeBSD and Linux. Also add comments on changes that might be needed
-rw-r--r-- | examples/VFS/Makefile.in | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in index db787de390..ba41923192 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.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \ skel_transparent.@SHLIBEXT@ @@ -37,13 +44,19 @@ all: $(MODULES) .SUFFIXES: .@SHLIBEXT@ -.@OBJEXT@.@SHLIBEXT@: - @echo "Linking $<" - @$(CC) $(LDSHFLAGS) $(LDFLAGS) $*.@OBJEXT@ -o $*.@SHLIBEXT@ +# You might need to create an explicit rule for your shared object if your +# shared object is built from multiple .c files. -.c.@OBJEXT@: +.c.@SHLIBEXT@: @echo "Compiling $<" @$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module + @echo "Linking $@" + @$(CC) $(LDSHFLAGS) $(LDFLAGS) $*.@OBJEXT@ -o $*.@SHLIBEXT@ + +# You might need to uncomment this if you have other .c files to compile +#.c.@OBJEXT@: +# @echo "Compiling $<" +# @$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module install: default $(INSTALLCMD) -d $(VFS_LIBDIR) |