misc fixes
[libopusenc.git] / Makefile.am
index 22ed680..2a3a392 100644 (file)
@@ -1,5 +1,7 @@
 ACLOCAL_AMFLAGS = -I m4
 
+DEFS += -DSPX_RESAMPLE_EXPORT= -DRANDOM_PREFIX=libopusenc -DOUTSIDE_SPEEX -DFLOATING_POINT
+
 AM_CFLAGS = -I$(top_srcdir)/include $(DEPS_CFLAGS)
 
 dist_doc_DATA = COPYING AUTHORS README.md
@@ -8,9 +10,20 @@ opusincludedir = ${includedir}/opus
 opusinclude_HEADERS = include/opusenc.h
 
 lib_LTLIBRARIES = libopusenc.la
+noinst_HEADERS = src/arch.h \
+                src/ogg_packer.h \
+                src/opus_header.h \
+                src/picture.h \
+                src/resample_sse.h \
+                src/speex_resampler.h \
+                src/stack_alloc.h
+
 libopusenc_la_SOURCES = \
+       src/ogg_packer.c \
        src/opus_header.c \
-       src/opusenc.c
+       src/opusenc.c \
+       src/picture.c \
+       src/resample.c
 libopusenc_la_LIBADD = $(DEPS_LIBS) $(lrintf_lib)
 libopusenc_la_LDFLAGS = -no-undefined \
  -version-info @OP_LT_CURRENT@:@OP_LT_REVISION@:@OP_LT_AGE@
@@ -33,8 +46,7 @@ EXTRA_DIST = \
  opusenc-uninstalled.pc.in \
  doc/Doxyfile.in \
  doc/opus_logo.svg \
- doc/Makefile \
- unix/Makefile
+ doc/Makefile
 
 # Targets to build and install just the library without the docs
 opusenc install-opusenc: NO_DOXYGEN = 1