This commit was manufactured by cvs2svn to create branch
[Samba.git] / examples / VFS / Makefile
blob9c216cd29b895ea450413c99a6c0e1d53a27dc1d
2 # Makefile for samba-vfs examples
6 # Variables
8 CC = gcc
9 LIBTOOL = libtool
11 SAMBA_SRC = ../../source
12 SAMBA_INCL = ../../source/include
13 UBIQX_SRC = ../../source/ubiqx
14 SMBWR_SRC = ../../source/smbwrapper
15 CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g
16 VFS_OBJS = audit.so skel.so
18 # Default target
20 default: $(VFS_OBJS)
22 # Pattern rules
24 %.so: %.lo
25 $(LIBTOOL) $(CC) -shared -o $@ $< $(LDFLAGS)
27 %.lo: %.c
28 $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
30 # Misc targets
32 clean:
33 rm -rf .libs
34 rm -f core *~ *% *.bak \
35 $(VFS_OBJS) $(VFS_OBJS:.so=.o) $(VFS_OBJS:.so=.lo)