freebsd-dev/sys/kern/Makefile
Brooks Davis af796bfa71 sysent: Reduce duplication and improve readability.
Use the power of variable to avoid spelling out source and generated
files too many times.  The previous Makefiles were hard to read, hard to
edit, and badly formatted.

Reviewed by:	kevans, emaste
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D22714
2019-12-06 23:59:23 +00:00

27 lines
471 B
Makefile

# @(#)Makefile 8.2 (Berkeley) 3/21/94
# $FreeBSD$
#
# Makefile for init_sysent
# Don't use an OBJDIR
.OBJDIR: ${.CURDIR}
.include <src.lua.mk>
MAKESYSCALLS= ../tools/makesyscalls.lua
SRCS= capabilities.conf \
syscalls.master
GENERATED= init_sysent.c \
syscalls.c \
../sys/syscall.h \
../sys/syscall.mk \
../sys/sysproto.h
all:
@echo "make sysent only"
sysent: ${GENERATED}
${GENERATED}: ${MAKESYSCALLS} ${SRCS}
${LUA} ${MAKESYSCALLS} syscalls.master