ft_nm/meson.build
2019-08-10 17:56:26 +03:00

64 lines
997 B
Meson

project(
'malloc',
'c',
default_options: [
'buildtype=plain',
'strip=true',
],
)
add_global_arguments(
'-O0',
'-Wall',
'-Wextra',
'-Werror',
'-Wwrite-strings',
'-Wunreachable-code',
'-Winit-self',
'-Wmissing-field-initializers',
'-Wno-unknown-pragmas',
'-Wstrict-prototypes',
'-Wundef',
'-Wold-style-definition',
language: 'c',
)
inc = include_directories('inc')
# install_headers('inc/ft_nm.h')
nm_sources = [
'src/nm/main.c',
'src/nm/nm_file.c',
'src/nm/macho64.c',
'src/nm/macho32.c',
'src/nm/fat.c',
'src/nm/ar.c',
'src/nm/print_address.c',
'src/nm/find_symbol_table_command.c',
]
otool_sources = [
'src/nm/nm_file.c',
'src/otool/main.c'
]
libft_dep = subproject('libft').get_variable('libft_dep')
ft_nm = executable(
'ft_nm',
nm_sources,
include_directories: inc,
dependencies: libft_dep,
install: true,
)
ft_nm = executable(
'ft_otool',
otool_sources,
include_directories: inc,
dependencies: libft_dep,
install: true,
)
#subdir('t')