diff options
author | Paul Selkirk <paul@psgd.org> | 2016-04-14 18:50:38 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-04-14 18:50:38 -0400 |
commit | 4a38cf6f44d1c013cbe794093ea6c5b50337431a (patch) | |
tree | 148201449b481794ff839cd15d335f40e0f91c9d /libraries/mbed/rtos/Makefile | |
parent | 79b1ba7104dba52dbfacf11a07305702889f440b (diff) |
import mbed rtos library
Diffstat (limited to 'libraries/mbed/rtos/Makefile')
-rw-r--r-- | libraries/mbed/rtos/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libraries/mbed/rtos/Makefile b/libraries/mbed/rtos/Makefile new file mode 100644 index 0000000..496791c --- /dev/null +++ b/libraries/mbed/rtos/Makefile @@ -0,0 +1,40 @@ +CC=arm-none-eabi-gcc +AR=arm-none-eabi-ar + +########################################### + +vpath %.c rtx/TARGET_CORTEX_M +vpath %.S rtx/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_GCC + +SRCS = rtos/rtos_idle.c \ + HAL_CM.c \ + rt_CMSIS.c \ + rt_Event.c \ + rt_List.c \ + rt_Mailbox.c \ + rt_MemBox.c \ + rt_Mutex.c \ + rt_Robin.c \ + rt_Semaphore.c \ + rt_System.c \ + rt_Task.c \ + rt_Time.c \ + RTX_Conf_CM.c \ + HAL_CM4.S \ + SVC_Table.S + +OBJS = $(patsubst %.S,%.o, $(patsubst %.c,%.o, $(SRCS))) + +all: librtos.a + +%.o : %.c + $(CC) $(CFLAGS) -c -o $@ $< + +%.o : %.S + $(CC) $(CFLAGS) -c -o $@ $< + +librtos.a: $(OBJS) + $(AR) -r $@ $(OBJS) + +clean: + rm -f $(OBJS) librtos.a |