When linking, need libndn-cpp before libndn-c (for Ubuntu)
diff --git a/Makefile.am b/Makefile.am
index 722302c..051c22f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -59,12 +59,12 @@
ndn-cpp/c/transport/SocketTransport.h ndn-cpp/c/transport/UdpTransport.h ndn-cpp/transport/UdpTransport.cpp ndn-cpp/transport/UdpTransport.hpp
bin_test_encode_decode_interest_SOURCES = tests/test-encode-decode-interest.cpp
-bin_test_encode_decode_interest_LDADD = libndn-c.la libndn-cpp.la
+bin_test_encode_decode_interest_LDADD = libndn-cpp.la libndn-c.la
bin_test_encode_decode_data_SOURCES = tests/test-encode-decode-data.cpp
-bin_test_encode_decode_data_LDADD = libndn-c.la libndn-cpp.la
+bin_test_encode_decode_data_LDADD = libndn-cpp.la libndn-c.la
bin_test_get_async_SOURCES = tests/test-get-async.cpp
-bin_test_get_async_LDADD = libndn-c.la libndn-cpp.la
+bin_test_get_async_LDADD = libndn-cpp.la libndn-c.la
dist_noinst_SCRIPTS = autogen.sh
diff --git a/Makefile.in b/Makefile.in
index 6ad0e60..26716ad 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -165,16 +165,16 @@
tests/test-encode-decode-data.$(OBJEXT)
bin_test_encode_decode_data_OBJECTS = \
$(am_bin_test_encode_decode_data_OBJECTS)
-bin_test_encode_decode_data_DEPENDENCIES = libndn-c.la libndn-cpp.la
+bin_test_encode_decode_data_DEPENDENCIES = libndn-cpp.la libndn-c.la
am_bin_test_encode_decode_interest_OBJECTS = \
tests/test-encode-decode-interest.$(OBJEXT)
bin_test_encode_decode_interest_OBJECTS = \
$(am_bin_test_encode_decode_interest_OBJECTS)
-bin_test_encode_decode_interest_DEPENDENCIES = libndn-c.la \
- libndn-cpp.la
+bin_test_encode_decode_interest_DEPENDENCIES = libndn-cpp.la \
+ libndn-c.la
am_bin_test_get_async_OBJECTS = tests/test-get-async.$(OBJEXT)
bin_test_get_async_OBJECTS = $(am_bin_test_get_async_OBJECTS)
-bin_test_get_async_DEPENDENCIES = libndn-c.la libndn-cpp.la
+bin_test_get_async_DEPENDENCIES = libndn-cpp.la libndn-c.la
SCRIPTS = $(dist_noinst_SCRIPTS)
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
@@ -498,11 +498,11 @@
ndn-cpp/c/transport/SocketTransport.h ndn-cpp/c/transport/UdpTransport.h ndn-cpp/transport/UdpTransport.cpp ndn-cpp/transport/UdpTransport.hpp
bin_test_encode_decode_interest_SOURCES = tests/test-encode-decode-interest.cpp
-bin_test_encode_decode_interest_LDADD = libndn-c.la libndn-cpp.la
+bin_test_encode_decode_interest_LDADD = libndn-cpp.la libndn-c.la
bin_test_encode_decode_data_SOURCES = tests/test-encode-decode-data.cpp
-bin_test_encode_decode_data_LDADD = libndn-c.la libndn-cpp.la
+bin_test_encode_decode_data_LDADD = libndn-cpp.la libndn-c.la
bin_test_get_async_SOURCES = tests/test-get-async.cpp
-bin_test_get_async_LDADD = libndn-c.la libndn-cpp.la
+bin_test_get_async_LDADD = libndn-cpp.la libndn-c.la
dist_noinst_SCRIPTS = autogen.sh
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-am