5 LDSHFLAGS
= @LDSHFLAGS@
7 SAMBA_SOURCE
= @SAMBA_SOURCE@
10 FLAGS
= $(CFLAGS
) $(CPPFLAGS
) -fPIC \
11 -Iinclude
-I
$(SAMBA_SOURCE
)/include \
12 -I
$(SAMBA_SOURCE
)/include/autoconf \
13 -I
$(SAMBA_SOURCE
)/autoconf \
14 -I
$(SAMBA_SOURCE
)/..
/popt \
15 -I
$(SAMBA_SOURCE
)/..
/lib
/replace \
16 -I
$(SAMBA_SOURCE
)/..
/lib
/talloc \
17 -I
$(SAMBA_SOURCE
)/..
/lib
/tevent \
18 -I
$(SAMBA_SOURCE
)/..
/lib
/tdb
/include \
19 -I
$(SAMBA_SOURCE
)/librpc \
20 -I
$(SAMBA_SOURCE
)/..
/librpc \
21 -I
$(SAMBA_SOURCE
)/..
/ \
28 VFS_LIBDIR
= $(libdir)/vfs
30 # Note, if make fails, it might be because your version of make does not
31 # support what we need. Try installing GNU make and rerun make.
33 # Note also, that if your module requires more than one object file to be
34 # linked in you will have to modify Makefile.in to accommodate your needs and
35 # then rerun configure before you can build.
37 # Change these targets to the names of your modules if building out of tree
38 MODULES
= skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \
39 skel_transparent.@SHLIBEXT@
45 .SUFFIXES
: .@SHLIBEXT@
47 # You might need to create an explicit rule for your shared object if your
48 # shared object is built from multiple .c files.
52 @
$(CC
) $(FLAGS
) -c
$< -D
$*_init
=samba_init_module
54 @
$(CC
) $(LDSHFLAGS
) $(LDFLAGS
) $*.@OBJEXT@
-o
$*.@SHLIBEXT@
56 # You might need to uncomment this if you have other .c files to compile
58 # @echo "Compiling $<"
59 # @$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module
62 $(INSTALLCMD
) -d
$(VFS_LIBDIR
)
63 $(INSTALLCMD
) -m
755 *.
$(SHLIBEXT
) $(VFS_LIBDIR
)
68 rm -f core
*~
*% *.bak
*.o
*.
$(SHLIBEXT
)
71 rm -f config.status config.cache Makefile