etc/services - sync with NetBSD-8
[minix.git] / minix / net / lwip / Makefile
blob15083862bd2eaeae57f0094126a8bcac5d09d29c
1 # Makefile for the lwIP TCP/IP socket driver service (LWIP)
3 .include <bsd.own.mk>
5 PROG= 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
11 FILES=${PROG}.conf
12 FILESNAME=${PROG}
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")
20 CPPFLAGS+= -DINET6
21 .endif
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
32 WARNS?= 5
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
38 CWARNFLAGS.gcc+= -Wno-maybe-uninitialized
39 .endif
40 .endif # defined(__MINIX)
42 .include <minix.service.mk>