forked from nullsub/RX62n-media
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
82 lines (69 loc) · 1.77 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
all : freertos.elf
PATH := /usr/share/gnurx_v10.03_elf-1/bin:/usr/share/gnurx_v10.03_elf-1/rx-elf/bin:$(PATH)
CFLAGS = \
-I telnetd \
-I ethernet \
-I board_hw \
-I board_hw/wifi_driver \
-I ethernet/FreeTCPIP \
-I ethernet/FreeTCPIP/net \
-I FreeRTOS/include \
-I FreeRTOS/portable/GCC/RX600 \
-I ethernet/FreeTCPIP/sys \
-std=c99 \
$(END)
#-Wall \
#-Werror \
#-Wextra \
CFILES_ENET = \
board_hw/temp_board.c \
board_hw/microphone.c \
board_hw/i2c.c \
board_hw/accelerometer.c \
board_hw/spi_driver.c \
ethernet/memb.c \
telnetd/telnetd.c \
telnetd/shell.c \
ethernet/ip_apps.c \
board_hw/start.asm \
ethernet/FreeTCPIP/psock.c \
ethernet/FreeTCPIP/timer.c \
ethernet/FreeTCPIP/uip.c \
ethernet/FreeTCPIP/uip_arp.c \
inthandler.c \
board_hw/hwsetup.c \
main.c \
uIP_Task.c \
board_hw/vects.c \
ethernet/EMAC.c \
ethernet/phy.c \
board_hw/lcd.c \
board_hw/font_x5x7.c \
FreeRTOS/list.c \
FreeRTOS/portable/GCC/RX600/port.c \
FreeRTOS/portable/MemMang/heap_2.c \
FreeRTOS/queue.c \
FreeRTOS/tasks.c \
$(END)
# board_hw/net.c \
# board_hw/wifi_driver/network_config.c \
# board_hw/wifi_driver/process_data.c \
# board_hw/wifi_driver/rs22_spi_bus.c \
# board_hw/wifi_driver/rs22_spi_pine.c \
# board_hw/wifi_driver/rs22_ssp_hcd.c \
# board_hw/wifi_driver/rsi_spi.c \
# board_hw/wifi_driver/rsi_util.c \
OFILES := $(addsuffix .o,$(basename $(CFILES_ENET)))
freertos.elf : $(OFILES)
rx-elf-gcc -nostartfiles $(OFILES) -o freertos.elf -T main.gsi
rx-elf-size freertos.elf
%.o : %.c
rx-elf-gcc -c $(CFLAGS) -Os $< -o $@
%.o : %.S
rx-elf-gcc -x assembler-with-cpp -c $(CFLAGS) -O2 $< -o $@
%.o : %.asm
rx-elf-gcc -x assembler-with-cpp -c $(CFLAGS) -O2 $< -o $@
flash : freertos.elf
sudo flash-tools/rxusb -v freertos.elf
clean :
rm -f $(OFILES) freertos.elf