-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault.do
More file actions
89 lines (89 loc) · 1.19 KB
/
default.do
File metadata and controls
89 lines (89 loc) · 1.19 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/usr/bin/automate -s std-default,std-c
%HDR-IN{
macros.h.in
ctypes.h.in
types.h.in
prototypes.h.in
}
%SYSHDR{
sys/$:{%host-os}/generic/${%HDR}
sys/$:{%host-os}/$:{%host-arch}/${%HDR}
}
%SYSCALL-IN{
sys/$:{%host-os}/generic/syscalls.in
sys/$:{%host-os}/$:{%host-arch}/syscalls.in
}
@include{
inc/tertium/cpu.h
inc/tertium/dat.h
inc/tertium/fns.h
inc/tertium/std.h
}
@library{
lib/libtertium.a
}
@manpage{
transform{
module:glob
glob:man/*
}
}
inc/tertium/cpu.h{
output:$3
module:rules
rules{
headers
syscalls
}
headers{
module:map
map:$:{%HDR-IN}
apply{
command{
cat
sys/$:{host-os}/generic/$:{<}
sys/$:{host-os}/$:{host-arch}/$:{<}
}
}
}
syscalls{
command{
pipeline { cat $:{SYSCALL-IN} }
awk -f inc/tertium/cpu.h.awk
}
}
${%SYSHDR}
inc/tertium/cpu.h.awk
}
lib/libtertium.a{
module:cmd
inject{
c-files{
module:glob
glob:src/*/*.c
}
asm-files{
module:glob
glob:sys/$:{%host-os}/$:{%host-arch}/*.s
}
}
cmd{
${default.a}
${c-files}.o
${asm-files}.o
}
src/sys
}
src/sys{
module:cmd
cmd{
command{
if { mkdir $3 }
pipeline { cat $:{%SYSCALL-IN} }
cd $3
awk -f ../sys.awk
}
${%SYSCALL-IN}
}
src/sys.awk
}