malloc/meson.build

51 lines
765 B
Meson
Raw Normal View History

2019-05-04 00:19:50 +03:00
project(
'malloc',
'c',
default_options: [
2019-05-04 20:23:32 +03:00
'buildtype=plain',
2019-05-04 00:19:50 +03:00
],
)
add_global_arguments(
2019-05-08 21:10:37 +03:00
'-O0',
2019-05-04 00:19:50 +03:00
'-Wall',
'-Wextra',
'-Werror',
'-Wcast-align',
'-Wwrite-strings',
'-Wunreachable-code',
'-Winit-self',
'-Wmissing-field-initializers',
'-Wno-unknown-pragmas',
'-Wstrict-prototypes',
'-Wundef',
'-Wold-style-definition',
language: 'c',
)
2019-05-03 00:18:45 +03:00
inc = include_directories('inc')
2019-05-04 20:23:32 +03:00
install_headers('inc/ft_malloc.h')
sources = [
'src/malloc.c',
'src/free.c',
'src/realloc.c',
2019-05-08 21:46:06 +03:00
'src/calloc.c',
'src/get_arena_type.c',
'src/show_alloc_mem.c',
2019-05-04 20:23:32 +03:00
]
libft = subproject('libft')
libft_dep = libft.get_variable('libft_dep')
ft_malloc = shared_library(
'ft_malloc',
sources,
include_directories: inc,
dependencies: libft_dep,
install: true,
)
2019-05-03 00:18:45 +03:00
subdir('t')