s3: add perfcount idl and generated files.
[samba.git] / examples / VFS / Makefile.in
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/tevent  \
16                 -I$(SAMBA_SOURCE)/../lib/tdb/include  \
17                 -I$(SAMBA_SOURCE)/librpc \
18                 -I$(SAMBA_SOURCE)/../librpc \
19                 -I$(SAMBA_SOURCE)/../ \
20                 -I$(SAMBA_SOURCE) -I.
21
22
23 prefix          = @prefix@
24 libdir          = @libdir@
25
26 VFS_LIBDIR      = $(libdir)/vfs
27
28 # Auto target
29 default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c))
30
31 # Pattern rules
32
33 %.$(SHLIBEXT): %.$(OBJEXT)
34         @echo "Linking $@"
35         @$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<
36
37 %.$(OBJEXT): %.c
38         @echo "Compiling $<"
39         @$(CC) $(FLAGS) -c $<
40
41
42 install: default
43         $(INSTALLCMD) -d $(VFS_LIBDIR)
44         $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
45
46 # Misc targets
47 clean:
48         rm -rf .libs
49         rm -f core *~ *% *.bak *.o *.$(SHLIBEXT)
50
51 distclean: clean
52         rm -f config.status config.cache Makefile
53