mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
examples: Make examples/VFS/Makefile.in FreeBSD-friendly
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 3 00:53:43 CET 2012 on sn-devel-104
This commit is contained in:
parent
b1cedbbeea
commit
bc6803febb
@ -26,16 +26,24 @@ libdir = @libdir@
|
||||
|
||||
VFS_LIBDIR = $(libdir)/vfs
|
||||
|
||||
# Auto target
|
||||
default: $(patsubst %.c,%.$(SHLIBEXT),$(wildcard *.c))
|
||||
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
|
||||
|
||||
%.$(SHLIBEXT): %.$(OBJEXT)
|
||||
@echo "Linking $@"
|
||||
@$(CC) $(LDSHFLAGS) $(LDFLAGS) -o $@ $<
|
||||
|
||||
%.$(OBJEXT): %.c
|
||||
.c.@OBJEXT@:
|
||||
@echo "Compiling $<"
|
||||
@$(CC) $(FLAGS) -c $<
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user