blob: 4807f01c104551839ee784ddf3c97420a0f303ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$NetBSD: patch-ab,v 1.2 2007/04/27 19:45:01 christos Exp $
--- /dev/null 2007-04-26 23:20:40.000000000 -0400
+++ netbsd/Makefile 2007-04-27 15:14:51.000000000 -0400
@@ -0,0 +1,35 @@
+
+arch != uname -p
+
+DEP= syscallent.h ioctlent.h errnoent.h signalent.h
+ALL= ${DEP}
+ALL+= syscall.h ${arch}/errnoent1.h ${arch}/ioctlent1.h ${arch}/syscallent1.h ${arch}/signalent1.h
+
+all: ${ALL}
+
+syscallent.h: syscalls.pl syscalls.print syscalls.cat /usr/src/sys/kern/syscalls.master
+ @chmod +x syscalls.pl
+ syscalls.pl /usr/src/sys/kern/syscalls.master syscalls.print syscalls.cat > $@
+
+syscall.h: syscallent.h
+
+signalent.h: mksignal /usr/include/sys/signal.h
+ @chmod +x mksignal
+ mksignal /usr/include/sys/signal.h > $@
+
+errnoent.h: mkerrno /usr/include/sys/errno.h
+ @chmod +x mkerrno
+ mkerrno /usr/include/sys/errno.h > $@
+
+ioctlent.h: ioctlent.sh
+ @chmod +x ioctlent.sh
+ ioctlent.sh > $@
+
+.for i in ${DEP}
+${arch}/${i:R}1.h:
+ @mkdir -p ${arch}
+ echo '#include "../$i"' > $@
+.endfor
+
+clean:
+ rm -f ${ALL} ioctlent.c ioctlent
|