rib: Integrating NRD code into NFD codebase

Change-Id: I3e548f974255f62a4680cfc6c12be3bb7a3db4d2
Refs: #1486
diff --git a/wscript b/wscript
index 39ea4b1..a476ee4 100644
--- a/wscript
+++ b/wscript
@@ -138,6 +138,21 @@
         use='daemon-objects',
         )
 
+    rib_objects = bld(
+        target='rib-objects',
+        name='rib-objects',
+        features='cxx',
+        source=bld.path.ant_glob(['rib/**/*.cpp'],
+                                 excl=['rib/main.cpp']),
+        use='core-objects',
+        )
+
+    bld(target='bin/nrd',
+        features='cxx cxxprogram',
+        source='rib/main.cpp',
+        use='rib-objects',
+        )
+
     for app in bld.path.ant_glob('tools/*.cpp'):
         bld(features=['cxx', 'cxxprogram'],
             target='bin/%s' % (str(app.change_ext(''))),
@@ -153,6 +168,9 @@
         install_path="${SYSCONFDIR}/ndn",
         IF_HAVE_LIBPCAP="" if bld.env['HAVE_LIBPCAP'] else "; ")
 
+    # @todo Merge with nfd.conf
+    bld.install_files('${SYSCONFDIR}/ndn', 'nrd.conf.sample')
+
     bld(features='subst',
         source='tools/nfd-status-http-server.py',
         target='nfd-status-http-server',