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.if defined(__MINIX) 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 38CWARNFLAGS.gcc+= -Wno-maybe-uninitialized 39.endif 40.endif # defined(__MINIX) 41 42.include <minix.service.mk> 43