summaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: f750b67059c048a7b8d6df4efda2935bccaf3534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
all:
	$(TARGET)-gcc -shared -nostdlib -mout-implib -olibpsxscl.so stub.s
	$(TARGET)-as -o stub.o stub.s
	$(TARGET)-ar rc libpsxscl.a stub.o
	$(TARGET)-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 *~