Page MenuHomeFreeBSD

D22714.diff
No OneTemporary

D22714.diff

Index: head/sys/amd64/linux/Makefile
===================================================================
--- head/sys/amd64/linux/Makefile
+++ head/sys/amd64/linux/Makefile
@@ -7,11 +7,19 @@
.include <src.lua.mk>
+MAKESYSCALLS= ../../tools/makesyscalls.lua
+SRCS= syscalls.conf \
+ syscalls.master
+GENERATED= linux_proto.h \
+ linux_syscall.h \
+ linux_syscalls.c \
+ linux_sysent.c \
+ linux_systrace_args.c
+
all:
@echo "make sysent only"
-sysent: linux_sysent.c linux_syscall.h linux_proto.h linux_syscalls.c linux_systrace_args.c
+sysent: ${GENERATED}
-linux_sysent.c linux_syscall.h linux_proto.h linux_syscalls.c linux_systrace_args.c: \
- ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf
- ${LUA} ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf
+${GENERATED}: ${MAKESYSCALLS} ${SRCS}
+ ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf
Index: head/sys/amd64/linux32/Makefile
===================================================================
--- head/sys/amd64/linux32/Makefile
+++ head/sys/amd64/linux32/Makefile
@@ -7,11 +7,19 @@
.include <src.lua.mk>
+MAKESYSCALLS= ../../tools/makesyscalls.lua
+SRCS= syscalls.conf \
+ syscalls.master
+GENERATED= linux32_proto.h \
+ linux32_syscall.h \
+ linux32_syscalls.c \
+ linux32_sysent.c \
+ linux32_systrace_args.c
+
all:
@echo "make sysent only"
-sysent: linux32_sysent.c linux32_syscall.h linux32_proto.h linux32_syscalls.c linux32_systrace_args.c
+sysent: ${GENERATED}
-linux32_sysent.c linux32_syscall.h linux32_proto.h linux32_syscalls.c linux32_systrace_args.c: ../../tools/makesyscalls.lua \
- syscalls.master ${.CURDIR}/syscalls.conf
- ${LUA} ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf
+${GENERATED}: ${MAKESYSCALLS} ${SRCS}
+ ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf
Index: head/sys/arm64/linux/Makefile
===================================================================
--- head/sys/arm64/linux/Makefile
+++ head/sys/arm64/linux/Makefile
@@ -7,11 +7,19 @@
.include <src.lua.mk>
+MAKESYSCALLS= ../../tools/makesyscalls.lua
+SRCS= syscalls.conf \
+ syscalls.master
+GENERATED= linux_proto.h \
+ linux_syscall.h \
+ linux_syscalls.c \
+ linux_sysent.c \
+ linux_systrace_args.c
+
all:
@echo "make sysent only"
-sysent: linux_sysent.c linux_syscall.h linux_proto.h linux_syscalls.c linux_systrace_args.c
+sysent: ${GENERATED}
-linux_sysent.c linux_syscall.h linux_proto.h linux_syscalls.c linux_systrace_args.c: \
- ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf
- ${LUA} ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf
+${GENERATED}: ${MAKESYSCALLS} ${SRCS}
+ ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf
Index: head/sys/compat/cloudabi32/Makefile
===================================================================
--- head/sys/compat/cloudabi32/Makefile
+++ head/sys/compat/cloudabi32/Makefile
@@ -5,15 +5,20 @@
.include <src.lua.mk>
+MAKESYSCALLS= ../../tools/makesyscalls.lua
+SRCS= syscalls.conf \
+ ../../contrib/cloudabi/syscalls32.master
+GENERATED= cloudabi32_proto.h \
+ cloudabi32_syscall.h \
+ cloudabi32_syscalls.c \
+ cloudabi32_sysent.c \
+ cloudabi32_systrace_args.c
+
all:
@echo "make sysent only"
-sysent: cloudabi32_sysent.c cloudabi32_syscall.h cloudabi32_proto.h \
- cloudabi32_syscalls.c cloudabi32_systrace_args.c
+sysent: ${GENERATED}
-cloudabi32_sysent.c cloudabi32_syscall.h cloudabi32_proto.h \
- cloudabi32_syscalls.c cloudabi32_systrace_args.c: \
- ../../tools/makesyscalls.lua ../../contrib/cloudabi/syscalls32.master \
- ${.CURDIR}/syscalls.conf
- ${LUA} ../../tools/makesyscalls.lua \
- ../../contrib/cloudabi/syscalls32.master ${.CURDIR}/syscalls.conf
+${GENERATED}: ${MAKESYSCALLS} ${SRCS}
+ ${LUA} ${MAKESYSCALLS} \
+ ../../contrib/cloudabi/syscalls32.master syscalls.conf
Index: head/sys/compat/cloudabi64/Makefile
===================================================================
--- head/sys/compat/cloudabi64/Makefile
+++ head/sys/compat/cloudabi64/Makefile
@@ -5,15 +5,20 @@
# Don't use an OBJDIR
.OBJDIR: ${.CURDIR}
+MAKESYSCALLS= ../../tools/makesyscalls.lua
+SRCS= syscalls.conf \
+ ../../contrib/cloudabi/syscalls64.master
+GENERATED= cloudabi64_proto.h \
+ cloudabi64_syscall.h \
+ cloudabi64_syscalls.c \
+ cloudabi64_sysent.c \
+ cloudabi64_systrace_args.c
+
all:
@echo "make sysent only"
-sysent: cloudabi64_sysent.c cloudabi64_syscall.h cloudabi64_proto.h \
- cloudabi64_syscalls.c cloudabi64_systrace_args.c
+sysent: ${GENERATED}
-cloudabi64_sysent.c cloudabi64_syscall.h cloudabi64_proto.h \
- cloudabi64_syscalls.c cloudabi64_systrace_args.c: \
- ../../tools/makesyscalls.lua ../../contrib/cloudabi/syscalls64.master \
- ${.CURDIR}/syscalls.conf
- ${LUA} ../../tools/makesyscalls.lua \
- ../../contrib/cloudabi/syscalls64.master ${.CURDIR}/syscalls.conf
+${GENERATED}: ${MAKESYSCALLS} ${SRCS}
+ ${LUA} ${MAKESYSCALLS} \
+ ../../contrib/cloudabi/syscalls64.master syscalls.conf
Index: head/sys/compat/freebsd32/Makefile
===================================================================
--- head/sys/compat/freebsd32/Makefile
+++ head/sys/compat/freebsd32/Makefile
@@ -7,15 +7,20 @@
.include <src.lua.mk>
+MAKESYSCALLS= ../../tools/makesyscalls.lua
+SRCS= ../../kern/capabilities.conf \
+ syscalls.conf \
+ syscalls.master
+GENERATED= freebsd32_proto.h \
+ freebsd32_syscall.h \
+ freebsd32_syscalls.c \
+ freebsd32_sysent.c \
+ freebsd32_systrace_args.c
+
all:
@echo "make sysent only"
-sysent: freebsd32_sysent.c freebsd32_syscall.h freebsd32_proto.h freebsd32_systrace_args.c
+sysent: ${GENERATED}
-freebsd32_sysent.c freebsd32_syscalls.c freebsd32_syscall.h freebsd32_proto.h freebsd32_systrace_args.c : \
- ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf ../../kern/capabilities.conf
- ${LUA} ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf
-
-clean:
- rm -f freebsd32_sysent.c freebsd32_syscalls.c freebsd32_syscall.h freebsd32_proto.h
- rm -f freebsd32_systrace_args.c
+${GENERATED}: ${MAKESYSCALLS} ${SRCS}
+ ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf
Index: head/sys/i386/linux/Makefile
===================================================================
--- head/sys/i386/linux/Makefile
+++ head/sys/i386/linux/Makefile
@@ -7,11 +7,19 @@
.include <src.lua.mk>
+MAKESYSCALLS= ../../tools/makesyscalls.lua
+SRCS= syscalls.conf \
+ syscalls.master
+GENERATED= linux_proto.h \
+ linux_syscall.h \
+ linux_syscalls.c \
+ linux_sysent.c \
+ linux_systrace_args.c
+
all:
@echo "make sysent only"
-sysent: linux_sysent.c linux_syscall.h linux_proto.h linux_syscalls.c linux_systrace_args.c
+sysent: ${GENERATED}
-linux_sysent.c linux_syscall.h linux_proto.h linux_syscalls.c linux_systrace_args.c: \
- ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf
- ${LUA} ../../tools/makesyscalls.lua syscalls.master ${.CURDIR}/syscalls.conf
+${GENERATED}: ${MAKESYSCALLS} ${SRCS}
+ ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf
Index: head/sys/kern/Makefile
===================================================================
--- head/sys/kern/Makefile
+++ head/sys/kern/Makefile
@@ -8,13 +8,19 @@
.include <src.lua.mk>
+MAKESYSCALLS= ../tools/makesyscalls.lua
+SRCS= capabilities.conf \
+ syscalls.master
+GENERATED= init_sysent.c \
+ syscalls.c \
+ ../sys/syscall.h \
+ ../sys/syscall.mk \
+ ../sys/sysproto.h
+
all:
@echo "make sysent only"
-sysent: init_sysent.c syscalls.c ../sys/syscall.h ../sys/syscall.mk \
-../sys/sysproto.h
+sysent: ${GENERATED}
-init_sysent.c syscalls.c systrace_args.c ../sys/syscall.h \
-../sys/syscall.mk ../sys/sysproto.h: ../tools/makesyscalls.lua syscalls.master \
-capabilities.conf
- ${LUA} ../tools/makesyscalls.lua syscalls.master
+${GENERATED}: ${MAKESYSCALLS} ${SRCS}
+ ${LUA} ${MAKESYSCALLS} syscalls.master

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 5:52 AM (18 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30818593
Default Alt Text
D22714.diff (7 KB)

Event Timeline