aboutsummaryrefslogtreecommitdiff
path: root/examples/cartrom/makefile
diff options
context:
space:
mode:
authorlameguy64 <lameguy64@gmail.com>2019-05-23 22:24:56 +0800
committerlameguy64 <lameguy64@gmail.com>2019-05-23 22:24:56 +0800
commit3ffebff2aad2ca438cf76db51fb3459c5639cd67 (patch)
treea234fc6158d3c09904c4c1fb2feee09afb479a4c /examples/cartrom/makefile
parente70cd149f41ea71f9ca9ee86c03d1e59005dad2a (diff)
downloadpsn00bsdk-3ffebff2aad2ca438cf76db51fb3459c5639cd67.tar.gz
Added BIOS Controller, BIOS CD, 2 new examples and custom exit handler in the works
Diffstat (limited to 'examples/cartrom/makefile')
-rw-r--r--examples/cartrom/makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/cartrom/makefile b/examples/cartrom/makefile
new file mode 100644
index 0000000..2434685
--- /dev/null
+++ b/examples/cartrom/makefile
@@ -0,0 +1,14 @@
+PREFIX = mipsel-unknown-elf-
+
+CC = $(PREFIX)gcc
+AS = $(PREFIX)as
+LD = $(PREFIX)ld
+
+all: rom.o
+ $(LD) --oformat binary -T rom.ld -o cartrom.rom rom.o
+
+%.o: %.s
+ $(AS) -msoft-float --warn $< -o $@
+
+clean:
+ rm -f rom.o cartrom.rom \ No newline at end of file