diff options
| -rw-r--r-- | examples/sdk-common.mk | 4 | ||||
| -rw-r--r-- | libpsn00b/common.mk | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/examples/sdk-common.mk b/examples/sdk-common.mk index 0d97555..fa4da20 100644 --- a/examples/sdk-common.mk +++ b/examples/sdk-common.mk @@ -13,6 +13,8 @@ LIBDIRS = -L../../libpsn00b GCC_VERSION = 7.4.0 +ifndef GCC_BASE + ifeq "$(OS)" "Windows_NT" # For Windows GCC_BASE = /c/mipsel-unknown-elf @@ -23,5 +25,7 @@ GCC_BASE = /usr/local/mipsel-unknown-elf endif +endif + LIBDIRS += -L$(GCC_BASE)/lib/gcc/mipsel-unknown-elf/$(GCC_VERSION) INCLUDE += -I$(GCC_BASE)/lib/gcc/mipsel-unknown-elf/$(GCC_VERSION)/include diff --git a/libpsn00b/common.mk b/libpsn00b/common.mk index 83b45e9..1733166 100644 --- a/libpsn00b/common.mk +++ b/libpsn00b/common.mk @@ -5,6 +5,8 @@ GCC_VERSION = 7.4.0 # GCC base paths +ifndef GCC_BASE + ifeq "$(OS)" "Windows_NT" # For Windows GCC_BASE = /c/mipsel-unknown-elf @@ -15,6 +17,8 @@ GCC_BASE = /usr/local/mipsel-unknown-elf endif +endif + # Toolchain prefix PREFIX = mipsel-unknown-elf- |
