diff --git a/interface/meson.build b/interface/meson.build new file mode 100644 index 000000000..b3c71f143 --- /dev/null +++ b/interface/meson.build @@ -0,0 +1,20 @@ +configurations = [ + # TODO: Also add defines for DOUBLE for d and the rest + {'defs': [], 'name': 'imax'}, # Original, no defines + {'defs': ['-DUSE_ABS'], 'name': 'iamax'}, + {'defs': ['-DUSE_ABS', '-DUSE_MIN'], 'name': 'iamin'}, + {'defs': ['-DUSE_MIN'], 'name': 'imin'}, +] + +_static_libs = [] +foreach conf: configurations + _static_libs += static_library( + conf['name'], + 'imax.c', + include_directories: _inc, + c_args: conf['defs'], + ) +endforeach + +_interface = static_library('_interface', + link_whole: _static_libs) diff --git a/interface/meson_options.txt b/interface/meson_options.txt new file mode 100644 index 000000000..8ac8331e7 --- /dev/null +++ b/interface/meson_options.txt @@ -0,0 +1,4 @@ +option('no_fblas', type: 'boolean', value: false, description: 'Disable FBLAS') +option('build_bfloat16', type: 'boolean', value: false, description: 'Enable BFloat16 support') +option('exprecision', type: 'boolean', value: false, description: 'Enable extended precision') +option('quad_precision', type: 'boolean', value: false, description: 'Enable quad precision') diff --git a/meson.build b/meson.build index a2516153f..fb2aed30a 100644 --- a/meson.build +++ b/meson.build @@ -24,7 +24,9 @@ cc = meson.get_compiler('c') # Makefile.system # Ignoring all the hostarch checks and conflits for arch in BSD for now -subdir('lapack-netlib') +_inc = include_directories('.') +# subdir('lapack-netlib') +subdir('interface') # System configuration build_single = get_option('build_single')