mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +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:
parent
1e949f3cd1
commit
2730eda640
@ -26,28 +26,24 @@ libdir = @libdir@
|
|||||||
|
|
||||||
VFS_LIBDIR = $(libdir)/vfs
|
VFS_LIBDIR = $(libdir)/vfs
|
||||||
|
|
||||||
all: skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \
|
# Change these targets to the names of your modules if building out of tree
|
||||||
skel_transparent.@SHLIBEXT@
|
MODULES = skel_opaque.@SHLIBEXT@ shadow_copy_test.@SHLIBEXT@ \
|
||||||
|
skel_transparent.@SHLIBEXT@
|
||||||
|
|
||||||
skel_opaque.@SHLIBEXT@: skel_opaque.@OBJEXT@
|
all: $(MODULES)
|
||||||
@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
|
# Pattern rules
|
||||||
|
|
||||||
|
.SUFFIXES: .@SHLIBEXT@
|
||||||
|
|
||||||
|
.@OBJEXT@.@SHLIBEXT@:
|
||||||
|
@echo "Linking $<"
|
||||||
|
@$(CC) $(LDSHFLAGS) $(LDFLAGS) $*.@OBJEXT@ -o $*.@SHLIBEXT@
|
||||||
|
|
||||||
.c.@OBJEXT@:
|
.c.@OBJEXT@:
|
||||||
@echo "Compiling $<"
|
@echo "Compiling $<"
|
||||||
@$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module
|
@$(CC) $(FLAGS) -c $< -D$*_init=samba_init_module
|
||||||
|
|
||||||
|
|
||||||
install: default
|
install: default
|
||||||
$(INSTALLCMD) -d $(VFS_LIBDIR)
|
$(INSTALLCMD) -d $(VFS_LIBDIR)
|
||||||
$(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
|
$(INSTALLCMD) -m 755 *.$(SHLIBEXT) $(VFS_LIBDIR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user