diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | Makefile | 17 | ||||
-rw-r--r-- | stub.s | 8 |
3 files changed, 29 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..206ca51 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.so +*.o +*.a +*~ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3080f62 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +all: + x86_64-nt64-midipix-gcc -shared -nostdlib -mout-implib -olibpsxscl.so stub.s + x86_64-nt64-midipix-as -o stub.o stub.s + x86_64-nt64-midipix-ar rc libpsxscl.a stub.o + x86_64-nt64-midipix-ranlib libpsxscl.a + + +install: all + mkdir -p $(DESTDIR)/lib + cp -t $(DESTDIR)/lib libpsxscl.so libpsxscl.lib.a libpsxscl.a + + +clean: + rm -f *.so + rm -f *.o + rm -f *.a + rm -f *~ @@ -0,0 +1,8 @@ +.text +.globl __psx_init +.globl _so_entry_point + +__psx_init: +_so_entry_point: + mov $1, %rax + ret |