]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/i386/linux/Makefile
Set .ORDER for makesyscalls generated files
[FreeBSD/FreeBSD.git] / sys / i386 / linux / Makefile
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
10 MAKESYSCALLS=   ../../tools/makesyscalls.lua
11 SRCS=           syscalls.conf           \
12                 syscalls.master
13 GENERATED=      linux_proto.h           \
14                 linux_syscall.h         \
15                 linux_syscalls.c        \
16                 linux_sysent.c          \
17                 linux_systrace_args.c
18
19 all:
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}
25 sysent: ${GENERATED}
26
27 ${GENERATED}: ${MAKESYSCALLS} ${SRCS}
28         ${LUA} ${MAKESYSCALLS} syscalls.master syscalls.conf