summaryrefslogtreecommitdiff
path: root/FreeRTOS/Makefile
blob: 3da061d3ecb3e7ee4997e2587f406465770d7ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
TARGET_LIB = libFreeRTOS.a

all: $(TARGET_LIB)

include $(ROOTDIR)/common.mk
include config.mk
include $(ROOTDIR)/arch/config.mk
include $(ROOTDIR)/os/config.mk
include $(ROOTDIR)/libc/config.mk

TARGET_SRCS = Source/croutine.c Source/list.c Source/queue.c Source/tasks.c

ifeq ($(CPU),arm)
ifeq ($(CPU_FLAVOR),lpc1768)
TARGET_SRCS += Source/portable/MemMang/heap_3.c
ifeq ($(USE_MPU),true)
TARGET_SRCS += Source/portable/GCC/ARM_CM3_MPU/port.c
else
TARGET_SRCS += Source/portable/GCC/ARM_CM3/port.c
endif
endif
endif

include $(ROOTDIR)/target-rules.mk

clean: clean-generic