blob: da977d59656a4ba4c7f874c750586b53243798f3 [file] [log] [blame]
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +00001#!/usr/bin/env bash
2set -x
3set -e
4
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -07005JDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
6source "$JDIR"/util.sh
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +00007
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -07008git submodule update --init
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +00009
10# Cleanup
11sudo ./waf -j1 distclean
12
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070013if has Ubuntu-12.04 $NODE_LABELS; then
14 EXTRA_FLAGS=" --boost-libs=/usr/lib/x86_64-linux-gnu"
15fi
16
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +000017# Configure/build in debug mode
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070018./waf -j1 configure -d debug --enable-modules=ndnSIM --enable-examples --enable-tests $EXTRA_FLAGS
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +000019./waf -j1 build
20
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070021# Install
22sudo ./waf -j1 install
Alexander Afanasyev8e60bcd2015-01-15 20:55:40 +000023
Yuanzhi Gaodd516fe2015-04-23 04:18:24 -070024if has Linux $NODE_LABELS; then
25 sudo ldconfig
26elif has FreeBSD $NODE_LABELS; then
27 sudo ldconfig -a
28fi