ref: 4b78e59bb33c49786724d1db50cafe75a6f0dae0
parent: b64041270050d5a84e22fa3df0b3166edef810ea
author: Ralph Giles <giles@thaumas.net>
date: Thu Apr 17 09:53:25 EDT 2025
Add top-level srcdir to the makefile build includes In parity with the autotools and cmake builds, pass `-I.` when compiling so the #include "celt/mathops.h" in src/opus.c succeeds.
--- a/Makefile.mips
+++ b/Makefile.mips
@@ -48,7 +48,7 @@
CFLAGS += -mips32r2 -mno-mips16 -std=gnu99 -O2 -g $(WARNINGS) -DENABLE_ASSERTIONS -DMIPSr1_ASM -DOPUS_BUILD -mdspr2 -march=74kc -mtune=74kc -mmt -mgp32
-CINCLUDES = include silk celt
+CINCLUDES = . include silk celt
ifdef FIXED_POINT
CFLAGS += -DFIXED_POINT=1 -DDISABLE_FLOAT_API
--- a/Makefile.unix
+++ b/Makefile.unix
@@ -46,7 +46,7 @@
WARNINGS = -Wall -W -Wstrict-prototypes -Wextra -Wcast-align -Wnested-externs -Wshadow
CFLAGS += -O2 -g $(WARNINGS) -DOPUS_BUILD
-CINCLUDES = include silk celt
+CINCLUDES = . include silk celt
ifdef FIXED_POINT
CFLAGS += -DFIXED_POINT=1 -DDISABLE_FLOAT_API
--
⑨