summaryrefslogtreecommitdiffstats
path: root/libbsd_waf.py
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-03 13:27:11 +0200
committerChristian Mauderer <Christian.Mauderer@embedded-brains.de>2016-08-03 13:58:38 +0200
commit7aaa9a19d1cffc06f0db6728af2af777da893ecc (patch)
treef7fd8e417577d5dddd28eccca9fd9fbc74f2e095 /libbsd_waf.py
parentlibbsd.txt: Add section describing PF. (diff)
downloadrtems-libbsd-7aaa9a19d1cffc06f0db6728af2af777da893ecc.tar.bz2
testsuite/pf02: Add interactive pf test.
Diffstat (limited to 'libbsd_waf.py')
-rw-r--r--libbsd_waf.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/libbsd_waf.py b/libbsd_waf.py
index e1bd5d8e..4b68863e 100644
--- a/libbsd_waf.py
+++ b/libbsd_waf.py
@@ -34,7 +34,7 @@ def configure(conf):
def build(bld):
# C/C++ flags
common_flags = []
- common_flags += ["-O0"]
+ common_flags += ["-O2"]
common_flags += ["-g"]
common_flags += ["-fno-strict-aliasing"]
common_flags += ["-ffreestanding"]
@@ -1407,6 +1407,16 @@ def build(bld):
lib = ["m", "z"],
install_path = None)
+ test_pf02 = ['testsuite/pf02/test_main.c']
+ bld.program(target = "pf02.exe",
+ features = "cprogram",
+ cflags = cflags,
+ includes = includes,
+ source = test_pf02,
+ use = ["bsd"],
+ lib = ["m", "z"],
+ install_path = None)
+
test_ping01 = ['testsuite/ping01/test_main.c']
bld.program(target = "ping01.exe",
features = "cprogram",