diff options
| author | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-07-17 11:30:07 +0800 |
|---|---|---|
| committer | John Wilbert M. Villamor <lameguy64@gmail.com> | 2019-07-17 11:30:07 +0800 |
| commit | 0d4345a9bf2623df079c50a3bc73cbb7deca1176 (patch) | |
| tree | 6cda70b844f39fc2d65a806b91a6010066433b56 /examples/sdk-common.mk | |
| parent | b956c5391b955e793a4d54572aa58872b4c66c30 (diff) | |
| download | psn00bsdk-0d4345a9bf2623df079c50a3bc73cbb7deca1176.tar.gz | |
Added C++ support, updated build instructions and makefiles, consolidated libc and libgcc (during build process), libraries now v0.12b and more
Diffstat (limited to 'examples/sdk-common.mk')
| -rw-r--r-- | examples/sdk-common.mk | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/examples/sdk-common.mk b/examples/sdk-common.mk index 8a92dbf..0d97555 100644 --- a/examples/sdk-common.mk +++ b/examples/sdk-common.mk @@ -1,19 +1,27 @@ # Adjustable common makefile values for PSn00bSDK example programs. -# You may need to modify these values to correspond to your toolchain setup. +# You may need to modify these values to match with your toolchain setup. -# Toolchain prefix. Can include an absolute path to the toolchain executables. +# Toolchain prefix PREFIX = mipsel-unknown-elf- -# Include directories. +# Include directories INCLUDE = -I../../libpsn00b/include -# Library directories. Last entry must point to a directory containing libgcc. +# Library directories, last entry must point toolchain libraries LIBDIRS = -L../../libpsn00b -# Directory path for toolchain's libraries (you may need to change this) -ifeq "$(OS)" "Windows_NT" -# For Windows -LIBDIRS += -L/c/psn00bsdk/lib -else -# For Linux/BSDs -LIBDIRS += -L/usr/local/mipsel-unknown-elf/lib/gcc/mipsel-unknown-elf/6.3.0 + + +GCC_VERSION = 7.4.0 + +ifeq "$(OS)" "Windows_NT" # For Windows + +GCC_BASE = /c/mipsel-unknown-elf + +else # For Linux/BSDs + +GCC_BASE = /usr/local/mipsel-unknown-elf + endif + +LIBDIRS += -L$(GCC_BASE)/lib/gcc/mipsel-unknown-elf/$(GCC_VERSION) +INCLUDE += -I$(GCC_BASE)/lib/gcc/mipsel-unknown-elf/$(GCC_VERSION)/include |
