X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=examples%2FVFS%2FMakefile.in;h=ba419231925dfd1fceef91c960eb5bd8e6dd1ed3;hb=f073401abf9a0f91715854d885fad96332d001b5;hp=8fe414a9e8c6e00bfb19ad67ec90d2e527160300;hpb=71d2287ec7740cf2089ddbef6991e7c3a80dcae0;p=obnox%2Fsamba%2Fsamba-obnox.git diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in index 8fe414a9e8c..ba419231925 100644 --- a/examples/VFS/Makefile.in +++ b/examples/VFS/Makefile.in @@ -9,6 +9,8 @@ SHLIBEXT = @SHLIBEXT@ OBJEXT = @OBJEXT@ FLAGS = $(CFLAGS) $(CPPFLAGS) -fPIC \ -Iinclude -I$(SAMBA_SOURCE)/include \ + -I$(SAMBA_SOURCE)/include/autoconf \ + -I$(SAMBA_SOURCE)/autoconf \ -I$(SAMBA_SOURCE)/../popt \ -I$(SAMBA_SOURCE)/../lib/replace \ -I$(SAMBA_SOURCE)/../lib/talloc \ @@ -25,19 +27,36 @@ libdir = @libdir@ VFS_LIBDIR = $(libdir)/vfs -# Auto target -default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c)) +# 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@ + +all: $(MODULES) # Pattern rules -%.$(SHLIBEXT): %.$(OBJEXT) - @echo "Linking $@" - @$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $< +.SUFFIXES: .@SHLIBEXT@ -%.$(OBJEXT): %.c +# You might need to create an explicit rule for your shared object if your +# shared object is built from multiple .c files. + +.c.@SHLIBEXT@: @echo "Compiling $<" - @$(CC) $(FLAGS) -c $< + @$(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)