From 1aa0e17df7c325a41de8cf8a57f52ed853f08bf3 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Fri, 24 Apr 2020 19:01:28 +0800 Subject: Refined toolchain instructions, organized examples, added automatic retry for CdRead(), added FIOCSCAN ioctl in psxsio TTY driver, added tty and console examples. --- examples/lowlevel/cartrom/makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/lowlevel/cartrom/makefile (limited to 'examples/lowlevel/cartrom/makefile') diff --git a/examples/lowlevel/cartrom/makefile b/examples/lowlevel/cartrom/makefile new file mode 100644 index 0000000..2434685 --- /dev/null +++ b/examples/lowlevel/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 -- cgit v1.2.3