forked from pfalcon/esp-open-lwip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.open
55 lines (47 loc) · 1.09 KB
/
Makefile.open
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
CC = xtensa-lx106-elf-gcc
AR = xtensa-lx106-elf-ar
DEFS = -DLWIP_OPEN_SRC -DPBUF_RSV_FOR_WLAN -DEBUF_LWIP -DICACHE_FLASH
COPT = -Os
CFLAGS = $(DEFS) $(COPT) -Iinclude -Wl,-EL -mlongcalls -mtext-section-literals $(CFLAGS_EXTRA)
# Install prefix of esp-open-sdk toolchain
PREFIX = ~/toolchain/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_frag.o \
lwip/netif/etharp.o \
\
lwip/app/dhcpserver.o \
\
espconn_dummy.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)