forked from pfalcon/esp-open-lwip
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile.ajk
71 lines (61 loc) · 1.54 KB
/
Makefile.ajk
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
COMPILE ?= gcc
BOOT ?= none
APP ?= 0
SPI_SPEED ?= 40
SPI_MODE ?= QIO
SPI_SIZE_MAP ?= 0
CC = $(CURDIR)/../esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-gcc
AR = $(CURDIR)/../esp-open-sdk/xtensa-lx106-elf/bin/xtensa-lx106-elf-ar
DEFS = -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH -DMEMCPY=memcpy -DSMEMCPY=memcpy
COPT = -Os
CFLAGS = $(DEFS) $(COPT) -Iinclude -Wl,-EL -mlongcalls -mtext-section-literals -mforce-l32 $(CFLAGS_EXTRA)
# Install prefix of esp-open-sdk toolchain
PREFIX = $(CURDIR)/../esp-open-sdk/xtensa-lx106-elf
OBJS = \
lwip/core/def.o \
lwip/core/dhcp.o \
lwip/core/dns.o \
lwip/core/init.o \
lwip/core/mem.o \
lwip/core/memp.o \
lwip/core/netif.o \
lwip/core/pbuf.o \
lwip/core/raw.o \
lwip/core/sntp.o \
lwip/core/stats.o \
lwip/core/sys_arch.o \
lwip/core/sys.o \
lwip/core/tcp.o \
lwip/core/tcp_in.o \
lwip/core/tcp_out.o \
lwip/core/timers.o \
lwip/core/udp.o \
lwip/core/ipv4/autoip.o \
lwip/core/ipv4/icmp.o \
lwip/core/ipv4/igmp.o \
lwip/core/ipv4/inet.o \
lwip/core/ipv4/inet_chksum.o \
lwip/core/ipv4/ip_addr.o \
lwip/core/ipv4/ip.o \
lwip/core/ipv4/ip_route.o \
lwip/core/ipv4/ip_frag.o \
lwip/netif/etharp.o \
lwip/netif/slipif.o \
lwip/netif/tunif.o \
lwip/netif/espenc.o \
lwip/app/espconn.o\
lwip/app/espconn_udp.o\
lwip/app/espconn_tcp.o\
lwip/app/espconn_mdns.o\
lwip/app/ping.o\
lwip/app/netio.o\
lwip/app/dhcpserver.o \
lwip/app/encdhcpserver.o \
LIB = liblwip_open.a
all: $(LIB)
$(LIB): $(OBJS)
$(AR) rcs $@ $^
install: $(LIB)
cp $(LIB) $(PREFIX)/xtensa-lx106-elf/sysroot/usr/lib/
clean:
rm -f $(OBJS) $(LIB)