Makefile 446 B

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