Moves the main headers from src/ to include/
diff --git a/Makefile.am b/Makefile.am
index 2309232..056d447 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,7 @@
 
 SUBDIRS = . celt/tests doc
 
-INCLUDES = -I$(top_srcdir)/celt -I$(top_srcdir)/silk -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed
+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/celt -I$(top_srcdir)/silk -I$(top_srcdir)/silk/float -I$(top_srcdir)/silk/fixed
 
 include celt_sources.mk
 include silk_sources.mk
@@ -22,7 +22,7 @@
 
 libopus_la_SOURCES = $(CELT_SOURCES) $(SILK_SOURCES) $(OPUS_SOURCES)
 
-pkginclude_HEADERS = src/opus.h src/opus_multistream.h celt/opus_types.h celt/opus_defines.h
+pkginclude_HEADERS = include/opus.h include/opus_multistream.h include/opus_types.h include/opus_defines.h
 
 noinst_HEADERS = $(OPUS_HEAD) $(SILK_HEAD) $(CELT_HEAD)
 
@@ -41,17 +41,17 @@
 opus_compare_SOURCES = src/opus_compare.c
 opus_compare_LDADD = -lm
 
-test_opus_api_SOURCES = tests/test_opus_api.c
+test_opus_api_SOURCES = tests/test_opus_api.c tests/test_opus_common.h
 test_opus_api_LDADD = libopus.la -lm
 
-test_opus_encode_SOURCES = tests/test_opus_encode.c
+test_opus_encode_SOURCES = tests/test_opus_encode.c tests/test_opus_common.h
 test_opus_encode_LDADD = libopus.la -lm
 
-test_opus_decode_SOURCES = tests/test_opus_decode.c
+test_opus_decode_SOURCES = tests/test_opus_decode.c tests/test_opus_common.h
 test_opus_decode_LDADD = libopus.la -lm
 
 if CUSTOM_MODES
-pkginclude_HEADERS += celt/opus_custom.h
+pkginclude_HEADERS += include/opus_custom.h
 noinst_PROGRAMS += opus_custom_demo
 opus_custom_demo_SOURCES = celt/opus_custom_demo.c
 opus_custom_demo_LDADD = libopus.la -lm
diff --git a/Makefile.draft b/Makefile.draft
index afd026e..4fb6d0e 100644
--- a/Makefile.draft
+++ b/Makefile.draft
@@ -53,7 +53,8 @@
 CFLAGS += -DFIXED_POINT=1 -DDISABLE_FLOAT_API
 endif
 
-CINCLUDES += silk/ \
+CINCLUDES += include/ \
+        silk/ \
         silk/float/ \
         silk/fixed/ \
 	celt/ \
diff --git a/celt/tests/Makefile.am b/celt/tests/Makefile.am
index 9c4d899..0dfdfd9 100644
--- a/celt/tests/Makefile.am
+++ b/celt/tests/Makefile.am
@@ -1,4 +1,4 @@
-INCLUDES = -I$(top_srcdir)/celt
+INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/celt
 METASOURCES = AUTO
 
 TESTS = type-test ectest cwrs32-test dft-test laplace-test mdct-test mathops-test rotation-test
diff --git a/celt_headers.txt b/celt_headers.txt
index dd9d335..492e87a 100644
--- a/celt_headers.txt
+++ b/celt_headers.txt
@@ -2,8 +2,8 @@
 celt/arch.h \
 celt/bands.h \
 celt/celt.h \
-celt/opus_types.h \
-celt/opus_defines.h \
+include/opus_types.h \
+include/opus_defines.h \
 celt/cwrs.h \
 celt/ecintrin.h \
 celt/entcode.h \
diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in
index ff80852..5bf1f87 100644
--- a/doc/Doxyfile.in
+++ b/doc/Doxyfile.in
@@ -610,10 +610,10 @@
 # directories like "/usr/src/myproject". Separate the files or directories
 # with spaces.
 
-INPUT                  = @top_srcdir@/src/opus.h \
-			 @top_srcdir@/celt/opus_types.h   \
-                         @top_srcdir@/celt/opus_defines.h \
-                         @top_srcdir@/src/opus_multistream.h
+INPUT                  = @top_srcdir@/include/opus.h \
+			 @top_srcdir@/include/opus_types.h   \
+                         @top_srcdir@/include/opus_defines.h \
+                         @top_srcdir@/include/opus_multistream.h
 
 # This tag can be used to specify the character encoding of the source files
 # that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is
diff --git a/doc/Makefile.am b/doc/Makefile.am
index bd7eba3..b36b064 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,9 +1,9 @@
 ## Process this file with automake to produce Makefile.in
 
-DOCINPUTS = $(top_srcdir)/src/opus.h \
-            $(top_srcdir)/src/opus_multistream.h \
-            $(top_srcdir)/celt/opus_defines.h \
-            $(top_srcdir)/celt/opus_types.h
+DOCINPUTS = $(top_srcdir)/include/opus.h \
+            $(top_srcdir)/include/opus_multistream.h \
+            $(top_srcdir)/include/opus_defines.h \
+            $(top_srcdir)/include/opus_types.h
 
 doc_DATA = doxygen-build.stamp
 
diff --git a/doc/build_draft.sh b/doc/build_draft.sh
index 703399b..1c12847 100755
--- a/doc/build_draft.sh
+++ b/doc/build_draft.sh
@@ -16,6 +16,7 @@
 mkdir "${destdir}/silk/float"
 mkdir "${destdir}/silk/fixed"
 mkdir "${destdir}/celt"
+mkdir "${destdir}/include"
 for f in `cat "${toplevel}"/opus_sources.mk "${toplevel}"/celt_sources.mk \
  "${toplevel}"/silk_sources.mk "${toplevel}"/opus_headers.txt \
  "${toplevel}"/celt_headers.txt "${toplevel}"/silk_headers.txt \
@@ -25,7 +26,7 @@
 cp -a "${toplevel}"/src/opus_demo.c "${destdir}"/src/
 cp -a "${toplevel}"/src/opus_compare.c "${destdir}"/src/
 cp -a "${toplevel}"/celt/opus_custom_demo.c "${destdir}"/celt/
-cp -a "${toplevel}"/celt/opus_custom.h "${destdir}"/celt/
+cp -a "${toplevel}"/include/opus_custom.h "${destdir}"/celt/
 cp -a "${toplevel}"/Makefile.draft "${destdir}"/Makefile
 cp -a "${toplevel}"/opus_sources.mk "${destdir}"/
 cp -a "${toplevel}"/celt_sources.mk "${destdir}"/
diff --git a/src/opus.h b/include/opus.h
similarity index 100%
rename from src/opus.h
rename to include/opus.h
diff --git a/celt/opus_custom.h b/include/opus_custom.h
similarity index 100%
rename from celt/opus_custom.h
rename to include/opus_custom.h
diff --git a/celt/opus_defines.h b/include/opus_defines.h
similarity index 100%
rename from celt/opus_defines.h
rename to include/opus_defines.h
diff --git a/src/opus_multistream.h b/include/opus_multistream.h
similarity index 100%
rename from src/opus_multistream.h
rename to include/opus_multistream.h
diff --git a/celt/opus_types.h b/include/opus_types.h
similarity index 100%
rename from celt/opus_types.h
rename to include/opus_types.h
diff --git a/opus_headers.txt b/opus_headers.txt
index 4fc5b65..f160710 100644
--- a/opus_headers.txt
+++ b/opus_headers.txt
@@ -1,4 +1,4 @@
 OPUS_HEAD = \
-src/opus.h \
-src/opus_multistream.h \
+include/opus.h \
+include/opus_multistream.h \
 src/opus_private.h
diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c
index 60ae296..e4afd58 100644
--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -49,7 +49,7 @@
 #include <stdlib.h>
 #include <stdint.h>
 #include <string.h>
-#include "../src/opus.h"
+#include "../include/opus.h"
 #include "test_opus_common.h"
 
 #ifdef VALGRIND
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c
index ac521a2..605e4f9 100644
--- a/tests/test_opus_decode.c
+++ b/tests/test_opus_decode.c
@@ -37,7 +37,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
-#include "../src/opus.h"
+#include "../include/opus.h"
 #include "test_opus_common.h"
 
 #define MAX_PACKET (1500)
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c
index 4ec536f..7bdb89d 100644
--- a/tests/test_opus_encode.c
+++ b/tests/test_opus_encode.c
@@ -37,7 +37,7 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
-#include "../src/opus.h"
+#include "../include/opus.h"
 #include "../src/opus_private.h"
 #include "test_opus_common.h"