mirror of
https://github.com/DarkStore-3DS/Project_CTR.git
synced 2026-07-03 00:39:14 +00:00
makefile fix: make complains "Extraneous text after `else' directive" and cause incorrect platform judgement on osx
This commit is contained in:
+2
-2
@@ -12,11 +12,11 @@ SYS := $(shell gcc -dumpmachine)
|
|||||||
ifneq (, $(findstring linux, $(SYS)))
|
ifneq (, $(findstring linux, $(SYS)))
|
||||||
# Linux
|
# Linux
|
||||||
CFLAGS += -Wno-unused-but-set-variable
|
CFLAGS += -Wno-unused-but-set-variable
|
||||||
else ifneq(, $(findstring cygwin, $(SYS)))
|
else ifneq (, $(findstring cygwin, $(SYS)))
|
||||||
# Cygwin
|
# Cygwin
|
||||||
CFLAGS += -Wno-unused-but-set-variable -DUSE_FILE32API
|
CFLAGS += -Wno-unused-but-set-variable -DUSE_FILE32API
|
||||||
LIBS += -liconv -static-libgcc -static-libstdc++
|
LIBS += -liconv -static-libgcc -static-libstdc++
|
||||||
else ifneq(, $(findstring darwin, $(SYS)))
|
else ifneq (, $(findstring darwin, $(SYS)))
|
||||||
# OS X
|
# OS X
|
||||||
LIBS += -liconv
|
LIBS += -liconv
|
||||||
else
|
else
|
||||||
|
|||||||
+2
-2
@@ -10,11 +10,11 @@ SYS := $(shell gcc -dumpmachine)
|
|||||||
ifneq (, $(findstring linux, $(SYS)))
|
ifneq (, $(findstring linux, $(SYS)))
|
||||||
# Linux
|
# Linux
|
||||||
CFLAGS += -Wno-unused-but-set-variable
|
CFLAGS += -Wno-unused-but-set-variable
|
||||||
else ifneq(, $(findstring cygwin, $(SYS)))
|
else ifneq (, $(findstring cygwin, $(SYS)))
|
||||||
# Cygwin
|
# Cygwin
|
||||||
CFLAGS += -Wno-unused-but-set-variable
|
CFLAGS += -Wno-unused-but-set-variable
|
||||||
LIBS += -liconv
|
LIBS += -liconv
|
||||||
else ifneq(, $(findstring darwin, $(SYS)))
|
else ifneq (, $(findstring darwin, $(SYS)))
|
||||||
# OS X
|
# OS X
|
||||||
LIBS += -liconv
|
LIBS += -liconv
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user