From 9f4891f95070c66ea9f1aba99d72724d4ab24e5a Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Sat, 19 Sep 2020 20:43:05 +0800 Subject: Revised makefiles, added strtok(), command line arguments, SetHeapSize(), moved ISR and callback system to psxetc, moved debug font to psxgpu, fixed CD-ROM library crashing on PSIO, fixed interrupt callback setup to fix crashing on ResetGraph() --- examples/examples-setup.mk | 63 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 examples/examples-setup.mk (limited to 'examples/examples-setup.mk') diff --git a/examples/examples-setup.mk b/examples/examples-setup.mk new file mode 100644 index 0000000..a5cfc20 --- /dev/null +++ b/examples/examples-setup.mk @@ -0,0 +1,63 @@ +# PSn00bSDK examples setup file +# Part of the PSn00bSDK Project +# 2019 - 2020 Lameguy64 / Meido-Tek Productions +# +# This is only for the PSn00bSDK example programs, not recommended +# for use with user projects + +PREFIX = mipsel-unknown-elf- + +ifndef GCC_VERSION + +GCC_VERSION = 7.4.0 + +endif # GCC_VERSION + +# PSn00bSDK library/include path setup +ifndef PSN00BSDK_LIBS + +# Default assumes libpsn00b is just in the parent dir of the examples dir + +LIBDIRS = -L../../../libpsn00b +INCLUDE = -I../../../libpsn00b/include + +else + +LIBDIRS = -L$(PSN00BSDK_LIBS) +INCLUDE = -I$(PSN00BSDK_LIBS)/include + +endif # PSN00BSDK_LIBS + +# PSn00bSDK toolchain path setup +ifndef GCC_BASE + +ifndef PSN00BSDK_TC + +# Default assumes GCC toolchain is in root of C drive or /usr/local + +ifeq "$(OS)" "Windows_NT" + +GCC_BASE = /c/mipsel-unknown-elf +GCC_BIN = + +else + +GCC_BASE = /usr/local/mipsel-unknown-elf +GCC_BIN = + +endif + +else + +GCC_BASE = $(PSN00BSDK_TC) +GCC_BIN = $(PSN00BSDK_TC)/bin/ + +endif # PSN00BSDK_TC + +endif # GCC_BASE + +CC = $(GCC_BIN)$(PREFIX)gcc +CXX = $(GCC_BIN)$(PREFIX)g++ +AS = $(GCC_BIN)$(PREFIX)as +AR = $(GCC_BIN)$(PREFIX)ar +RANLIB = $(GCC_BIN)$(PREFIX)ranlib \ No newline at end of file -- cgit v1.2.3