1 ##############################################################################
3 # Copyright (c) 2010 Xilinx, Inc. All rights reserved.
6 # XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
7 # COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
8 # ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
9 # STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
10 # IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
11 # FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.
12 # XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
13 # THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
14 # ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
15 # FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
16 # AND FITNESS FOR A PARTICULAR PURPOSE.
22 ##############################################################################
25 # Processor architecture
37 # gnu tools for Makefile
39 CC = $(ARCH_PREFIX)-gcc
40 AR = $(ARCH_PREFIX)-ar
44 # Compiler, linker and other options.
46 CFLAGS = ${COMPILER_FLAGS} ${EXTRA_COMPILER_FLAGS}
49 # System project directories.
51 LIBDIR = $(SYSTEMDIR)/lib
52 INCLUDEDIR = $(SYSTEMDIR)/include
55 LIBFREERTOS = ${LIBDIR}/libfreertos.a
57 INCLUDEFILES = ${TOPDIR}/*.h
59 INCLUDES = -I$(INCLUDEDIR) \
62 KERNEL_AR_OBJS = *.c *.S
66 libs: $(KERNEL_AR_OBJS)
67 @echo "Compiling FreeRTOS"
68 @$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $^
69 @$(ARCHIVER) -r ${LIBFREERTOS} ${OUTS}
74 ${CP} ${INCLUDEFILES} ${INCLUDEDIR}