1 # FreeRTOS.org V4.3.1 - Copyright (C) 2003-2007 Richard Barry.
\r
3 # This file is part of the FreeRTOS.org distribution.
\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
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
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
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
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
33 NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse --nolabelopt --nooverlay --peep-asm
\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
40 DEMO_DIR = ../Common
\r
41 SOURCE_DIR = ../../Source
\r
42 PORT_DIR = ../../Source/portable/SDCC/Cygnal
\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
60 # Define all object files.
\r
61 OBJ = $(SRC:.c=.rel)
\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
72 #main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ)
\r
73 # $(CC) $(CFLAGS) main.c $(OBJ)
\r
75 #%.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h
\r
76 # $(CC) -c $(CFLAGS) -o$< $<
\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
86 main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ)
\r
87 $(CC) $(CFLAGS) main.c $(OBJ)
\r
89 %.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h
\r
90 $(CC) -c $(CFLAGS) $<
\r