]> git.sur5r.net Git - freertos/blob - Demo/Cygnal/Makefile
Update ready for V5.1.0 release.
[freertos] / Demo / Cygnal / Makefile
1 #       FreeRTOS.org V5.1.0 - Copyright (C) 2003-2008 Richard Barry.\r
2 #\r
3 #       This file is part of the FreeRTOS.org distribution.\r
4 #\r
5 #       FreeRTOS.org is free software; you can redistribute it and/or modify\r
6 #       it under the terms of the GNU General Public License as published by\r
7 #       the Free Software Foundation; either version 2 of the License, or\r
8 #       (at your option) any later version.\r
9 #\r
10 #       FreeRTOS.org is distributed in the hope that it will be useful,\r
11 #       but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 #       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 #       GNU General Public License for more details.\r
14 #\r
15 #       You should have received a copy of the GNU General Public License\r
16 #       along with FreeRTOS.org; if not, write to the Free Software\r
17 #       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
18 #\r
19 #       A special exception to the GPL can be applied should you wish to distribute\r
20 #       a combined work that includes FreeRTOS.org, without being obliged to provide\r
21 #       the source code for any proprietary components.  See the licensing section \r
22 #       of http://www.FreeRTOS.org for full details of how and when the exception\r
23 #       can be applied.\r
24 #\r
25 #       ***************************************************************************\r
26 #       See http://www.FreeRTOS.org for documentation, latest information, license \r
27 #       and contact details.  Please ensure to read the configuration and relevant \r
28 #       port sections of the online documentation.\r
29 #       ***************************************************************************\r
30 \r
31 \r
32 CC=sdcc\r
33 NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse --nolabelopt --nooverlay --peep-asm\r
34 DEBUG=--debug\r
35 \r
36 CFLAGS=--model-large -I. -I../Common/include -I../include -I../../Source/include \\r
37                 -DSDCC_CYGNAL $(DEBUG) --less-pedantic --xram-size 8448 --stack-auto \\r
38                 --no-peep --int-long-reent --float-reent\r
39 \r
40 DEMO_DIR = ../Common\r
41 SOURCE_DIR = ../../Source\r
42 PORT_DIR = ../../Source/portable/SDCC/Cygnal\r
43 \r
44 SRC     = \\r
45 ParTest/ParTest.c \\r
46 serial/serial.c \\r
47 $(DEMO_DIR)/Full/flash.c \\r
48 $(DEMO_DIR)/Full/print.c \\r
49 $(DEMO_DIR)/Minimal/integer.c \\r
50 $(DEMO_DIR)/Minimal/PollQ.c \\r
51 $(DEMO_DIR)/Minimal/comtest.c \\r
52 $(DEMO_DIR)/Full/semtest.c \\r
53 $(SOURCE_DIR)/tasks.c \\r
54 $(SOURCE_DIR)/queue.c \\r
55 $(SOURCE_DIR)/list.c \\r
56 $(SOURCE_DIR)/portable/MemMang/heap_1.c \\r
57 $(PORT_DIR)/port.c\r
58 \r
59 \r
60 # Define all object files.\r
61 OBJ = $(SRC:.c=.rel)\r
62 \r
63 \r
64 \r
65 \r
66 \r
67 ######################################\r
68 # THIS VERSION WILL ONLY BUILD FILES THAT HAVE CHANGED, BUT MAY HAVE A DANGEROUS\r
69 # COMMAND LINE.  IT WORKS FINE UNDER WINDOWS, BUT I HAVE COMMENTED IT OUT IN\r
70 # CASE IT CAUSES PROBLEMS ON OTHER SYSTEMS.\r
71 \r
72 #main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ)\r
73 #       $(CC) $(CFLAGS) main.c $(OBJ)\r
74 \r
75 #%.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h\r
76 #       $(CC) -c $(CFLAGS) -o$< $<\r
77 \r
78 \r
79 \r
80 \r
81 \r
82 ######################################\r
83 # INSTEAD OF THE FOUR LINES ABOVE, THIS VERSION CAN BE USED BUT WILL CAUSE ALL\r
84 # FILES TO BUILD EVERY TIME.\r
85 \r
86 main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ)\r
87         $(CC) $(CFLAGS) main.c $(OBJ)\r
88 \r
89 %.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h\r
90         $(CC) -c $(CFLAGS) $<\r
91 \r
92 \r
93 \r
94 \r
95 \r
96 \r
97 \r
98 \r
99         \r
100 \r
101 \r