Makefile 592 B

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