2019-05-10 18:29:21 +03:00
|
|
|
project(
|
|
|
|
'malloc',
|
|
|
|
'c',
|
|
|
|
default_options: [
|
|
|
|
'buildtype=plain',
|
2019-06-19 22:07:27 +03:00
|
|
|
'strip=true',
|
2019-05-10 18:29:21 +03:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
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'
|
|
|
|
]
|
|
|
|
|
|
|
|
libft = subproject('libft')
|
|
|
|
|
|
|
|
libft_dep = libft.get_variable('libft_dep')
|
|
|
|
|
2019-06-03 23:36:37 +03:00
|
|
|
|
2019-05-10 18:29:21 +03:00
|
|
|
ft_nm = executable(
|
|
|
|
'ft_nm',
|
|
|
|
sources,
|
|
|
|
include_directories: inc,
|
|
|
|
dependencies: libft_dep,
|
|
|
|
install: true,
|
|
|
|
)
|
|
|
|
|
|
|
|
#subdir('t')
|