Makefile 509 B

123456789101112131415161718192021222324
  1. TARGET = threadx_smpdemo
  2. RTOS = ThreadX
  3. SMP ?= 2
  4. CORE ?= nx900fd
  5. DOWNLOAD ?= sram
  6. STACKSZ ?= 2K
  7. # define TX_INCLUDE_USER_DEFINE_FILE to include user defines in tx_user.h
  8. COMMON_FLAGS := -O2 -DTX_INCLUDE_USER_DEFINE_FILE
  9. # -fno-tree-tail-merge option is required with >O1 for ThreadX source code correct compiling for gcc
  10. # eg. OS/ThreadX/common/src/tx_mutex_delete.c
  11. -include toolchain_$(TOOLCHAIN).mk
  12. NUCLEI_SDK_ROOT = ../../..
  13. SRCDIRS = .
  14. INCDIRS = .
  15. include $(NUCLEI_SDK_ROOT)/Build/Makefile.base