OLD | NEW |
1 | 1 |
2 # Generates the makefile "sysd-rules" given a list of sysdeps | 2 # Generates the makefile "sysd-rules" given a list of sysdeps |
3 # subdirectories (the sysdirs search path). For every basename that | 3 # subdirectories (the sysdirs search path). For every basename that |
4 # appears in the search path, e.g. "vfork", it picks the source file | 4 # appears in the search path, e.g. "vfork", it picks the source file |
5 # that appears first, e.g. "sysdeps/unix/sysv/linux/i386/vfork.S". | 5 # that appears first, e.g. "sysdeps/unix/sysv/linux/i386/vfork.S". |
6 | 6 |
7 # TODO(mseaborn): Handle check-inhibit-asm | 7 # TODO(mseaborn): Handle check-inhibit-asm |
8 # TODO(mseaborn): Handle rule for installing .h files | 8 # TODO(mseaborn): Handle rule for installing .h files |
9 | 9 |
10 import os | 10 import os |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 "posix/alarm.c", | 84 "posix/alarm.c", |
85 "posix/getpid.c", | 85 "posix/getpid.c", |
86 "posix/glob.c", | 86 "posix/glob.c", |
87 "posix/pread.c", | 87 "posix/pread.c", |
88 "posix/pwrite.c", | 88 "posix/pwrite.c", |
89 "posix/vfork.c", | 89 "posix/vfork.c", |
90 "posix/wait.c", | 90 "posix/wait.c", |
91 "posix/waitid.c", | 91 "posix/waitid.c", |
92 "posix/waitpid.c", | 92 "posix/waitpid.c", |
93 "signal/sigaction.c", | 93 "signal/sigaction.c", |
94 "socket/accept.c", | |
95 "socket/bind.c", | |
96 "socket/connect.c", | |
97 "socket/getpeername.c", | |
98 "socket/getsockname.c", | |
99 "socket/getsockopt.c", | |
100 "socket/listen.c", | |
101 "socket/recv.c", | |
102 "socket/recvfrom.c", | |
103 "socket/recvmsg.c", | |
104 "socket/send.c", | |
105 "socket/sendmsg.c", | |
106 "socket/sendto.c", | |
107 "socket/setsockopt.c", | |
108 "socket/shutdown.c", | |
109 "socket/socket.c", | |
110 "socket/socketpair.c", | |
111 "stdio-common/tmpfile.c", | 94 "stdio-common/tmpfile.c", |
112 "stdlib/add_n.c", | 95 "stdlib/add_n.c", |
113 "stdlib/addmul_1.c", | 96 "stdlib/addmul_1.c", |
114 "stdlib/getcontext.c", | 97 "stdlib/getcontext.c", |
115 "stdlib/lshift.c", | 98 "stdlib/lshift.c", |
116 "stdlib/makecontext.c", | 99 "stdlib/makecontext.c", |
117 "stdlib/mul_1.c", | 100 "stdlib/mul_1.c", |
118 "stdlib/rshift.c", | 101 "stdlib/rshift.c", |
119 "stdlib/setcontext.c", | 102 "stdlib/setcontext.c", |
120 "stdlib/sub_n.c", | 103 "stdlib/sub_n.c", |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 254 |
272 def main(args): | 255 def main(args): |
273 generator = RuleGenerator(args) | 256 generator = RuleGenerator(args) |
274 generator.scan_sysdirs() | 257 generator.scan_sysdirs() |
275 generator.put_override_warnings(sys.stdout) | 258 generator.put_override_warnings(sys.stdout) |
276 generator.put_rules(sys.stdout) | 259 generator.put_rules(sys.stdout) |
277 | 260 |
278 | 261 |
279 if __name__ == "__main__": | 262 if __name__ == "__main__": |
280 main(sys.argv[1:]) | 263 main(sys.argv[1:]) |
OLD | NEW |