From 148811d8b2daefc03e896bb8e83ef06d2172943a Mon Sep 17 00:00:00 2001 From: Jonir Rings Date: Wed, 16 May 2018 01:04:33 +0800 Subject: [PATCH] makefile fix: make complains "Extraneous text after `else' directive" and cause incorrect platform judgement on osx --- ctrtool/Makefile | 4 ++-- makerom/Makefile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ctrtool/Makefile b/ctrtool/Makefile index 798f688..be6e85b 100644 --- a/ctrtool/Makefile +++ b/ctrtool/Makefile @@ -12,11 +12,11 @@ SYS := $(shell gcc -dumpmachine) ifneq (, $(findstring linux, $(SYS))) # Linux CFLAGS += -Wno-unused-but-set-variable -else ifneq(, $(findstring cygwin, $(SYS))) +else ifneq (, $(findstring cygwin, $(SYS))) # Cygwin CFLAGS += -Wno-unused-but-set-variable -DUSE_FILE32API LIBS += -liconv -static-libgcc -static-libstdc++ -else ifneq(, $(findstring darwin, $(SYS))) +else ifneq (, $(findstring darwin, $(SYS))) # OS X LIBS += -liconv else diff --git a/makerom/Makefile b/makerom/Makefile index f7ae626..5192bf4 100644 --- a/makerom/Makefile +++ b/makerom/Makefile @@ -10,11 +10,11 @@ SYS := $(shell gcc -dumpmachine) ifneq (, $(findstring linux, $(SYS))) # Linux CFLAGS += -Wno-unused-but-set-variable -else ifneq(, $(findstring cygwin, $(SYS))) +else ifneq (, $(findstring cygwin, $(SYS))) # Cygwin CFLAGS += -Wno-unused-but-set-variable LIBS += -liconv -else ifneq(, $(findstring darwin, $(SYS))) +else ifneq (, $(findstring darwin, $(SYS))) # OS X LIBS += -liconv else