musl: build without gnu make

This commit is contained in:
Ella-0 2021-10-11 17:30:08 +01:00
parent 1b869812b8
commit 64ec36b51a
7 changed files with 271 additions and 12 deletions

View file

@ -0,0 +1,28 @@
alltypes_h = custom_target(
'alltypes.h',
output : 'alltypes.h',
input : [
meson.project_source_root() + '/tools/mkalltypes.sed',
meson.project_source_root() + '/arch/'+arch+'/bits/alltypes.h.in',
meson.project_source_root() + '/include/alltypes.h.in'
],
command : ['sed', '-f', '@INPUT0@', '@INPUT1@', '@INPUT2@'],
capture : true
)
syscall_h_in = custom_target(
'syscall.in',
output : 'syscall.in',
input : meson.project_source_root() + '/arch/'+arch+'/bits/syscall.h.in',
command : ['sed', '-n', '-e', 's/__NR_/SYS_/p', '@INPUT@'],
capture : true
)
syscall_h = custom_target(
'syscall.h',
output : 'syscall.h',
input : [ meson.project_source_root() + '/arch/'+arch+'/bits/syscall.h.in', syscall_h_in ],
command : ['cat', '@INPUT0@', '@INPUT1@'],
capture : true
)