This commit was manufactured by cvs2svn to create branch
[Samba.git] / examples / VFS / block / Makefile
blobdcc7c077936ea27d14caf8cc9faabd02ce197d14
2 # Makefile for samba-vfs examples
6 # Variables
8 CC = gcc
9 LIBTOOL = libtool
11 SAMBA_SRC = /usr/local/src/samba/samba-2.2.0-ron/source
12 SAMBA_INCL = ${SAMBA_SRC}/include
13 UBIQX_SRC = ${SAMBA_SRC}/ubiqx
14 SMBWR_SRC = ${SAMBA_SRC}/smbwrapper
15 CFLAGS = -I$(SAMBA_SRC) -I$(SAMBA_INCL) -I$(UBIQX_SRC) -I$(SMBWR_SRC) -Wall -g -D_LARGEFILE63_SOURCE -D_GNU_SOURCE -fno-builtin
18 VFS_OBJS = block.so
20 # Default target
22 default: $(VFS_OBJS)
24 # Pattern rules
26 %.so: %.lo
27 $(LIBTOOL) $(CC) -shared -o $@ $< $(LDFLAGS)
29 %.lo: %.c
30 $(LIBTOOL) $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
32 # Misc targets
34 clean:
35 rm -rf .libs
36 rm -f core *~ *% *.bak \
37 $(VFS_OBJS) $(VFS_OBJS:.so=.o) $(VFS_OBJS:.so=.lo)