2 # * FreeRTOS Kernel V10.2.1
\r
3 # * Copyright (C) 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
\r
5 # * Permission is hereby granted, free of charge, to any person obtaining a copy of
\r
6 # * this software and associated documentation files (the "Software"), to deal in
\r
7 # * the Software without restriction, including without limitation the rights to
\r
8 # * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
\r
9 # * the Software, and to permit persons to whom the Software is furnished to do so,
\r
10 # * subject to the following conditions:
\r
12 # * The above copyright notice and this permission notice shall be included in all
\r
13 # * copies or substantial portions of the Software.
\r
15 # * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
\r
16 # * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
\r
17 # * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
\r
18 # * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
\r
19 # * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
\r
20 # * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
\r
22 # * http://www.FreeRTOS.org
\r
23 # * http://aws.amazon.com/freertos
\r
25 # * 1 tab == 4 spaces!
\r
30 NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse --nolabelopt --nooverlay --peep-asm
\r
33 CFLAGS=--model-large -I. -I../Common/include -I../include -I../../Source/include \
\r
34 -DSDCC_CYGNAL $(DEBUG) --less-pedantic --xram-size 8448 --stack-auto \
\r
35 --no-peep --int-long-reent --float-reent
\r
37 DEMO_DIR = ../Common
\r
38 SOURCE_DIR = ../../Source
\r
39 PORT_DIR = ../../Source/portable/SDCC/Cygnal
\r
44 $(DEMO_DIR)/Full/flash.c \
\r
45 $(DEMO_DIR)/Full/print.c \
\r
46 $(DEMO_DIR)/Minimal/integer.c \
\r
47 $(DEMO_DIR)/Minimal/PollQ.c \
\r
48 $(DEMO_DIR)/Minimal/comtest.c \
\r
49 $(DEMO_DIR)/Full/semtest.c \
\r
50 $(SOURCE_DIR)/tasks.c \
\r
51 $(SOURCE_DIR)/queue.c \
\r
52 $(SOURCE_DIR)/list.c \
\r
53 $(SOURCE_DIR)/portable/MemMang/heap_1.c \
\r
57 # Define all object files.
\r
58 OBJ = $(SRC:.c=.rel)
\r
64 ######################################
\r
65 # THIS VERSION WILL ONLY BUILD FILES THAT HAVE CHANGED, BUT MAY HAVE A DANGEROUS
\r
66 # COMMAND LINE. IT WORKS FINE UNDER WINDOWS, BUT I HAVE COMMENTED IT OUT IN
\r
67 # CASE IT CAUSES PROBLEMS ON OTHER SYSTEMS.
\r
69 #main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ)
\r
70 # $(CC) $(CFLAGS) main.c $(OBJ)
\r
72 #%.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h
\r
73 # $(CC) -c $(CFLAGS) -o$< $<
\r
79 ######################################
\r
80 # INSTEAD OF THE FOUR LINES ABOVE, THIS VERSION CAN BE USED BUT WILL CAUSE ALL
\r
81 # FILES TO BUILD EVERY TIME.
\r
83 main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ)
\r
84 $(CC) $(CFLAGS) main.c $(OBJ)
\r
86 %.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h
\r
87 $(CC) -c $(CFLAGS) $<
\r