diff options
Diffstat (limited to 'examples/VFS/Makefile')
-rw-r--r-- | examples/VFS/Makefile | 25 |
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 |