From 614b33bcd892f8e596f8c0980844ec4fae41e88a Mon Sep 17 00:00:00 2001 From: asvitkine <> Date: Thu, 8 Apr 2010 03:50:26 +0000 Subject: [PATCH] [Joel Mauras] Let makefile build relatives links between SheepShaver and BasiliksII so they can be moved anywhere into the file system as long as they stay side by side without having to rebuid the links. --- SheepShaver/Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/SheepShaver/Makefile b/SheepShaver/Makefile index 997fbb6a..132d78f5 100644 --- a/SheepShaver/Makefile +++ b/SheepShaver/Makefile @@ -86,9 +86,13 @@ links: Windows/ether_windows.h Windows/ether_windows.cpp \ Windows/serial_windows.cpp Windows/prefs_editor_gtk.cpp \ uae_cpu/compiler/codegen_x86.h'; \ - PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \ + PREFIX="../"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \ for i in $$list; do \ - echo $$i; o=$$i; \ - case $$i in *codegen_x86.h) o=kpx_cpu/src/cpu/jit/x86/codegen_x86.h;; esac; \ - ln -sf "$${PREFIX}$(B2_TOPDIR)/src/$$i" src/$$o; \ - done; + if test "$$i" != "\\"; then \ + echo $$i; o=$$i; \ + case $$i in *codegen_x86.h) o=kpx_cpu/src/cpu/jit/x86/codegen_x86.h;; esac; \ + SUB=`echo $$o | sed 's;[^/]*/;../;g' | sed 's;[^/]*$$;;'` ;\ + ln -sf "$$PREFIX$$SUB$(B2_TOPDIR)/src/$$i" src/$$o; \ + fi; \ + done; \ + ln -sf ../../../../../SheepShaver/src/Unix/config.h $(B2_TOPDIR)/src/Unix/Linux/NetDriver/config.h