From def097803e4e34ee160288f5414295e231245045 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Thu, 9 May 2002 09:55:45 +0000 Subject: [PATCH] - B2_TOPDIR: new macro specifying where Basilisk II directory can be found. Update "links" rule to take care of it and don't PREFIX with current path if B2_TOPDIR yields an absolute path. (Simply cosmetic so that I can have multiple SS work dirs, effortlessly ;-) --- SheepShaver/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SheepShaver/Makefile b/SheepShaver/Makefile index 86c5e5a5..44dd20f0 100644 --- a/SheepShaver/Makefile +++ b/SheepShaver/Makefile @@ -11,6 +11,9 @@ TMPDIR := $(shell date +/tmp/build%m%s) DOCS := HISTORY LOG TODO SRCS := src +# Where Basilisk II directory can be found +B2_TOPDIR := ../BasiliskII + default: help help: @@ -54,7 +57,8 @@ links: Unix/audio_oss_esd.cpp Unix/extfs_unix.cpp Unix/serial_unix.cpp \ Unix/sys_unix.cpp Unix/timer_unix.cpp Unix/xpram_unix.cpp \ Unix/Linux/scsi_linux.cpp Unix/Linux/NetDriver'; \ + PREFIX="`pwd`/"; case $(B2_TOPDIR) in /*) PREFIX="";; esac; \ for i in $$list; do \ echo $$i; \ - ln -sf `pwd`/../BasiliskII/src/$$i src/$$i; \ + ln -sf $${PREFIX}$(B2_TOPDIR)/src/$$i src/$$i; \ done;