Makefile 740 B

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