summaryrefslogtreecommitdiff
path: root/examples/VFS/Makefile.in
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2002-07-31 13:16:14 +0000
committerSimo Sorce <idra@samba.org>2002-07-31 13:16:14 +0000
commit255288df65bf2ebcc5909fc0cb70bc80a7c67343 (patch)
tree85cbc7a2b46f88571aea9bc01837d9d60fcc6549 /examples/VFS/Makefile.in
parent70eaa4233f8b76204ecc1c7f6bea59dee21d00e0 (diff)
downloadsamba-255288df65bf2ebcc5909fc0cb70bc80a7c67343.tar.gz
samba-255288df65bf2ebcc5909fc0cb70bc80a7c67343.tar.bz2
samba-255288df65bf2ebcc5909fc0cb70bc80a7c67343.zip
forgot to change the makefile system, sorry
(This used to be commit 3e6a11f56a3878e75c4354db214971208d911be3)
Diffstat (limited to 'examples/VFS/Makefile.in')
-rw-r--r--examples/VFS/Makefile.in42
1 files changed, 42 insertions, 0 deletions
diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in
new file mode 100644
index 0000000000..3126dfa3b8
--- /dev/null
+++ b/examples/VFS/Makefile.in
@@ -0,0 +1,42 @@
+MAKEFILE = Makefile.vfs
+
+include $(MAKEFILE)
+
+CC = @CC@
+LIBTOOL = libtool
+CFLAGS = @CFLAGS@ $(VFS_CFLAGS)
+CPPFLAGS = @CPPFLAGS@ $(VFS_CPPFLAGS)
+LDFLAGS = @LDFLAGS@ $(VFS_LDFLAGS)
+LDSHFLAGS = -shared
+srcdir = @builddir@
+FLAGS = $(CFLAGS) -Iinclude -I$(srcdir)/include -I$(srcdir)/ubiqx -I$(srcdir)/smbwrapper -I. $(CPPFLAGS) -I$(srcdir)
+
+# Default target
+
+default: $(VFS_OBJS)
+
+# if file doesn't exist try to create one;
+# it is possible that some variables will be
+# defined correctly
+Makefile.vfs:
+ @echo -ne "VFS_OBJS\t= " > $(MAKEFILE); \
+ for i in *.c; do \
+ echo -n $$i" " | sed -e 's/\(.*\)\.c\(.*\)/\1\.so\2/g' >> $(MAKEFILE); \
+ done; \
+ echo -ne "\nVFS_CFLAGS\t= \nVFS_CPPFLAGS\t= \nVFS_LDFLAGS\t= \n" >> $(MAKEFILE)
+ make
+
+# Pattern rules
+
+%.so: %.lo
+ $(LIBTOOL) $(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<
+
+%.lo: %.c
+ $(LIBTOOL) $(CC) $(FLAGS) -c $<
+
+# Misc targets
+
+clean:
+ rm -rf .libs
+ rm -f core *~ *% *.bak \
+ $(VFS_OBJS) $(VFS_OBJS:.so=.o) $(VFS_OBJS:.so=.lo)