20614c0f40
r355473 vastly improved the readability and cleanliness of these Makefiles. Every single one of them follows the same pattern and duplicates the exact same logic. Now that we have GENERATED/SRCS, split SRCS up into the two parameters we'll use for ${MAKESYSCALLS} rather than assuming a specific ordering of SRCS and include a common sysent.mk to handle the rest. This makes it less tedious to make sweeping changes. Some default values are provided for GENERATED/SYSENT_*; almost all of these just use a 'syscalls.master' and 'syscalls.conf' in cwd, and they all use effectively the same filenames with an arbitrary prefix. Most ABIs will be able to get away with just setting GENERATED_PREFIX and including ^/sys/conf/sysent.mk, while others only need light additions. kern/Makefile is the notable exception, as it doesn't take a SYSENT_CONF and the generated files are spread out between ^/sys/kern and ^/sys/sys, but it otherwise fits the pattern enough to use the common version. Reviewed by: brooks, imp Nice!: emaste Differential Revision: https://reviews.freebsd.org/D23197
15 lines
276 B
Makefile
15 lines
276 B
Makefile
# @(#)Makefile 8.2 (Berkeley) 3/21/94
|
|
# $FreeBSD$
|
|
#
|
|
# Makefile for init_sysent
|
|
|
|
SYSENT_CONF=
|
|
GENERATED= init_sysent.c \
|
|
syscalls.c \
|
|
systrace_args.c \
|
|
${SYSDIR}/sys/syscall.h \
|
|
${SYSDIR}/sys/syscall.mk \
|
|
${SYSDIR}/sys/sysproto.h
|
|
|
|
.include "../conf/sysent.mk"
|