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