rockbox/lib/rbcodec/codecs/libopus/celt/dump_modes/Makefile
William Wilgus 14c6bb798d Sync opus codec to upstream git
Change-Id: I0cfcc0005c4ad7bfbb1aaf454188ce70fb043dc1
2021-04-23 14:23:04 +00:00

32 lines
740 B
Makefile

CFLAGS=-O2 -Wall -Wextra -DHAVE_CONFIG_H
INCLUDES=-I. -I../ -I../.. -I../../include
SOURCES = dump_modes.c \
../modes.c \
../cwrs.c \
../rate.c \
../entcode.c \
../entenc.c \
../entdec.c \
../mathops.c \
../mdct.c \
../kiss_fft.c
ifdef HAVE_ARM_NE10
CC = gcc
CFLAGS += -mfpu=neon
INCLUDES += -I$(NE10_INCDIR) -DHAVE_ARM_NE10 -DOPUS_ARM_PRESUME_NEON_INTR
LIBS = -L$(NE10_LIBDIR) -lNE10
SOURCES += ../arm/celt_ne10_fft.c \
dump_modes_arm_ne10.c \
../arm/armcpu.c
endif
all: dump_modes
dump_modes:
$(PREFIX)$(CC) $(CFLAGS) $(INCLUDES) -DCUSTOM_MODES_ONLY -DCUSTOM_MODES $(SOURCES) -o $@ $(LIBS) -lm
clean:
rm -f dump_modes