OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [lwIP_Demo_Rowley_ARM7/] [makefile] - Blame information for rev 800

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 583 jeremybenn
#/*
2
#    FreeRTOS V6.1.1 - Copyright (C) 2011 Real Time Engineers Ltd.
3
#
4
#    ***************************************************************************
5
#    *                                                                         *
6
#    * If you are:                                                             *
7
#    *                                                                         *
8
#    *    + New to FreeRTOS,                                                   *
9
#    *    + Wanting to learn FreeRTOS or multitasking in general quickly       *
10
#    *    + Looking for basic training,                                        *
11
#    *    + Wanting to improve your FreeRTOS skills and productivity           *
12
#    *                                                                         *
13
#    * then take a look at the FreeRTOS books - available as PDF or paperback  *
14
#    *                                                                         *
15
#    *        "Using the FreeRTOS Real Time Kernel - a Practical Guide"        *
16
#    *                  http://www.FreeRTOS.org/Documentation                  *
17
#    *                                                                         *
18
#    * A pdf reference manual is also available.  Both are usually delivered   *
19
#    * to your inbox within 20 minutes to two hours when purchased between 8am *
20
#    * and 8pm GMT (although please allow up to 24 hours in case of            *
21
#    * exceptional circumstances).  Thank you for your support!                *
22
#    *                                                                         *
23
#    ***************************************************************************
24
#
25
#    This file is part of the FreeRTOS distribution.
26
#
27
#    FreeRTOS is free software; you can redistribute it and/or modify it under
28
#    the terms of the GNU General Public License (version 2) as published by the
29
#    Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
30
#    ***NOTE*** The exception to the GPL is included to allow you to distribute
31
#    a combined work that includes FreeRTOS without being obliged to provide the
32
#    source code for proprietary components outside of the FreeRTOS kernel.
33
#    FreeRTOS is distributed in the hope that it will be useful, but WITHOUT
34
#    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
35
#    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
36
#    more details. You should have received a copy of the GNU General Public
37
#    License and the FreeRTOS license exception along with FreeRTOS; if not it
38
#    can be viewed here: http://www.freertos.org/a00114.html and also obtained
39
#    by writing to Richard Barry, contact details for whom are available on the
40
#    FreeRTOS WEB site.
41
#
42
#    1 tab == 4 spaces!
43
#
44
#    http://www.FreeRTOS.org - Documentation, latest information, license and
45
#    contact details.
46
#
47
#    http://www.SafeRTOS.com - A version that is certified for use in safety
48
#    critical systems.
49
#
50
#    http://www.OpenRTOS.com - Commercial support, development, porting,
51
#    licensing and training services.
52
#*/
53
 
54
CC=arm-elf-gcc
55
OBJCOPY=arm-elf-objcopy
56
ARCH=arm-elf-ar
57
CRT0=boot.s
58
DEBUG=-g
59
OPTIM=-O0
60
LDSCRIPT=atmel-rom.ld
61
 
62
#
63
# CFLAGS common to both the THUMB and ARM mode builds
64
#
65
 
66
CFLAGS= \
67
-I.  \
68
-I./EMAC  \
69
-I../Common/include  \
70
-I./USB  \
71
-I./lwip-1.1.0/src/include  \
72
-I./lwip-1.1.0/contrib/port/FreeRTOS/AT91SAM7X  \
73
-I../../Source/include  \
74
-I../../Source/portable/GCC/ARM7_AT91SAM7S  \
75
-I./lwip-1.1.0/src/include/ipv4 \
76
-Wall  \
77
-Wextra  \
78
-Wstrict-prototypes  \
79
-Wmissing-prototypes  \
80
-Wmissing-declarations  \
81
-Wno-strict-aliasing  \
82
-D SAM7_GCC  \
83
-D THUMB_INTERWORK \
84
-mthumb-interwork \
85
-mcpu=arm7tdmi  \
86
-T$(LDSCRIPT) \
87
$(DEBUG)  \
88
$(OPTIM) \
89
-fomit-frame-pointer
90
 
91
THUMB_FLAGS=-mthumb
92
LINKER_FLAGS=-Xlinker -ortosdemo.elf -Xlinker -M -Xlinker -Map=rtosdemo.map
93
 
94
#
95
# Source files that can be built to THUMB mode.
96
#
97
FREERTOS_THUMB_SRC= \
98
  ../../Source/tasks.c \
99
  ../../Source/queue.c \
100
  ../../Source/list.c \
101
  ../../Source/portable/GCC/ARM7_AT91SAM7S/port.c
102
 
103
DEMO_APP_THMUB_SRC= \
104
  ../../Source/portable/MemMang/heap_2.c \
105
  ParTest/ParTest.c \
106
  main.c \
107
  ../Common/Minimal/flash.c \
108
  ../Common/Minimal/BlockQ.c \
109
  ../Common/Minimal/integer.c \
110
  ../Common/Minimal/PollQ.c \
111
  ../Common/Minimal/semtest.c \
112
  BasicWEB.c \
113
  USB/USB-CDC.c
114
 
115
LWIP_THUMB_SRC= \
116
  lwip-1.1.0/src/core/tcp_out.c \
117
  lwip-1.1.0/src/core/inet.c \
118
  lwip-1.1.0/src/core/mem.c \
119
  lwip-1.1.0/src/core/memp.c \
120
  lwip-1.1.0/src/core/netif.c \
121
  lwip-1.1.0/src/core/pbuf.c \
122
  lwip-1.1.0/src/core/raw.c \
123
  lwip-1.1.0/src/core/stats.c \
124
  lwip-1.1.0/src/core/sys.c \
125
  lwip-1.1.0/src/core/tcp.c \
126
  lwip-1.1.0/src/core/tcp_in.c \
127
  lwip-1.1.0/src/core/ipv4/ip.c \
128
  lwip-1.1.0/src/core/ipv4/ip_addr.c \
129
  lwip-1.1.0/src/core/ipv4/icmp.c \
130
  lwip-1.1.0/src/api/tcpip.c \
131
  lwip-1.1.0/src/api/api_msg.c \
132
  lwip-1.1.0/src/api/err.c \
133
  lwip-1.1.0/src/api/api_lib.c \
134
  lwip-1.1.0/src/netif/etharp.c \
135
  lwip-1.1.0/contrib/port/FreeRTOS/AT91SAM7X/sys_arch.c \
136
  lwip-1.1.0/src/netif/ethernetif.c \
137
  EMAC/SAM7_EMAC.c \
138
  lwip-1.1.0/src/core/udp.c \
139
  lwip-1.1.0/src/core/ipv4/ip_frag.c
140
 
141
#
142
# Source files that must be built to ARM mode.
143
#
144
ARM_SRC= \
145
  ../../Source/portable/GCC/ARM7_AT91SAM7S/portISR.c \
146
  EMAC/SAM7_EMAC_ISR.c \
147
  USB/USBIsr.c \
148
  Cstartup_SAM7.c
149
 
150
 
151
#
152
# Define all object files.
153
#
154
ARM_OBJ = $(ARM_SRC:.c=.o)
155
FREERTOS_THUMB_OBJ = $(FREERTOS_THUMB_SRC:.c=.o)
156
DEMO_APP_THMUB_OBJ = $(DEMO_APP_THMUB_SRC:.c=.o)
157
LWIP_THUMB_OBJ = $(LWIP_THUMB_SRC:.c=.o)
158
 
159
rtosdemo.bin : rtosdemo.elf
160
        $(OBJCOPY) rtosdemo.elf -O binary rtosdemo.bin
161
 
162
rtosdemo.hex : rtosdemo.elf
163
        $(OBJCOPY) rtosdemo.elf -O ihex rtosdemo.hex
164
 
165
rtosdemo.elf : $(ARM_OBJ) $(DEMO_APP_THMUB_OBJ) $(LWIP_THUMB_OBJ) $(FREERTOS_THUMB_OBJ) $(CRT0) Makefile FreeRTOSConfig.h
166
        $(CC) $(CFLAGS) $(ARM_OBJ) $(DEMO_APP_THMUB_OBJ) $(LWIP_THUMB_OBJ) $(FREERTOS_THUMB_OBJ) -nostartfiles $(CRT0) $(LINKER_FLAGS)
167
 
168
$(DEMO_APP_THMUB_OBJ)  : %.o : %.c $(LDSCRIPT) Makefile FreeRTOSConfig.h
169
        $(CC) -c $(THUMB_FLAGS) $(CFLAGS) $< -o $@
170
 
171
$(LWIP_THUMB_OBJ)  : %.o : %.c $(LDSCRIPT) Makefile FreeRTOSConfig.h
172
        $(CC) -c $(THUMB_FLAGS) $(CFLAGS) $< -o $@
173
 
174
$(FREERTOS_THUMB_OBJ)  : %.o : %.c $(LDSCRIPT) Makefile FreeRTOSConfig.h
175
        $(CC) -c $(THUMB_FLAGS) $(CFLAGS) $< -o $@
176
 
177
$(ARM_OBJ) : %.o : %.c $(LDSCRIPT) Makefile FreeRTOSConfig.h
178
        $(CC) -c $(CFLAGS) $< -o $@
179
 
180
clean :
181
        touch Makefile
182
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.