1# $NetBSD: Makefile,v 1.36 2023/06/03 09:09:15 lukem Exp $ 2# 3 4 5.PATH: ${.CURDIR}/../../../../net ${.CURDIR}/../../../../compat/common 6 7LIB= rumpnet_net 8COMMENT=Network interface and routing support 9 10IOCONF= NET.ioconf 11# iffy stuff 12SRCS= if.c if_loop.c if_stats.c route.c rtsock.c raw_usrreq.c \ 13 raw_cb.c if_media.c link_proto.c net_stats.c if_ethersubr.c \ 14 if_spppsubr.c 15SRCS+= if_43.c 16SRCS+= if_llatbl.c nd.c 17SRCS+= net_component.c 18SRCS+= ether_sw_offload.c 19 20.include <bsd.init.mk> 21 22.if !empty(RUMP_NBCOMPAT:M50) 23SRCS+= rtsock_50.c uipc_syscalls_50.c 24.endif 25 26.if !empty(RUMP_NBCOMPAT:M70) 27SRCS+= rtsock_70.c uipc_usrreq_70.c 28.endif 29 30COPTS.if_ethersubr.c+= ${CC_WNO_CAST_FUNCTION_TYPE} 31# GCC is wrong here. 32COPTS.in_pcb.c+= ${CC_WNO_RETURN_LOCAL_ADDR} 33COPTS.in6_pcb.c+= ${CC_WNO_RETURN_LOCAL_ADDR} 34 35.include "${.CURDIR}/../libnetinet/Makefile.inc" 36.include "${.CURDIR}/../libnetinet6/Makefile.inc" 37.include "${.CURDIR}/../libnetmpls/Makefile.inc" 38 39.include <bsd.lib.mk> 40.include <bsd.klinks.mk> 41