The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/conf/sysent.mk

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 # $FreeBSD$
    2 
    3 # Don't use an OBJDIR
    4 .OBJDIR: ${.CURDIR}
    5 
    6 .include <bsd.sysdir.mk>
    7 .include <src.lua.mk>
    8 
    9 COMMON_GENERATED=       proto.h         \
   10                         syscall.h       \
   11                         syscalls.c      \
   12                         sysent.c        \
   13                         systrace_args.c
   14 
   15 GENERATED_PREFIX?=
   16 GENERATED?=     ${COMMON_GENERATED:S/^/${GENERATED_PREFIX}/}
   17 SYSENT_FILE?=   syscalls.master
   18 SYSENT_CONF?=   syscalls.conf
   19 
   20 # Including Makefile should override SYSENT_FILE and SYSENT_CONF as needed,
   21 # and set GENERATED.
   22 SRCS+=  ${SYSENT_FILE}
   23 SRCS+=  ${SYSENT_CONF}
   24 
   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 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}

Cache object: b895ff7a402b2fa126519cbeaf1f6bb3


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.