]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/conf/sysent.mk
acpi: Only reserve resources enumerated via _CRS
[FreeBSD/FreeBSD.git] / sys / conf / sysent.mk
1
2 # Don't use an OBJDIR
3 .OBJDIR: ${.CURDIR}
4
5 .include <bsd.sysdir.mk>
6 .include <src.lua.mk>
7
8 COMMON_GENERATED=       proto.h         \
9                         syscall.h       \
10                         syscalls.c      \
11                         sysent.c        \
12                         systrace_args.c
13
14 GENERATED_PREFIX?=
15 GENERATED?=     ${COMMON_GENERATED:S/^/${GENERATED_PREFIX}/}
16 SYSENT_FILE?=   syscalls.master
17 SYSENT_CONF?=   syscalls.conf
18
19 # Including Makefile should override SYSENT_FILE and SYSENT_CONF as needed,
20 # and set GENERATED.
21 SRCS+=  ${SYSENT_FILE}
22 SRCS+=  ${SYSENT_CONF}
23
24 # Ensure that the target gets updated if the capabilities file is modified,
25 # even though it is not an explicit input to makesyscalls.lua.  For some
26 # targets, like Linux system calls, this is unnecessary, but a spurious rebuild
27 # is both rare and harmless.
28 CAPABILITIES_CONF?= ${SYSDIR}/kern/capabilities.conf
29 SRCS+=  ${CAPABILITIES_CONF}
30
31 MAKESYSCALLS_INTERP?=   ${LUA}
32 MAKESYSCALLS_SCRIPT?=   ${SYSDIR}/tools/makesyscalls.lua
33 MAKESYSCALLS=   ${MAKESYSCALLS_INTERP} ${MAKESYSCALLS_SCRIPT}
34
35 all:
36         @echo "make sysent only"
37
38 # We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than
39 # potentially once for each ${GENERATED} file.
40 .ORDER: ${GENERATED}
41 sysent: ${GENERATED}
42
43 # We slap a .PHONY on makesyscalls.lua so that we regenerate every single time,
44 # for now, which can be less painful across rebases or other things that may
45 # have odd effects on mtimes.
46 ${MAKESYSCALLS_SCRIPT}: .PHONY
47
48 ${GENERATED}: ${MAKESYSCALLS_SCRIPT} ${SRCS}
49         ${MAKESYSCALLS} ${SYSENT_FILE} ${SYSENT_CONF}