summaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 14a1a7b323ff7878498ae2d6c6de062add25897b (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)-gcc -c -o stub.o stub.S
	$(TARGET)-ar rc libpsxscl.a stub.o
	$(TARGET)-ranlib libpsxscl.a


install: all
	mkdir -p $(DESTDIR)/lib
	cp libpsxscl.so libpsxscl.lib.a libpsxscl.a $(DESTDIR)/lib


clean:
	rm -f *.so
	rm -f *.o
	rm -f *.a
	rm -f *~