This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to...
[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 UBIQX_SRC = ../../source/ubiqx
14 SMBWR_SRC = ../../source/smbwrapper
15 KRB5_SRC = /usr/kerberos/include
16 CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -I$(KRB5_SRC) -Wall -g
17 VFS_OBJS = audit.so skel.so recycle.so
18
19 # Default target
20
21 default: $(VFS_OBJS)
22
23 # Pattern rules
24
25 %.so: %.lo
26         $(LIBTOOL) $(CC) -shared -o $@ $< $(LDFLAGS)
27
28 %.lo: %.c
29         $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
30
31 # Misc targets
32
33 clean:
34         rm -rf .libs
35         rm -f core *~ *% *.bak \
36                 $(VFS_OBJS) $(VFS_OBJS:.so=.o) $(VFS_OBJS:.so=.lo)