summaryrefslogtreecommitdiff
path: root/FreeRTOS
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-24 00:56:49 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-01-24 00:56:49 +0100
commitc437f86b84ef0a5c98a52009489313497a5086e4 (patch)
treea18504a65f1a304e4da5aa2b60c710e48b88a866 /FreeRTOS
parent598e538787c7cf9d8aff9bc57f5d6ce5724cd4cb (diff)
Adding a few makefiles.
Diffstat (limited to 'FreeRTOS')
-rw-r--r--FreeRTOS/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/FreeRTOS/Makefile b/FreeRTOS/Makefile
new file mode 100644
index 0000000..e5df2a8
--- /dev/null
+++ b/FreeRTOS/Makefile
@@ -0,0 +1,30 @@
+TARGET_LIB = libFreeRTOS.a
+
+all: $(TARGET_LIB)
+
+include $(ROOTDIR)/common.mk
+
+ifeq ($(USE_MPU),true)
+TARGET_CPPFLAGS += -DportUSING_MPU_WRAPPERS=1
+endif
+
+TARGET_SRCS = Source/croutine.c Source/list.c Source/queue.c Source/tasks.c
+TARGET_INCLUDES = Source/include
+
+ifeq ($(CPU),arm)
+ifeq ($(CPU_FLAVOR),lpc1768)
+TARGET_SRCS += Source/portable/MemMang/heap_3.c
+TARGET_INCLUDES += $(ROOTDIR)/config/arm/lpc1768 $(ROOTDIR)/arch/arm/lpc17xx/Core/CM3/DeviceSupport/NXP/LPC17xx $(ROOTDIR)/arch/arm/lpc17xx/Core/CM3/CoreSupport
+ifeq ($(USE_MPU),true)
+TARGET_SRCS += Source/portable/GCC/ARM_CM3_MPU/port.c
+TARGET_INCLUDES += Source/portable/GCC/ARM_CM3_MPU
+else
+TARGET_SRCS += Source/portable/GCC/ARM_CM3/port.c
+TARGET_INCLUDES += Source/portable/GCC/ARM_CM3
+endif
+endif
+endif
+
+include $(ROOTDIR)/target-rules.mk
+
+clean: clean-generic