]> git.sur5r.net Git - freertos/blob - Demo/msp430_GCC/makefile
400399c16a1b5551145554564dcd0a4980dfb7e3
[freertos] / Demo / msp430_GCC / makefile
1 #       FreeRTOS.org V4.0.2 - Copyright (C) 2003-2006 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=msp430-gcc\r
33 OBJCOPY=msp430-objcopy\r
34 DEBUG=-g\r
35 OPT=-Os\r
36 WARNINGS=-Wall -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-align -Wsign-compare \\r
37                 -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wunused\r
38 \r
39 CFLAGS=-mmcu=msp430x449 $(OPT) $(DEBUG) -I. -I../../Source/include -I../Common/include -DGCC_MSP430 $(WARNINGS)\r
40 \r
41 # Setup paths to source code\r
42 SOURCE_PATH = ../../Source\r
43 PORT_PATH = ../../Source/portable/GCC/MSP430F449\r
44 DEMO_PATH = ../Common/Minimal\r
45 \r
46 #\r
47 # Source files that can be built to THUMB mode.\r
48 #\r
49 SRC = \\r
50 main.c \\r
51 ParTest/ParTest.c \\r
52 serial/serial.c \\r
53 $(SOURCE_PATH)/tasks.c \\r
54 $(SOURCE_PATH)/list.c \\r
55 $(SOURCE_PATH)/queue.c \\r
56 $(SOURCE_PATH)/portable/MemMang/heap_1.c \\r
57 $(PORT_PATH)/port.c \\r
58 $(DEMO_PATH)/flash.c \\r
59 $(DEMO_PATH)/integer.c \\r
60 $(DEMO_PATH)/comtest.c \\r
61 $(DEMO_PATH)/PollQ.c\r
62 \r
63 #\r
64 # Define all object files.\r
65 #\r
66 OBJ = $(SRC:.c=.o)\r
67 \r
68 a.out : $(OBJ) makefile\r
69         $(CC) $(OBJ) $(CFLAGS)\r
70 \r
71 $(OBJ) : %.o : %.c makefile\r
72         $(CC) -c $(CFLAGS) $< -o $@     \r
73         \r
74 clean :\r
75         touch makefile\r
76         \r
77 \r
78 \r
79 \r
80 \r
81 \r
82 \r
83 \r
84 \r
85         \r
86 \r
87 \r