5 .
include <bsd.sysdir.mk
>
8 COMMON_GENERATED
= proto.h \
15 GENERATED?
= ${COMMON_GENERATED
:S
/^
/${GENERATED_PREFIX}/}
16 SYSENT_FILE?
= syscalls.master
17 SYSENT_CONF?
= syscalls.conf
19 # Including Makefile should override SYSENT_FILE and SYSENT_CONF as needed,
24 MAKESYSCALLS_INTERP?
= ${LUA}
25 MAKESYSCALLS_SCRIPT?
= ${SYSDIR}/tools
/syscalls
/main.lua
26 MAKESYSCALLS
= ${MAKESYSCALLS_INTERP} ${MAKESYSCALLS_SCRIPT}
29 @echo
"make sysent only"
31 # We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than
32 # potentially once for each ${GENERATED} file.
36 # We slap a .PHONY on MAKESYSCALLS_SCRIPT so that we regenerate every
37 # single time rather than tracking all internal dependencies for now.
38 ${MAKESYSCALLS_SCRIPT}: .PHONY
40 ${GENERATED}: ${MAKESYSCALLS_SCRIPT} ${SRCS}
41 ${MAKESYSCALLS} ${SYSENT_FILE} ${SYSENT_CONF}