diff options
author | Chirayu Desai <cdesai@cyanogenmod.org> | 2013-11-30 21:39:56 +0530 |
---|---|---|
committer | Gedare Bloom <gedare@rtems.org> | 2013-12-12 14:55:55 -0500 |
commit | 1d008f25037dba1203d1a94903c1386caf14c08b (patch) | |
tree | 1113143c3da30b4b29c1b156833ad03046896922 /benchmarks | |
parent | 6bfcd330b43ea3d7d805f5394e4d9f4d125cc642 (diff) |
benchmarks: Add support to build with waf
Add wscript(s) to support building benchmarks/nbench with waf
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/nbench/wscript | 17 | ||||
-rw-r--r-- | benchmarks/wscript | 10 |
2 files changed, 27 insertions, 0 deletions
diff --git a/benchmarks/nbench/wscript b/benchmarks/nbench/wscript new file mode 100644 index 0000000..4675061 --- /dev/null +++ b/benchmarks/nbench/wscript @@ -0,0 +1,17 @@ +# Copyright 2013 Gedare Bloom (gedare@rtems.org) +# +# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file. +# + +import rtems_waf.rtems as rtems + +def build(bld): + + path = 'nbench-byte-2.2.3/' + + bld(features = 'c cprogram', + target = 'nbench.exe', + source = ['main.c', path + 'emfloat.c', path + 'hardware.c', + path + 'misc.c', path + 'nbench0.c', path + 'nbench1.c', + path + 'sysspec.c'], + lib = ['m']) diff --git a/benchmarks/wscript b/benchmarks/wscript new file mode 100644 index 0000000..12741e7 --- /dev/null +++ b/benchmarks/wscript @@ -0,0 +1,10 @@ +# Copyright 2013 Gedare Bloom (gedare@rtems.org) +# +# This file's license is 2-clause BSD as in this distribution's LICENSE.2 file. +# + +import rtems_waf.rtems as rtems + +def build(bld): + bld.recurse('nbench') + |