libk  Diff

Differences From Artifact [657c34aa94]:

To Artifact [0ea82c6f52]:


1





2
3
4
5


linux-headers = /usr/include/asm/





calls.x86.lin.32.s: $(linux-headers)/unistd_32.h
	grep "#define __NR_" $< | sed "s;^#define __NR_;%define sys.;" > $@
calls.x86.lin.64.s: $(linux-headers)/unistd_64.h
	grep "#define __NR_" $< | sed "s;^#define __NR_;%define sys.;" > $@


|
>
>
>
>
>
|
|
|
|
>
>
1
2
3
4
5
6
7
8
9
10
11
12
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.;' > $@