2020-02-13 12:19:28 +01:00
|
|
|
|
|
|
|
rtdl_sources += files(
|
2020-04-25 02:09:14 +02:00
|
|
|
'generic/filesystem.cpp',
|
|
|
|
'generic/lemon.cpp',
|
2020-02-13 12:19:28 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
libc_sources += files(
|
|
|
|
'generic/filesystem.cpp',
|
|
|
|
'generic/lemon.cpp',
|
2020-05-20 10:42:40 +02:00
|
|
|
'generic/sockets.cpp',
|
2020-04-25 02:09:14 +02:00
|
|
|
'generic/entry.cpp',
|
2020-02-13 12:19:28 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
if not no_headers
|
|
|
|
install_headers(
|
|
|
|
'include/abi-bits/abi.h',
|
|
|
|
'include/abi-bits/auxv.h',
|
|
|
|
'include/abi-bits/seek-whence.h',
|
|
|
|
'include/abi-bits/vm-flags.h',
|
2020-02-20 15:23:05 +01:00
|
|
|
'include/abi-bits/errno.h',
|
2020-03-21 11:27:16 +01:00
|
|
|
'include/abi-bits/fcntl.h',
|
|
|
|
'include/abi-bits/in.h',
|
2020-05-13 09:15:23 +02:00
|
|
|
'include/abi-bits/resource.h',
|
2020-02-20 15:23:05 +01:00
|
|
|
'include/abi-bits/signal.h',
|
|
|
|
'include/abi-bits/stat.h',
|
2020-03-21 11:27:16 +01:00
|
|
|
'include/abi-bits/socket.h',
|
2020-05-19 10:27:15 +02:00
|
|
|
'include/abi-bits/termios.h',
|
2020-06-15 20:27:40 +02:00
|
|
|
'include/abi-bits/time.h',
|
2020-02-13 12:19:28 +01:00
|
|
|
subdir: 'abi-bits'
|
|
|
|
)
|
|
|
|
install_headers(
|
|
|
|
'include/lemon/syscall.h',
|
|
|
|
subdir: 'lemon'
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
|
|
|
if not headers_only
|
|
|
|
custom_target('crt0',
|
|
|
|
build_by_default: true,
|
|
|
|
command: c_compiler.cmd_array() + ['-c', '-o', '@OUTPUT@', '@INPUT@'],
|
|
|
|
input: 'crt-x86_64/crt0.S',
|
|
|
|
output: 'crt0.o',
|
|
|
|
install: true,
|
|
|
|
install_dir: get_option('libdir')
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|