--- SheepShaver/Makefile 2009/02/19 07:02:46 1.32 +++ SheepShaver/Makefile 2010/10/06 00:34:15 1.34 @@ -59,7 +59,8 @@ links: BeOS/audio_beos.cpp BeOS/extfs_beos.cpp BeOS/scsi_beos.cpp \ BeOS/serial_beos.cpp BeOS/sys_beos.cpp BeOS/timer_beos.cpp \ BeOS/xpram_beos.cpp BeOS/SheepDriver BeOS/SheepNet \ - Unix/audio_oss_esd.cpp Unix/extfs_unix.cpp Unix/serial_unix.cpp \ + Unix/audio_oss_esd.cpp Unix/bincue_unix.cpp Unix/bincue_unix.h \ + Unix/extfs_unix.cpp Unix/serial_unix.cpp \ Unix/sshpty.h Unix/sshpty.c Unix/strlcpy.h Unix/strlcpy.c \ Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \ Unix/sigsegv.h Unix/sigsegv.cpp Unix/vm_alloc.h Unix/vm_alloc.cpp \ @@ -86,9 +87,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