From bc6803febb90d8a22271b5976403cf3e1c36192b Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 2 Mar 2012 20:02:35 +0100 Subject: [PATCH] examples: Make examples/VFS/Makefile.in FreeBSD-friendly Autobuild-User: Volker Lendecke Autobuild-Date: Sat Mar 3 00:53:43 CET 2012 on sn-devel-104 --- examples/VFS/Makefile.in | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/examples/VFS/Makefile.in b/examples/VFS/Makefile.in index 9591186b3e0..bbb66be83b0 100644 --- a/examples/VFS/Makefile.in +++ b/examples/VFS/Makefile.in @@ -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 $<