bbb66be83b00bba30fb52fb7bb3f47d43a144af0
[bbaumbach/samba-autobuild/.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)/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.
22
23
24 prefix          = @prefix@
25 libdir          = @libdir@
26
27 VFS_LIBDIR      = $(libdir)/vfs
28
29 all: skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \
30         skel_transparent.@SHLIBEXT@
31
32 skel_opaque.@SHLIBEXT@: skel_opaque.@OBJEXT@
33         @echo "Linking $@"
34         @$(CC) $(LDSHFLAGS) $(LDFLAGS) skel_opaque.@OBJEXT@ -o $@
35
36 shadow_copy_test.@SHLIBEXT@: shadow_copy_test.@OBJEXT@
37         @echo "Linking $@"
38         @$(CC) $(LDSHFLAGS) $(LDFLAGS) shadow_copy_test.@OBJEXT@ -o $@
39
40 skel_transparent.@SHLIBEXT@: skel_transparent.@OBJEXT@
41         @echo "Linking $@"
42         @$(CC) $(LDSHFLAGS) $(LDFLAGS) skel_transparent.@OBJEXT@ -o $@
43
44 # Pattern rules
45
46 .c.@OBJEXT@:
47         @echo "Compiling $<"
48         @$(CC) $(FLAGS) -c $<
49
50
51 install: default
52         $(INSTALLCMD) -d $(VFS_LIBDIR)
53         $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
54
55 # Misc targets
56 clean:
57         rm -rf .libs
58         rm -f core *~ *% *.bak *.o *.$(SHLIBEXT)
59
60 distclean: clean
61         rm -f config.status config.cache Makefile
62