]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/Cygnal/Makefile
8aef80bb54975b43f40d46caa9e431d10ee7a890
[freertos] / FreeRTOS / Demo / Cygnal / Makefile
1 #/*\r
2 # * FreeRTOS Kernel V10.3.0\r
3 # * Copyright (C) 2020 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
4 # *\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
11 # *\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
14 # *\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
21 # *\r
22 # * http://www.FreeRTOS.org\r
23 # * http://aws.amazon.com/freertos\r
24 # *\r
25 # * 1 tab == 4 spaces!\r
26 # */\r
27 \r
28 \r
29 CC=sdcc\r
30 NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse --nolabelopt --nooverlay --peep-asm\r
31 DEBUG=--debug\r
32 \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
36 \r
37 DEMO_DIR = ../Common\r
38 SOURCE_DIR = ../../Source\r
39 PORT_DIR = ../../Source/portable/SDCC/Cygnal\r
40 \r
41 SRC     = \\r
42 ParTest/ParTest.c \\r
43 serial/serial.c \\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
54 $(PORT_DIR)/port.c\r
55 \r
56 \r
57 # Define all object files.\r
58 OBJ = $(SRC:.c=.rel)\r
59 \r
60 \r
61 \r
62 \r
63 \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
68 \r
69 #main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ)\r
70 #       $(CC) $(CFLAGS) main.c $(OBJ)\r
71 \r
72 #%.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h\r
73 #       $(CC) -c $(CFLAGS) -o$< $<\r
74 \r
75 \r
76 \r
77 \r
78 \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
82 \r
83 main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ)\r
84         $(CC) $(CFLAGS) main.c $(OBJ)\r
85 \r
86 %.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h\r
87         $(CC) -c $(CFLAGS) $<\r
88 \r
89 \r
90 \r
91 \r
92 \r
93 \r
94 \r
95 \r
96         \r
97 \r
98 \r