summaryrefslogtreecommitdiff
path: root/examples/VFS/Makefile.in
blob: bbb66be83b00bba30fb52fb7bb3f47d43a144af0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
CC		= @CC@
CFLAGS		= @CFLAGS@
CPPFLAGS	= @CPPFLAGS@
LDFLAGS		= @LDFLAGS@
LDSHFLAGS	= @LDSHFLAGS@
INSTALLCMD	= @INSTALL@
SAMBA_SOURCE	= @SAMBA_SOURCE@
SHLIBEXT	= @SHLIBEXT@
OBJEXT		= @OBJEXT@ 
FLAGS		=  $(CFLAGS) $(CPPFLAGS) -fPIC \
		-Iinclude -I$(SAMBA_SOURCE)/include \
		-I$(SAMBA_SOURCE)/include/autoconf \
		-I$(SAMBA_SOURCE)/../popt  \
		-I$(SAMBA_SOURCE)/../lib/replace  \
		-I$(SAMBA_SOURCE)/../lib/talloc  \
		-I$(SAMBA_SOURCE)/../lib/tevent  \
		-I$(SAMBA_SOURCE)/../lib/tdb/include  \
		-I$(SAMBA_SOURCE)/librpc \
		-I$(SAMBA_SOURCE)/../librpc \
		-I$(SAMBA_SOURCE)/../ \
		-I$(SAMBA_SOURCE) -I.


prefix		= @prefix@
libdir		= @libdir@

VFS_LIBDIR	= $(libdir)/vfs

all: skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \
	skel_transparent.@SHLIBEXT@

skel_opaque.@SHLIBEXT@: skel_opaque.@OBJEXT@
	@echo "Linking $@"
	@$(CC) $(LDSHFLAGS) $(LDFLAGS) skel_opaque.@OBJEXT@ -o $@

shadow_copy_test.@SHLIBEXT@: shadow_copy_test.@OBJEXT@
	@echo "Linking $@"
	@$(CC) $(LDSHFLAGS) $(LDFLAGS) shadow_copy_test.@OBJEXT@ -o $@

skel_transparent.@SHLIBEXT@: skel_transparent.@OBJEXT@
	@echo "Linking $@"
	@$(CC) $(LDSHFLAGS) $(LDFLAGS) skel_transparent.@OBJEXT@ -o $@

# Pattern rules

.c.@OBJEXT@:
	@echo "Compiling $<"
	@$(CC) $(FLAGS) -c $<


install: default
	$(INSTALLCMD) -d $(VFS_LIBDIR)
	$(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)

# Misc targets
clean:
	rm -rf .libs
	rm -f core *~ *% *.bak *.o *.$(SHLIBEXT)

distclean: clean
	rm -f config.status config.cache Makefile