From: Ambarisha B Date: Thu, 21 Mar 2013 20:14:51 +0000 (+0100) Subject: LWIP - fixed makefiles X-Git-Tag: v3.3.0~1069 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=2d9009b0ab20bc2cba46f84a52095ed8645820c4;p=minix.git LWIP - fixed makefiles - Modified libnetsock/Makefile and servers/lwip/Makefile to include ipvX headers Signed-off-by: Tomas Hruby --- diff --git a/lib/liblwip/Makefile b/lib/liblwip/Makefile index 810b0612d..1022ed033 100644 --- a/lib/liblwip/Makefile +++ b/lib/liblwip/Makefile @@ -9,4 +9,3 @@ CPPFLAGS += -I${.CURDIR}/include/ -I${.CURDIR}/include/ipv4 -I${.CURDIR}/include SRCS += sys_arch.c .include -.include diff --git a/lib/libnetsock/Makefile b/lib/libnetsock/Makefile index c2f1d369b..baf93007b 100644 --- a/lib/libnetsock/Makefile +++ b/lib/libnetsock/Makefile @@ -1,7 +1,7 @@ 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 diff --git a/servers/lwip/Makefile b/servers/lwip/Makefile index 5c4edbc7b..65b80de6d 100644 --- a/servers/lwip/Makefile +++ b/servers/lwip/Makefile @@ -1,4 +1,6 @@ -# Makefile for inet. +# Makefile for lwip server. +.include + PROG= lwip SRCS= lwip.c \ driver.c \ @@ -17,9 +19,13 @@ MAN= 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