diff options
author | Alexander Bokovoy <ab@samba.org> | 2003-06-04 13:13:41 +0000 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2003-06-04 13:13:41 +0000 |
commit | bee3d8f410703a4eabdfe1d40b05425637ee14df (patch) | |
tree | 7fda531cf59348edce04d1273e1e5047bfe09cf1 /examples/VFS/Makefile.in | |
parent | 8d64a1c69aeeca548bde97419c0a01408fcabca5 (diff) | |
download | samba-bee3d8f410703a4eabdfe1d40b05425637ee14df.tar.gz samba-bee3d8f410703a4eabdfe1d40b05425637ee14df.tar.bz2 samba-bee3d8f410703a4eabdfe1d40b05425637ee14df.zip |
Move VFS example skel.c to two different examples: one for opaque operations and one for transparent. Also add configure support for compiling third-party modules. Patch from Stefan Metzmacher <metze@metzemix.de>
(This used to be commit fcdf215753630d4173e50b7d93d6bc8ba254a5ff)
Diffstat (limited to 'examples/VFS/Makefile.in')
-rw-r--r-- | examples/VFS/Makefile.in | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in new file mode 100644 index 0000000000..c368974bd5 --- /dev/null +++ b/examples/VFS/Makefile.in @@ -0,0 +1,43 @@ +CC = @CC@ +CFLAGS = @CFLAGS@ +CPPFLAGS = @CPPFLAGS@ +LDFLAGS = @LDFLAGS@ +LDSHFLAGS = @LDSHFLAGS@ +INSTALLCMD = @INSTALL@ +SAMBA_SOURCE = @SAMBA_SOURCE@ +SHLIBEXT = @SHLIBEXT@ +OBJEXT = @OBJEXT@ +FLAGS = $(CFLAGS) -Iinclude -I$(SAMBA_SOURCE)/include -I$(SAMBA_SOURCE)/ubiqx -I$(SAMBA_SOURCE)/smbwrapper -I. $(CPPFLAGS) -I$(SAMBA_SOURCE) + + +prefix = @prefix@ +libdir = @libdir@ + +VFS_LIBDIR = $(libdir)/vfs + +# Auto target +default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c)) + +# Pattern rules + +%.$(SHLIBEXT): %.$(OBJEXT) + @echo "Linking $@" + @$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $< + +%.$(OBJEXT): %.c + @echo "Compiling $<" + @$(CC) $(FLAGS) -c $< + + +install: default + $(INSTALLCMD) -d $(VFS_LIBDIR) + $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR) + +# Misc targets +clean: + rm -rf .libs + rm -f core *~ *% *.bak *.o *.$(SHLIBEXT) + +distclean: clean + rm config.* Makefile + |