xref: /freebsd/sys/kern/Makefile (revision d8ffc21c5ca6f7d4f2d9a65dc6308699af0b6a01)
1#	@(#)Makefile	8.2 (Berkeley) 3/21/94
2# $FreeBSD$
3#
4# Makefile for init_sysent
5
6# Don't use an OBJDIR
7.OBJDIR: ${.CURDIR}
8
9.include <src.lua.mk>
10
11MAKESYSCALLS=	../tools/makesyscalls.lua
12SRCS=		capabilities.conf	\
13		syscalls.master
14GENERATED=	init_sysent.c		\
15		syscalls.c		\
16		systrace_args.c		\
17		../sys/syscall.h	\
18		../sys/syscall.mk	\
19		../sys/sysproto.h
20
21all:
22	@echo "make sysent only"
23
24# We .ORDER these explicitly so that we only run MAKESYSCALLS once, rather than
25# potentially once for each ${GENERATED} file.
26.ORDER: ${GENERATED}
27sysent: ${GENERATED}
28
29${GENERATED}: ${MAKESYSCALLS} ${SRCS}
30	${LUA} ${MAKESYSCALLS} syscalls.master
31