Makefile 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # This demo is intended for use in Nuclei Studio IDE
  2. # For more information, visit: https://doc.nucleisys.com/nuclei_sdk/design/app.html#demo-profiling
  3. # see doc/source/design/app.rst#demo_profiling and Components/profiling/README.md
  4. # Name of the executable target for this application
  5. TARGET = demo_profiling
  6. # Enable profiling middleware for this application
  7. # Middleware components extend SDK functionality
  8. MIDDLEWARE := profiling
  9. # Path to the Nuclei SDK root directory
  10. NUCLEI_SDK_ROOT = ../../..
  11. # Source directories containing application source files
  12. SRCDIRS = . src
  13. # Include directories containing header files
  14. INCDIRS = . inc
  15. # Standard C library selection for this application
  16. # Use newlib_small to ensure printf formatters (e.g., %02) work properly with profiling middleware
  17. # Note: newlib_nano does not support certain printf formatters used by the profiling middleware
  18. STDCLIB ?= newlib_small
  19. # Memory region for downloading and running the application
  20. # NOTE: Profiling and Coverage need a lot of memory, so please make sure
  21. # your RAM is enough, here we recommend to use sram or ddr download mode
  22. DOWNLOAD ?= sram
  23. # Optimization level set to none for accurate profiling results
  24. # Higher optimization levels can interfere with profiling accuracy
  25. COMMON_FLAGS := -O0
  26. # Application-specific compilation options that can be used for
  27. # profiling, coverage, and other app-specific settings
  28. # -pg enables profiling instrumentation
  29. # -coverage enables coverage analysis (requires more memory)
  30. # NOTE: when -coverage is passed, then heap will not be enough
  31. # you need to change DOWNLOAD to ddr
  32. # when Zc extension used, -fomit-frame-pointer is passed but
  33. # -pg and -fomit-frame-pointer are incompatible
  34. APP_COMMON_FLAGS :=
  35. # App-specific C compilation flags
  36. APP_CFLAGS :=
  37. # App-specific C++ compilation flags
  38. APP_CXXFLAGS :=
  39. # App-specific Assembly compilation flags
  40. APP_ASMFLAGS :=
  41. # Specify directories that need app-specific compilation flags
  42. # If left empty, APP_XXXFLAGS will be applied to all source files
  43. APPDIRS := . src
  44. include $(NUCLEI_SDK_ROOT)/Build/Makefile.base