6 .include <bsd.sysdir.mk>
9 COMMON_GENERATED= proto.h \
16 GENERATED?= ${COMMON_GENERATED:S/^/${GENERATED_PREFIX}/}
17 SYSENT_FILE?= syscalls.master
18 SYSENT_CONF?= syscalls.conf
20 # Including Makefile should override SYSENT_FILE and SYSENT_CONF as needed,
25 # Ensure that the target gets updated if the capabilities file is modified,
26 # even though it is not an explicit input to makesyscalls.lua. For some
27 # targets, like Linux system calls, this is unnecessary, but a spurious rebuild
28 # is both rare and harmless.
29 CAPABILITIES_CONF?= ${SYSDIR}/kern/capabilities.conf
30 SRCS+= ${CAPABILITIES_CONF}
32 MAKESYSCALLS_INTERP?= ${LUA}
33 MAKESYSCALLS_SCRIPT?= ${SYSDIR}/tools/makesyscalls.lua
34 MAKESYSCALLS= ${MAKESYSCALLS_INTERP} ${MAKESYSCALLS_SCRIPT}
37 @echo "make sysent only"
39 # We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than
40 # potentially once for each ${GENERATED} file.
44 # We slap a .PHONY on makesyscalls.lua so that we regenerate every single time,
45 # for now, which can be less painful across rebases or other things that may
46 # have odd effects on mtimes.
47 ${MAKESYSCALLS_SCRIPT}: .PHONY
49 ${GENERATED}: ${MAKESYSCALLS_SCRIPT} ${SRCS}
50 ${MAKESYSCALLS} ${SYSENT_FILE} ${SYSENT_CONF}