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