Rename ndnputchunks to ndnserve
Change-Id: Id1cc90c91ec0778ec07495b364546b05464410c8
diff --git a/tools/serve/wscript b/tools/serve/wscript
new file mode 100644
index 0000000..376f72c
--- /dev/null
+++ b/tools/serve/wscript
@@ -0,0 +1,17 @@
+# -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
+top = '../..'
+
+def build(bld):
+ bld.objects(
+ target='serve-objects',
+ source=bld.path.ant_glob('*.cpp', excl='main.cpp'),
+ use='core-objects')
+
+ bld.program(
+ target=f'{top}/bin/ndnserve',
+ name='ndnserve',
+ source='main.cpp',
+ use='serve-objects')
+
+ # backward compatibility
+ bld.symlink_as('${BINDIR}/ndnputchunks', 'ndnserve')