1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

Improve the VFS Makefile so that it is easier for use out of tree but still works with FreeBSD.

Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Mon Apr 16 19:51:14 CEST 2012 on sn-devel-104
This commit is contained in:
Richard Sharpe 2012-04-16 05:00:08 -07:00 committed by Richard Sharpe
parent 1e949f3cd1
commit 2730eda640

View File

@ -26,28 +26,24 @@ libdir = @libdir@
VFS_LIBDIR = $(libdir)/vfs
all: skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \
skel_transparent.@SHLIBEXT@
# Change these targets to the names of your modules if building out of tree
MODULES = 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 $@
all: $(MODULES)
# Pattern rules
.SUFFIXES: .@SHLIBEXT@
.@OBJEXT@.@SHLIBEXT@:
@echo "Linking $<"
@$(CC) $(LDSHFLAGS) $(LDFLAGS) $*.@OBJEXT@ -o $*.@SHLIBEXT@
.c.@OBJEXT@:
@echo "Compiling $<"
@$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module
install: default
$(INSTALLCMD) -d $(VFS_LIBDIR)
$(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)