54 lines
798 B
Meson
54 lines
798 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')
|
|
|
|
sources = [
|
|
'src/main.c',
|
|
'src/nm_file.c',
|
|
'src/macho64.c',
|
|
'src/macho32.c',
|
|
'src/fat.c',
|
|
'src/ar.c',
|
|
'src/print_address.c',
|
|
'src/find_symbol_table_command.c',
|
|
]
|
|
|
|
libft = subproject('libft')
|
|
|
|
libft_dep = libft.get_variable('libft_dep')
|
|
|
|
|
|
ft_nm = executable(
|
|
'ft_nm',
|
|
sources,
|
|
include_directories: inc,
|
|
dependencies: libft_dep,
|
|
install: true,
|
|
)
|
|
|
|
#subdir('t')
|