1 # Makefile for the lwIP TCP/IP socket driver service (LWIP)
6 SRCS
= lwip.c mempool.c pchain.c addr.c addrpol.c tcpisn.c mcast.c ipsock.c \
7 pktsock.c tcpsock.c udpsock.c rawsock.c ifdev.c ifaddr.c loopif.c \
8 ethif.c ndev.c rttree.c route.c rtsock.c lnksock.c lldata.c mibtree.c \
9 ifconf.c bpfdev.c bpf_filter.c util.c
13 FILESDIR
= /etc
/system.conf.d
15 CPPFLAGS
+= -I
${NETBSDSRCDIR}/minix
/lib
/liblwip
/dist/src
/include
16 CPPFLAGS
+= -I
${NETBSDSRCDIR}/minix
/lib
/liblwip
/lib
18 # Disabling USE_INET6 only superficially hides IPv6 support in the service.
19 .if
(${USE_INET6} != "no")
23 # Some warnings are the result of usage of lwIP macros. We must not generate
24 # errors for those, but even producing the warnings is not helpful, so we
25 # disable them altogether.
26 CPPFLAGS
+= -Wno-address
28 DPADD
+= ${LIBLWIP} ${LIBSOCKEVENT} ${LIBSOCKDRIVER} ${LIBCHARDRIVER} \
29 ${LIBSYS} ${LIBTIMERS}
30 LDADD
+= -llwip
-lsockevent
-lsockdriver
-lchardriver
-lsys
-ltimers
35 .if
!empty
(DBG
:M-Og
) ||
!empty
(CFLAGS
:M-Og
) || \
36 !empty
(DBG
:M-g
) ||
!empty
(CFLAGS
:M-g
)
37 #LSC: -Wno-maybe-uninitialized while compiling with -DNDEBUG -Og
38 CWARNFLAGS.gcc
+= -Wno-maybe-uninitialized
40 .
endif # defined(__MINIX)
42 .
include <minix.service.mk
>