libk  makefile at [2ed2a90fe5]

File arch/makefile artifact 0ea82c6f52 part of check-in 2ed2a90fe5


lin-headers = /usr/include/asm
fbsd-headers = /usr/include/sys

${TMP}:
	mkdir -p ${TMP}

${TMP}/calls.x86.lin.32.s: $(lin-headers)/unistd_32.h ${TMP}
	grep "#define __NR_" $< | sed 's;^#define __NR_;%define sys.;' > $@
${TMP}/calls.x86.lin.64.s: $(lin-headers)/unistd_64.h ${TMP}
	grep "#define __NR_" $< | sed 's;^#define __NR_;%define sys.;' > $@
${TMP}/calls.x86.fbsd.%.s: $(fbsd-headers)/syscall.h ${TMP}
	grep "#define	SYS_" $< | sed 's;^#define	SYS_;%define sys.;' > $@