wscript: fix the target dylib name to ndn-cert

Change-Id: Id8620f41124549a81553bd787a6c3214a2f21c4e
diff --git a/ndncert.pc.in b/libndn-cert.pc.in
similarity index 73%
rename from ndncert.pc.in
rename to libndn-cert.pc.in
index c0c5204..e7a75b6 100644
--- a/ndncert.pc.in
+++ b/libndn-cert.pc.in
@@ -2,8 +2,8 @@
 libdir=@LIBDIR@
 includedir=@INCLUDEDIR@
 
-Name: ndncert
+Name: libndn-cert
 Description: ndncert library
 Version: @VERSION@
-Libs: -L${libdir} -lndncert
+Libs: -L${libdir} -lndn-cert
 Cflags: -I${includedir}
diff --git a/tests/wscript b/tests/wscript
index 23518b4..685a0bf 100644
--- a/tests/wscript
+++ b/tests/wscript
@@ -12,7 +12,7 @@
         name='tests-main',
         features='cxx',
         source="main.cpp",
-        use='objects BOOST',
+        use='ndn-cert BOOST',
         defines=['BOOST_TEST_MODULE=\"NDNCERT Tests\"']
         )
 
@@ -21,7 +21,7 @@
         source=bld.path.ant_glob(['*.cpp', 'unit-tests/**/*.cpp'],
                                  excl=['main.cpp']),
         features=['cxx', 'cxxprogram'],
-        use='objects tests-main',
+        use='ndn-cert tests-main',
         includes=['.'],
         install_path=None,
         defines='TMP_TESTS_PATH=\"%s/tmp-tests\"' % bld.bldnode,
diff --git a/wscript b/wscript
index 1412d1c..0333e48 100644
--- a/wscript
+++ b/wscript
@@ -57,7 +57,7 @@
 
 def build(bld):
     core = bld(
-        target = "objects",
+        target = "ndn-cert",
         features=['cxx', 'cxxshlib'],
         source =  bld.path.ant_glob(['src/**/*.cpp']),
         vnum = VERSION,
@@ -84,8 +84,8 @@
         )
 
     bld(features = "subst",
-        source='ndncert.pc.in',
-        target='ndncert.pc',
+        source='libndn-cert.pc.in',
+        target='libndn-cert.pc',
         install_path = '${LIBDIR}/pkgconfig',
         PREFIX       = bld.env['PREFIX'],
         INCLUDEDIR   = "%s/ndncert" % bld.env['INCLUDEDIR'],