Test harness stuff for compiling things.
[samba.git] / examples / VFS / Makefile
1 #
2 # Makefile for samba-vfs examples
3 #
4 # $Id: Makefile,v 1.3 2000/04/05 22:41:42 tpot Exp $
5 #
6
7 # Variables
8
9 CC = gcc
10 LIBTOOL = libtool
11
12 SAMBA_SRC = ../../source/include
13 CFLAGS = -I$(SAMBA_SRC)
14 VFS_OBJS = audit.so skel.so
15
16 # Default target
17
18 default: $(VFS_OBJS)
19
20 # Pattern rules
21
22 %.so: %.lo
23         $(LIBTOOL) $(CC) -shared -o $@ $< $(LDFLAGS)
24
25 %.lo: %.c
26         $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
27
28 # Misc targets
29
30 clean:
31         rm -rf .libs
32         rm -f core *~ *% *.bak \
33                 $(VFS_OBJS) $(VFS_OBJS:.so=.o) $(VFS_OBJS:.so=.lo)