diff --git a/Makefile b/Makefile index 9a16047..bc6aaf0 100644 --- a/Makefile +++ b/Makefile @@ -70,8 +70,15 @@ ifeq ($(OS),Windows_NT) MAKEROM = $(TOPDIR)/tools/makerom.exe BANNERTOOL = $(TOPDIR)/tools/bannertool.exe else - MAKEROM = $(TOPDIR)/tools/makerom - BANNERTOOL = $(TOPDIR)/tools/bannertool + UNAME_S := $(shell uname -s) + ifeq ($(UNAME_S),Linux) + MAKEROM = $(TOPDIR)/tools/makerom-linux + BANNERTOOL = $(TOPDIR)/tools/bannertool-linux + endif + ifeq ($(UNAME_S),Darwin) + MAKEROM = $(TOPDIR)/tools/makerom-mac + BANNERTOOL = $(TOPDIR)/tools/bannertool-mac + endif endif diff --git a/tools/bannertool b/tools/bannertool-linux similarity index 100% rename from tools/bannertool rename to tools/bannertool-linux diff --git a/tools/bannertool-mac b/tools/bannertool-mac new file mode 100755 index 0000000..1879cf7 Binary files /dev/null and b/tools/bannertool-mac differ diff --git a/tools/makerom b/tools/makerom-linux similarity index 100% rename from tools/makerom rename to tools/makerom-linux diff --git a/tools/makerom-mac b/tools/makerom-mac new file mode 100755 index 0000000..8d24613 Binary files /dev/null and b/tools/makerom-mac differ