]> git.sur5r.net Git - freertos/blob - Demo/CORTEX_LM3Sxxxx_Eclipse/RTOSDemo/Makefile
Update to V4.7.0.
[freertos] / Demo / CORTEX_LM3Sxxxx_Eclipse / RTOSDemo / Makefile
1 #       FreeRTOS.org V4.7.0 - Copyright (C) 2003-2007 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 RTOS_SOURCE_DIR=../../../Source\r
33 DEMO_COMMON_DIR=../../Common/Minimal\r
34 DEMO_INCLUDE_DIR=../../Common/include\r
35 UIP_COMMON_DIR=../../Common/ethernet/uIP/uip-1.0/uip\r
36 LUMINARY_DRIVER_DIR=../../Common/drivers/LuminaryMicro\r
37 \r
38 CC=arm-none-eabi-gcc\r
39 OBJCOPY=arm-none-eabi-objcopy\r
40 LDSCRIPT=standalone.ld\r
41 \r
42 LINKER_FLAGS=-nostartfiles -Xlinker -oRTOSDemo.axf -Xlinker -M -Xlinker -Map=rtosdemo.map\r
43 \r
44 DEBUG=-g\r
45 OPTIM=-O0\r
46 \r
47 \r
48 CFLAGS=$(DEBUG) -I . -I $(RTOS_SOURCE_DIR)/include -I $(RTOS_SOURCE_DIR)/portable/GCC/ARM_CM3 \\r
49                 -I $(DEMO_INCLUDE_DIR) -D GCC_ARMCM3_LM3S102 -D inline= -mthumb -mcpu=cortex-m3 $(OPTIM) -T$(LDSCRIPT) \\r
50                 -D PACK_STRUCT_END=__attribute\(\(packed\)\) -D ALIGN_STRUCT_END=__attribute\(\(aligned\(4\)\)\) -D sprintf=usprintf -D snprintf=usnprintf -D printf=uipprintf \\r
51                 -I $(UIP_COMMON_DIR) -I ./webserver -ffunction-sections -fdata-sections -Wl,--no-gc-sections -I $(LUMINARY_DRIVER_DIR)\r
52 \r
53 SOURCE= main.c \\r
54                 timertest.c \\r
55                 ./ParTest/ParTest.c \\r
56                 rit128x96x4.c \\r
57                 osram128x64x4.c \\r
58                 $(LUMINARY_DRIVER_DIR)/ustdlib.c \\r
59                 $(DEMO_COMMON_DIR)/BlockQ.c \\r
60                 $(DEMO_COMMON_DIR)/blocktim.c \\r
61                 $(DEMO_COMMON_DIR)/death.c \\r
62                 $(DEMO_COMMON_DIR)/integer.c \\r
63                 $(DEMO_COMMON_DIR)/PollQ.c \\r
64                 $(DEMO_COMMON_DIR)/semtest.c \\r
65                 $(DEMO_COMMON_DIR)/GenQTest.c \\r
66                 $(DEMO_COMMON_DIR)/QPeek.c \\r
67                 ./webserver/uIP_Task.c \\r
68                 ./webserver/emac.c \\r
69                 ./webserver/httpd.c \\r
70                 ./webserver/httpd-cgi.c \\r
71                 ./webserver/httpd-fs.c \\r
72                 ./webserver/http-strings.c \\r
73                 $(UIP_COMMON_DIR)/uip_arp.c \\r
74                 $(UIP_COMMON_DIR)/psock.c \\r
75                 $(UIP_COMMON_DIR)/timer.c \\r
76                 $(UIP_COMMON_DIR)/uip.c \\r
77                 $(RTOS_SOURCE_DIR)/list.c \\r
78                 $(RTOS_SOURCE_DIR)/queue.c \\r
79                 $(RTOS_SOURCE_DIR)/tasks.c \\r
80                 $(RTOS_SOURCE_DIR)/Portable/GCC/ARM_CM3/port.c \\r
81                 $(RTOS_SOURCE_DIR)/Portable/MemMang/heap_2.c\r
82 \r
83 LIBS= $(LUMINARY_DRIVER_DIR)/arm-none-eabi-gcc/libdriver.a\r
84 \r
85 OBJS = $(SOURCE:.c=.o)\r
86 \r
87 all: RTOSDemo.bin\r
88          \r
89 RTOSDemo.bin : RTOSDemo.axf\r
90         $(OBJCOPY) RTOSDemo.axf -O binary RTOSDemo.bin\r
91 \r
92 RTOSDemo.axf : $(OBJS) startup.o Makefile\r
93         $(CC) $(CFLAGS) $(OBJS) startup.o $(LIBS) $(LINKER_FLAGS)\r
94 \r
95 $(OBJS) : %.o : %.c Makefile FreeRTOSConfig.h\r
96         $(CC) -c $(CFLAGS) $< -o $@\r
97 \r
98 startup.o : startup.c Makefile\r
99         $(CC) -c $(CFLAGS) -O1 startup.c -o startup.o\r
100                 \r
101 clean :\r
102         cs-rm $(OBJS)\r
103         \r
104 \r
105 \r
106 \r