shithub: opus

Download patch

ref: 4def273b9c02ca25b39962c8fc5917dea0f0b6e6
parent: fd1a5db140d51e7188e5126db2edc0ab923cfa8c
author: Jean-Marc Valin <[email protected]>
date: Wed Jun 30 07:27:53 EDT 2010

Compilation fixed on Linux

--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@
 LDLIBS  += $(call ldlibs-from-libs,$(LIBS))
 
 COMPILE.c.cmdline   = $(CC) -c $(CFLAGS) -o $@ $<
-LINK.o.cmdline      = $(LINK.o) -lm $^ $(LDLIBS) -o $@$(EXESUFFIX) 
+LINK.o.cmdline      = $(LINK.o) -lm $^ $(LDLIBS) -lcelt0 -o $@$(EXESUFFIX) 
 ARCHIVE.cmdline     = $(AR) $(ARFLAGS) $@ $^ && $(RANLIB) $@
 
 %$(OBJSUFFIX):%.c
@@ -44,34 +44,34 @@
 
 # Directives
 
-CINCLUDES += interface src_common src_fix src_SigProc_FIX test
+CINCLUDES += ../celt/libcelt/ interface src_common src_FIX src_SigProc_FIX test
 
 # VPATH e.g. VPATH = src:../headers
 VPATH = ./ \
         interface \
 	  src_common \
-	  src_fix \
+	  src_FIX \
 	  src_SigProc_FIX \
         test 
 
-SRCS_C = $(wildcard src_common/*.c src_fix/*.c src_SigProc_FIX/*.c )
+SRCS_C = $(wildcard src_common/*.c src_FIX/*.c src_SigProc_FIX/*.c )
 
 else
 
 # Directives
 
-CINCLUDES += interface src_common src_fix src_SigProc_FIX src_SigProc_FLP test
+CINCLUDES += ../celt/libcelt interface src_common src_FLP src_FIX src_SigProc_FIX src_SigProc_FLP test
 
 # VPATH e.g. VPATH = src:../headers
 VPATH = ./ \
         interface \
 	  src_common \
-	  src_flp \
+	  src_FLP \
 	  src_SigProc_FIX \
 	  src_SigProc_FLP \
         test 
 
-SRCS_C = $(wildcard src_common/*.c src_flp/*.c src_SigProc_FIX/*.c  src_SigProc_FLP/*.c )
+SRCS_C = $(wildcard src_common/*.c src_FLP/*.c src_SigProc_FIX/*.c  src_SigProc_FLP/*.c )
 
 endif
 
@@ -94,7 +94,7 @@
 LIBS = \
 	$(LIB_NAME)
 
-LDLIBDIRS = ./
+LDLIBDIRS = ./ ../celt/libcelt/.libs/
 
 # Rules
 default: all