1
2CFLAGS=-O2 -Wall -Wextra -DHAVE_CONFIG_H
3INCLUDES=-I. -I../ -I../.. -I../../include
4
5SOURCES = dump_modes.c \
6          ../modes.c \
7          ../cwrs.c \
8          ../rate.c \
9          ../entcode.c \
10          ../entenc.c \
11          ../entdec.c \
12          ../mathops.c \
13          ../mdct.c \
14          ../kiss_fft.c
15
16ifdef HAVE_ARM_NE10
17CC = gcc
18CFLAGS += -mfpu=neon
19INCLUDES += -I$(NE10_INCDIR) -DHAVE_ARM_NE10 -DOPUS_ARM_PRESUME_NEON_INTR
20LIBS = -L$(NE10_LIBDIR) -lNE10
21SOURCES += ../arm/celt_ne10_fft.c \
22           dump_modes_arm_ne10.c \
23           ../arm/armcpu.c
24endif
25
26all: dump_modes
27
28dump_modes:
29	$(PREFIX)$(CC) $(CFLAGS) $(INCLUDES) -DCUSTOM_MODES_ONLY -DCUSTOM_MODES $(SOURCES) -o $@ $(LIBS) -lm
30
31clean:
32	rm -f dump_modes
33