Move C code into ndn-cpp/c
diff --git a/Makefile.in b/Makefile.in
index bc1094f..ed9e0dc 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -134,12 +134,12 @@
libndn_c_a_AR = $(AR) $(ARFLAGS)
libndn_c_a_LIBADD =
am__dirstamp = $(am__leading_dot)dirstamp
-am_libndn_c_a_OBJECTS = ndn-cpp/encoding/BinaryXMLDecoder.$(OBJEXT) \
- ndn-cpp/encoding/BinaryXMLEncoder.$(OBJEXT) \
- ndn-cpp/encoding/BinaryXMLName.$(OBJEXT) \
- ndn-cpp/encoding/BinaryXMLStructureDecoder.$(OBJEXT) \
- ndn-cpp/util/DynamicUCharArray.$(OBJEXT) \
- ndn-cpp/util/ndn_memory.$(OBJEXT)
+am_libndn_c_a_OBJECTS = ndn-cpp/c/encoding/BinaryXMLDecoder.$(OBJEXT) \
+ ndn-cpp/c/encoding/BinaryXMLEncoder.$(OBJEXT) \
+ ndn-cpp/c/encoding/BinaryXMLName.$(OBJEXT) \
+ ndn-cpp/c/encoding/BinaryXMLStructureDecoder.$(OBJEXT) \
+ ndn-cpp/c/util/DynamicUCharArray.$(OBJEXT) \
+ ndn-cpp/c/util/ndn_memory.$(OBJEXT)
libndn_c_a_OBJECTS = $(am_libndn_c_a_OBJECTS)
libndn_cpp_a_AR = $(AR) $(ARFLAGS)
libndn_cpp_a_LIBADD =
@@ -387,17 +387,17 @@
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
lib_LIBRARIES = libndn-c.a libndn-cpp.a
libndn_c_a_SOURCES = \
- ndn-cpp/config.h \
- ndn-cpp/Name.h \
- ndn-cpp/encoding/BinaryXMLDecoder.c ndn-cpp/encoding/BinaryXMLDecoder.h \
- ndn-cpp/encoding/BinaryXMLEncoder.c ndn-cpp/encoding/BinaryXMLEncoder.h \
- ndn-cpp/encoding/BinaryXMLName.c ndn-cpp/encoding/BinaryXMLName.h \
- ndn-cpp/encoding/BinaryXMLStructureDecoder.c ndn-cpp/encoding/BinaryXMLStructureDecoder.h \
- ndn-cpp/util/DynamicUCharArray.c ndn-cpp/util/DynamicUCharArray.h \
- ndn-cpp/util/ndn_memory.c ndn-cpp/util/ndn_memory.h
+ config.h \
+ ndn-cpp/c/Name.h \
+ ndn-cpp/c/encoding/BinaryXMLDecoder.c ndn-cpp/c/encoding/BinaryXMLDecoder.h \
+ ndn-cpp/c/encoding/BinaryXMLEncoder.c ndn-cpp/c/encoding/BinaryXMLEncoder.h \
+ ndn-cpp/c/encoding/BinaryXMLName.c ndn-cpp/c/encoding/BinaryXMLName.h \
+ ndn-cpp/c/encoding/BinaryXMLStructureDecoder.c ndn-cpp/c/encoding/BinaryXMLStructureDecoder.h \
+ ndn-cpp/c/util/DynamicUCharArray.c ndn-cpp/c/util/DynamicUCharArray.h \
+ ndn-cpp/c/util/ndn_memory.c ndn-cpp/c/util/ndn_memory.h
libndn_cpp_a_SOURCES = \
- ndn-cpp/config.h ndn-cpp/common.h \
+ config.h ndn-cpp/common.h \
ndn-cpp/Name.cpp ndn-cpp/Name.h ndn-cpp/Name.hpp \
ndn-cpp/encoding/BinaryXML.h \
ndn-cpp/encoding/BinaryXMLStructureDecoder.hpp \
@@ -493,35 +493,35 @@
clean-libLIBRARIES:
-test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
-ndn-cpp/encoding/$(am__dirstamp):
- @$(MKDIR_P) ndn-cpp/encoding
- @: > ndn-cpp/encoding/$(am__dirstamp)
-ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) ndn-cpp/encoding/$(DEPDIR)
- @: > ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp)
-ndn-cpp/encoding/BinaryXMLDecoder.$(OBJEXT): \
- ndn-cpp/encoding/$(am__dirstamp) \
- ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp)
-ndn-cpp/encoding/BinaryXMLEncoder.$(OBJEXT): \
- ndn-cpp/encoding/$(am__dirstamp) \
- ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp)
-ndn-cpp/encoding/BinaryXMLName.$(OBJEXT): \
- ndn-cpp/encoding/$(am__dirstamp) \
- ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp)
-ndn-cpp/encoding/BinaryXMLStructureDecoder.$(OBJEXT): \
- ndn-cpp/encoding/$(am__dirstamp) \
- ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp)
-ndn-cpp/util/$(am__dirstamp):
- @$(MKDIR_P) ndn-cpp/util
- @: > ndn-cpp/util/$(am__dirstamp)
-ndn-cpp/util/$(DEPDIR)/$(am__dirstamp):
- @$(MKDIR_P) ndn-cpp/util/$(DEPDIR)
- @: > ndn-cpp/util/$(DEPDIR)/$(am__dirstamp)
-ndn-cpp/util/DynamicUCharArray.$(OBJEXT): \
- ndn-cpp/util/$(am__dirstamp) \
- ndn-cpp/util/$(DEPDIR)/$(am__dirstamp)
-ndn-cpp/util/ndn_memory.$(OBJEXT): ndn-cpp/util/$(am__dirstamp) \
- ndn-cpp/util/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/c/encoding/$(am__dirstamp):
+ @$(MKDIR_P) ndn-cpp/c/encoding
+ @: > ndn-cpp/c/encoding/$(am__dirstamp)
+ndn-cpp/c/encoding/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) ndn-cpp/c/encoding/$(DEPDIR)
+ @: > ndn-cpp/c/encoding/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/c/encoding/BinaryXMLDecoder.$(OBJEXT): \
+ ndn-cpp/c/encoding/$(am__dirstamp) \
+ ndn-cpp/c/encoding/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/c/encoding/BinaryXMLEncoder.$(OBJEXT): \
+ ndn-cpp/c/encoding/$(am__dirstamp) \
+ ndn-cpp/c/encoding/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/c/encoding/BinaryXMLName.$(OBJEXT): \
+ ndn-cpp/c/encoding/$(am__dirstamp) \
+ ndn-cpp/c/encoding/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/c/encoding/BinaryXMLStructureDecoder.$(OBJEXT): \
+ ndn-cpp/c/encoding/$(am__dirstamp) \
+ ndn-cpp/c/encoding/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/c/util/$(am__dirstamp):
+ @$(MKDIR_P) ndn-cpp/c/util
+ @: > ndn-cpp/c/util/$(am__dirstamp)
+ndn-cpp/c/util/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) ndn-cpp/c/util/$(DEPDIR)
+ @: > ndn-cpp/c/util/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/c/util/DynamicUCharArray.$(OBJEXT): \
+ ndn-cpp/c/util/$(am__dirstamp) \
+ ndn-cpp/c/util/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/c/util/ndn_memory.$(OBJEXT): ndn-cpp/c/util/$(am__dirstamp) \
+ ndn-cpp/c/util/$(DEPDIR)/$(am__dirstamp)
libndn-c.a: $(libndn_c_a_OBJECTS) $(libndn_c_a_DEPENDENCIES) $(EXTRA_libndn_c_a_DEPENDENCIES)
$(AM_V_at)-rm -f libndn-c.a
@@ -535,6 +535,12 @@
@: > ndn-cpp/$(DEPDIR)/$(am__dirstamp)
ndn-cpp/Name.$(OBJEXT): ndn-cpp/$(am__dirstamp) \
ndn-cpp/$(DEPDIR)/$(am__dirstamp)
+ndn-cpp/encoding/$(am__dirstamp):
+ @$(MKDIR_P) ndn-cpp/encoding
+ @: > ndn-cpp/encoding/$(am__dirstamp)
+ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp):
+ @$(MKDIR_P) ndn-cpp/encoding/$(DEPDIR)
+ @: > ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp)
ndn-cpp/encoding/BinaryXMLWireFormat.$(OBJEXT): \
ndn-cpp/encoding/$(am__dirstamp) \
ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp)
@@ -604,22 +610,23 @@
mostlyclean-compile:
-rm -f *.$(OBJEXT)
-rm -f ndn-cpp/*.$(OBJEXT)
+ -rm -f ndn-cpp/c/encoding/*.$(OBJEXT)
+ -rm -f ndn-cpp/c/util/*.$(OBJEXT)
-rm -f ndn-cpp/encoding/*.$(OBJEXT)
- -rm -f ndn-cpp/util/*.$(OBJEXT)
-rm -f test/*.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/$(DEPDIR)/Name.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/encoding/$(DEPDIR)/BinaryXMLDecoder.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/encoding/$(DEPDIR)/BinaryXMLEncoder.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/encoding/$(DEPDIR)/BinaryXMLName.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/encoding/$(DEPDIR)/BinaryXMLStructureDecoder.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/c/encoding/$(DEPDIR)/BinaryXMLDecoder.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/c/encoding/$(DEPDIR)/BinaryXMLEncoder.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/c/encoding/$(DEPDIR)/BinaryXMLName.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/c/encoding/$(DEPDIR)/BinaryXMLStructureDecoder.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/c/util/$(DEPDIR)/DynamicUCharArray.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/c/util/$(DEPDIR)/ndn_memory.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/encoding/$(DEPDIR)/BinaryXMLWireFormat.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/encoding/$(DEPDIR)/WireFormat.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/util/$(DEPDIR)/DynamicUCharArray.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@ndn-cpp/util/$(DEPDIR)/ndn_memory.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@test/$(DEPDIR)/test-encode-decode-interest.Po@am__quote@
.c.o:
@@ -904,10 +911,12 @@
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-rm -f ndn-cpp/$(DEPDIR)/$(am__dirstamp)
-rm -f ndn-cpp/$(am__dirstamp)
+ -rm -f ndn-cpp/c/encoding/$(DEPDIR)/$(am__dirstamp)
+ -rm -f ndn-cpp/c/encoding/$(am__dirstamp)
+ -rm -f ndn-cpp/c/util/$(DEPDIR)/$(am__dirstamp)
+ -rm -f ndn-cpp/c/util/$(am__dirstamp)
-rm -f ndn-cpp/encoding/$(DEPDIR)/$(am__dirstamp)
-rm -f ndn-cpp/encoding/$(am__dirstamp)
- -rm -f ndn-cpp/util/$(DEPDIR)/$(am__dirstamp)
- -rm -f ndn-cpp/util/$(am__dirstamp)
-rm -f test/$(DEPDIR)/$(am__dirstamp)
-rm -f test/$(am__dirstamp)
@@ -921,7 +930,7 @@
distclean: distclean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf ndn-cpp/$(DEPDIR) ndn-cpp/encoding/$(DEPDIR) ndn-cpp/util/$(DEPDIR) test/$(DEPDIR)
+ -rm -rf ndn-cpp/$(DEPDIR) ndn-cpp/c/encoding/$(DEPDIR) ndn-cpp/c/util/$(DEPDIR) ndn-cpp/encoding/$(DEPDIR) test/$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-hdr distclean-tags
@@ -969,7 +978,7 @@
maintainer-clean: maintainer-clean-am
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
-rm -rf $(top_srcdir)/autom4te.cache
- -rm -rf ndn-cpp/$(DEPDIR) ndn-cpp/encoding/$(DEPDIR) ndn-cpp/util/$(DEPDIR) test/$(DEPDIR)
+ -rm -rf ndn-cpp/$(DEPDIR) ndn-cpp/c/encoding/$(DEPDIR) ndn-cpp/c/util/$(DEPDIR) ndn-cpp/encoding/$(DEPDIR) test/$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic