updated the 3.0 branch from the head branch - ready for alpha18
[samba.git] / examples / VFS / Makefile
1 #
2 # Makefile for samba-vfs examples
3 #
4 #
5
6 # Variables
7
8 CC = gcc
9 LIBTOOL = libtool
10
11 SAMBA_SRC = ../../source
12 SAMBA_INCL = ../../source/include
13 POPT_INCL = ../../source/popt
14 UBIQX_SRC = ../../source/ubiqx
15 SMBWR_SRC = ../../source/smbwrapper
16 KRB5_SRC = /usr/kerberos/include
17 CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(POPT_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -I$(KRB5_SRC) -Wall -g
18 VFS_OBJS = audit.so skel.so recycle.so
19
20 # Default target
21
22 default: $(VFS_OBJS)
23
24 # Pattern rules
25
26 %.so: %.lo
27         $(LIBTOOL) $(CC) -shared -o $@ $< $(LDFLAGS)
28
29 %.lo: %.c
30         $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
31
32 # Misc targets
33
34 clean:
35         rm -rf .libs
36         rm -f core *~ *% *.bak \
37                 $(VFS_OBJS) $(VFS_OBJS:.so=.o) $(VFS_OBJS:.so=.lo)