summaryrefslogtreecommitdiff
path: root/ARM/syscalls/Makefile
blob: 17a84e74bd6a5c5f576bf6653cd1b1fddef5e0a0 (plain)
1
2
3
4
5
6
7
8

all: syscalls

syscalls: syscalls.asm
	grep .global syscalls.asm | cut -d ' ' -f 2 > keep.lst
	arm-linux-gnueabi-as -o syscalls.o syscalls.asm
	arm-linux-gnueabi-ld -s --retain-symbols-file=keep.lst -o syscalls syscalls.o
	rm -f keep.lst