summaryrefslogtreecommitdiff
path: root/examples/VFS/Makefile
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-02-04 05:08:16 +0000
committerTim Potter <tpot@samba.org>2000-02-04 05:08:16 +0000
commit1546a4c683da043af4796acf47dd109c778e2e8a (patch)
treeca4c3f32cc9b49a707d84609a700d4d6da223e78 /examples/VFS/Makefile
parentbbe275e95b86bc7af5a641455cbb379974823f84 (diff)
downloadsamba-1546a4c683da043af4796acf47dd109c778e2e8a.tar.gz
samba-1546a4c683da043af4796acf47dd109c778e2e8a.tar.bz2
samba-1546a4c683da043af4796acf47dd109c778e2e8a.zip
Hopefully these changes will actually stick.
(This used to be commit a2782097db258a164bf43d814e8832a27d0eb3f1)
Diffstat (limited to 'examples/VFS/Makefile')
-rw-r--r--examples/VFS/Makefile25
1 files changed, 18 insertions, 7 deletions
diff --git a/examples/VFS/Makefile b/examples/VFS/Makefile
index fb9976893b..c4c9479c7d 100644
--- a/examples/VFS/Makefile
+++ b/examples/VFS/Makefile
@@ -1,21 +1,32 @@
#
# Makefile for samba-vfs examples
#
-# $Id: Makefile,v 1.1 2000/02/03 04:40:56 tpot Exp $
+# $Id: Makefile,v 1.2 2000/02/04 05:08:16 tpot Exp $
#
# Variables
-SAMBA_SRC = ../../source
-
-CFLAGS = -I$(SAMBA_SRC)/include
CC = gcc
+LIBTOOL = libtool
-VFS_OBJS = audit.o skel.o
+SAMBA_SRC = ../../source/include
+CFLAGS = -I$(SAMBA_SRC)
+VFS_OBJS = audit.so skel.so
-# Targets
+# Default target
default: $(VFS_OBJS)
+# Pattern rules
+
+%.so: %.lo
+ $(LIBTOOL) $(CC) -shared -o $@ $< $(LDFLAGS)
+
+%.lo: %.c
+ $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
+
+# Misc targets
+
clean:
- rm -f core $(VFS_OBJS) *~ *% *.bak
+ rm -rf .libs
+ rm -f core $(VFS_OBJS) $(VFS_OBJS:.so=.lo) *~ *% *.bak