- Modified libnetsock/Makefile and servers/lwip/Makefile to
include ipvX headers
Signed-off-by: Tomas Hruby <tom@minix3.org>
SRCS += sys_arch.c
.include <bsd.lib.mk>
-.include <bsd.own.mk>
LIB = netsock
CPPFLAGS += -I${.CURDIR}/include/ -D_SYSTEM
-CPPFLAGS+= -I${.CURDIR}/../../lib/liblwip/include
+CPPFLAGS+= -I${.CURDIR}/../../lib/liblwip/include -I${.CURDIR}/../../lib/liblwip/include/ipv4 -I${.CURDIR}/../../lib/liblwip/include/ipv6
CFLAGS += -Wall -Wextra -std=c99
SRCS += socket.c
-# Makefile for inet.
+# Makefile for lwip server.
+.include <bsd.own.mk>
+
PROG= lwip
SRCS= lwip.c \
driver.c \
BINDIR?= /usr/sbin
-CPPFLAGS+= -I${.CURDIR} -D_SYSTEM
-CPPFLAGS+= -I${.CURDIR}/../../lib/liblwip/include
+WARNS?=5
+
+CPPFLAGS+= -I${NETBSDSRCDIR}/lib/liblwip/include
+CPPFLAGS+= -I${NETBSDSRCDIR}/lib/liblwip/include/ipv4
+CPPFLAGS+= -I${NETBSDSRCDIR}/lib/liblwip/include/ipv6
+CPPFLAGS+= -D_SYSTEM=1
-CFLAGS += -Wextra -std=c99
+CFLAGS+= -std=c99
.include <minix.service.mk>