diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/sdk-common.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/sdk-common.mk b/examples/sdk-common.mk index 0d97555..312fda3 100644 --- a/examples/sdk-common.mk +++ b/examples/sdk-common.mk @@ -10,9 +10,14 @@ INCLUDE = -I../../libpsn00b/include # Library directories, last entry must point toolchain libraries LIBDIRS = -L../../libpsn00b +ifndef GCC_VERSION GCC_VERSION = 7.4.0 +endif + +ifndef GCC_BASE + ifeq "$(OS)" "Windows_NT" # For Windows GCC_BASE = /c/mipsel-unknown-elf @@ -23,5 +28,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 |
