Skip to content
Snippets Groups Projects
meson.build 1.02 KiB
Newer Older
Bruce Cowan's avatar
Bruce Cowan committed
project('stdlib', 'c')
Bruce Cowan's avatar
Bruce Cowan committed

cc = meson.get_compiler('c')
Bruce Cowan's avatar
Bruce Cowan committed
libm = cc.find_library('m')
Bruce Cowan's avatar
Bruce Cowan committed

Bruce Cowan's avatar
Bruce Cowan committed
utils = library('utils', 'utils.c')

glib_dep = dependency('glib-2.0', version: '>= 2.16')
Bruce Cowan's avatar
Bruce Cowan committed
openmp_dep = dependency('openmp')
Bruce Cowan's avatar
Bruce Cowan committed

executable('add', 'add.c')
executable('add2', 'add2.c', link_with: utils)
executable('angle', 'angle.c', dependencies: libm)
executable('binary', 'binary.c')
executable('complex', 'complex.c', dependencies: libm)
executable('einstein', 'einstein.c')
executable('fib', 'fib.c')
executable('fixed-sizeof', 'fixed-sizeof.c')
executable('fgets', 'fgets.c')
executable('gcd', 'gcd.c')
executable('getchar', 'getchar.c')
Bruce Cowan's avatar
Bruce Cowan committed
executable('kepler', 'kepler.c', dependencies: libm)
executable('next', 'next.c', dependencies: libm)
executable('parrot', 'parrot.c')
executable('sizeof', 'sizeof.c')
executable('snprintf', 'snprintf.c')
executable('strtol', 'strtol.c')
executable('taylor', 'taylor.c')
executable('world', 'world.c')
executable('write', 'write.c')

subdir('array')
subdir('hashtable')
subdir('list')
Bruce Cowan's avatar
Bruce Cowan committed
subdir('openmp')
subdir('winter')