r22942: Some message_register -> messaging_register conversions
[Samba.git] / examples / VFS / Makefile.in
blob4de0efd29e856ba5489ba6450033ce3ec793cb24
1 CC = @CC@
2 CFLAGS = @CFLAGS@
3 CPPFLAGS = @CPPFLAGS@
4 LDFLAGS = @LDFLAGS@
5 LDSHFLAGS = @LDSHFLAGS@
6 INSTALLCMD = @INSTALL@
7 SAMBA_SOURCE = @SAMBA_SOURCE@
8 SHLIBEXT = @SHLIBEXT@
9 OBJEXT = @OBJEXT@
10 FLAGS = $(CFLAGS) $(CPPFLAGS) -fPIC \
11 -Iinclude -I$(SAMBA_SOURCE)/include \
12 -I$(SAMBA_SOURCE)/popt \
13 -I$(SAMBA_SOURCE)/lib/replace \
14 -I$(SAMBA_SOURCE)/lib/talloc \
15 -I$(SAMBA_SOURCE)/lib/tdb/include \
16 -I$(SAMBA_SOURCE)/smbwrapper \
17 -I$(SAMBA_SOURCE)/librpc \
18 -I$(SAMBA_SOURCE) -I.
21 prefix = @prefix@
22 libdir = @libdir@
24 VFS_LIBDIR = $(libdir)/vfs
26 # Auto target
27 default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c))
29 # Pattern rules
31 %.$(SHLIBEXT): %.$(OBJEXT)
32 @echo "Linking $@"
33 @$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<
35 %.$(OBJEXT): %.c
36 @echo "Compiling $<"
37 @$(CC) $(FLAGS) -c $<
40 install: default
41 $(INSTALLCMD) -d $(VFS_LIBDIR)
42 $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
44 # Misc targets
45 clean:
46 rm -rf .libs
47 rm -f core *~ *% *.bak *.o *.$(SHLIBEXT)
49 distclean: clean
50 rm -f config.status config.cache Makefile