import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunk
[metze/old/v3-2-winbind-ndr.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) -Iinclude -I$(SAMBA_SOURCE)/include -I$(SAMBA_SOURCE)/ubiqx -I$(SAMBA_SOURCE)/smbwrapper  -I. $(CPPFLAGS) -I$(SAMBA_SOURCE)
11
12
13 prefix          = @prefix@
14 libdir          = @libdir@
15
16 VFS_LIBDIR      = $(libdir)/vfs
17
18 # Auto target
19 default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c))
20
21 # Pattern rules
22
23 %.$(SHLIBEXT): %.$(OBJEXT)
24         @echo "Linking $@"
25         @$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<
26
27 %.$(OBJEXT): %.c
28         @echo "Compiling $<"
29         @$(CC) $(FLAGS) -c $<
30
31
32 install: default
33         $(INSTALLCMD) -d $(VFS_LIBDIR)
34         $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
35
36 # Misc targets
37 clean:
38         rm -rf .libs
39         rm -f core *~ *% *.bak *.o *.$(SHLIBEXT)
40
41 distclean: clean
42         rm config.* Makefile
43