Fix the VFS for fsctl.
[Samba/id10ts.git] / examples / VFS / Makefile.in
blob9591186b3e0fc26bec009ffea431b1eb0c494d40
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)/include/autoconf \
13 -I$(SAMBA_SOURCE)/../popt \
14 -I$(SAMBA_SOURCE)/../lib/replace \
15 -I$(SAMBA_SOURCE)/../lib/talloc \
16 -I$(SAMBA_SOURCE)/../lib/tevent \
17 -I$(SAMBA_SOURCE)/../lib/tdb/include \
18 -I$(SAMBA_SOURCE)/librpc \
19 -I$(SAMBA_SOURCE)/../librpc \
20 -I$(SAMBA_SOURCE)/../ \
21 -I$(SAMBA_SOURCE) -I.
24 prefix = @prefix@
25 libdir = @libdir@
27 VFS_LIBDIR = $(libdir)/vfs
29 # Auto target
30 default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c))
32 # Pattern rules
34 %.$(SHLIBEXT): %.$(OBJEXT)
35 @echo "Linking $@"
36 @$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<
38 %.$(OBJEXT): %.c
39 @echo "Compiling $<"
40 @$(CC) $(FLAGS) -c $<
43 install: default
44 $(INSTALLCMD) -d $(VFS_LIBDIR)
45 $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
47 # Misc targets
48 clean:
49 rm -rf .libs
50 rm -f core *~ *% *.bak *.o *.$(SHLIBEXT)
52 distclean: clean
53 rm -f config.status config.cache Makefile