source: trunk/samba/examples/VFS/Makefile.in @ 26

Last change on this file since 26 was 26, checked in by Paul Smedley, 14 years ago

Updated source to 3.0.25rc1

File size: 1.1 KB
Line 
1CC              = @CC@
2CFLAGS          = @CFLAGS@
3CPPFLAGS        = @CPPFLAGS@
4LDFLAGS         = @LDFLAGS@
5LDSHFLAGS       = @LDSHFLAGS@
6INSTALLCMD      = @INSTALL@
7SAMBA_SOURCE    = @SAMBA_SOURCE@
8SHLIBEXT        = @SHLIBEXT@
9OBJEXT          = @OBJEXT@
10FLAGS           =  $(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)/tdb/include  \
16                -I$(SAMBA_SOURCE)/smbwrapper \
17                -I$(SAMBA_SOURCE)/librpc \
18                -I$(SAMBA_SOURCE) -I.
19
20
21prefix          = @prefix@
22libdir          = @libdir@
23
24VFS_LIBDIR      = $(libdir)/vfs
25
26# Auto target
27default: $(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
40install: default
41        $(INSTALLCMD) -d $(VFS_LIBDIR)
42        $(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
43
44# Misc targets
45clean:
46        rm -rf .libs
47        rm -f core *~ *% *.bak *.o *.$(SHLIBEXT)
48
49distclean: clean
50        rm -f config.status config.cache Makefile
51
Note: See TracBrowser for help on using the repository browser.