aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/common.mk
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-07-17 11:30:07 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-07-17 11:30:07 +0800
commit0d4345a9bf2623df079c50a3bc73cbb7deca1176 (patch)
tree6cda70b844f39fc2d65a806b91a6010066433b56 /libpsn00b/common.mk
parentb956c5391b955e793a4d54572aa58872b4c66c30 (diff)
downloadpsn00bsdk-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 'libpsn00b/common.mk')
-rw-r--r--libpsn00b/common.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/libpsn00b/common.mk b/libpsn00b/common.mk
new file mode 100644
index 0000000..83b45e9
--- /dev/null
+++ b/libpsn00b/common.mk
@@ -0,0 +1,27 @@
+# Adjustable common makefile values for PSn00bSDK example programs.
+# You may need to modify these values to match with your toolchain setup.
+
+# GCC version
+GCC_VERSION = 7.4.0
+
+# GCC base paths
+ifeq "$(OS)" "Windows_NT" # For Windows
+
+GCC_BASE = /c/mipsel-unknown-elf
+
+else # For Linux/BSDs
+
+GCC_BASE = /usr/local/mipsel-unknown-elf
+
+endif
+
+
+# Toolchain prefix
+PREFIX = mipsel-unknown-elf-
+
+# Include directories
+INCLUDE = -I../include
+
+# Finish paths
+LIBDIRS += -L$(GCC_BASE)/lib/gcc/mipsel-unknown-elf/$(GCC_VERSION)
+INCLUDE += -I$(GCC_BASE)/lib/gcc/mipsel-unknown-elf/$(GCC_VERSION)/include