summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-03-23 20:58:25 -0400
committermidipix <writeonce@midipix.org>2015-03-23 20:58:25 -0400
commit5d2af67a5378711a4257b14c60cec61c0f127f4e (patch)
tree85f8934c7d13a2a7a013fda77cfc238b0930d4e8 /Makefile
downloadpsxstub-5d2af67a5378711a4257b14c60cec61c0f127f4e.tar.bz2
psxstub-5d2af67a5378711a4257b14c60cec61c0f127f4e.tar.xz
libpsxscl: stub for toolchain build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
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 *~