xref: /minix/minix/net/lwip/Makefile (revision 9f81acbc)
1# Makefile for the lwIP TCP/IP socket driver service (LWIP)
2
3.include <bsd.own.mk>
4
5PROG=	lwip
6SRCS=	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
10
11FILES=${PROG}.conf
12FILESNAME=${PROG}
13FILESDIR= /etc/system.conf.d
14
15CPPFLAGS+=	-I${NETBSDSRCDIR}/minix/lib/liblwip/dist/src/include
16CPPFLAGS+=	-I${NETBSDSRCDIR}/minix/lib/liblwip/lib
17
18# Disabling USE_INET6 only superficially hides IPv6 support in the service.
19.if (${USE_INET6} != "no")
20CPPFLAGS+=	-DINET6
21.endif
22
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.
26CPPFLAGS+=	-Wno-address
27
28DPADD+=	${LIBLWIP} ${LIBSOCKEVENT} ${LIBSOCKDRIVER} ${LIBCHARDRIVER} \
29	${LIBSYS} ${LIBTIMERS}
30LDADD+=	-llwip -lsockevent -lsockdriver -lchardriver -lsys -ltimers
31
32WARNS?=	5
33
34.include <minix.service.mk>
35