summaryrefslogtreecommitdiffstats
path: root/meson.build
blob: 0b23a410ee36562ba6bc065353842fa57fd68672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
project('algos ld1', 'c',
	license : 'LGPL2.1',
	default_options : ['c_std=gnu11', 'optimization=3', 'b_lto=true', 'debug=false', 'warning_level=3'])

deps = [dependency('rin', version : '>= 0.0.4')]

progname = 'alg'

add_project_arguments('-D', '_GNU_SOURCE', language : 'c')
add_project_arguments('-fplan9-extensions', language : 'c')
add_project_arguments('-D', 'entry_field_size=' + get_option('data-bits'), language : 'c')

if get_option('data-sign').enabled()
  add_project_arguments('-D', 'entry_field_signed', language : 'c')
endif

subdir('src')

executable(progname, sources, dependencies : deps, install : true)