Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. TARGET = demo_dsp
  2. NUCLEI_SDK_ROOT = ../../..
  3. SRCDIRS = .
  4. INCDIRS = .
  5. COMMON_FLAGS ?=
  6. # Select NMSIS Library
  7. ## - nmsis_dsp : select dsp library
  8. ## - nmsis_nn : select nn library
  9. ## - nmsis_dsp nmsis_nn : select dsp and nn library
  10. ## see NMSIS/build.mk
  11. NMSIS_LIB ?= nmsis_dsp
  12. STDCLIB ?= newlib_small
  13. # We provide prebuilt optimized NMSIS DSP/NN library
  14. # Optimized for the following extensions:
  15. # B extension: _zba_zbb_zbc_zbs
  16. # P extension: _xxldsp, _xxldspn1x, _xxldspn2x, _xxldspn3x for rv32, _xxldsp for rv64
  17. # V extension: _zve32f for rv32, v for rv64
  18. # The naming order use in ARCH_EXT, should be V, B, P
  19. # to get correct NMSIS DSP/NN library
  20. # Example as below:
  21. # If I want to use Nuclei BPV extensions
  22. # For RV32: when ARCH_EXT=_zve32f_zba_zbb_zbc_zbs_xxldspn1x
  23. # For RV64: when ARCH_EXT=v_zba_zbb_zbc_zbs_xxldsp
  24. # And If you want to specify other NMSIS DSP/NN library
  25. # you can set NMSIS_LIB_ARCH make variable see NMSIS/build.mk
  26. # eg. If you want to use rv32imafdc NMSIS DSP library for N300FD + B + K extension
  27. # eg. NMSIS_LIB_ARCH := rv32imafdc
  28. ARCH_EXT ?=
  29. # When using libncrt library, no need to link with -lm
  30. LDLIBS ?= -lm
  31. include $(NUCLEI_SDK_ROOT)/Build/Makefile.base