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