summaryrefslogtreecommitdiff
path: root/sys/rump/net/lib/libnet/Makefile
blob: bb1290d80914ac74d68b69132728c4c120ce2035 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#	$NetBSD: Makefile,v 1.36 2023/06/03 09:09:15 lukem Exp $
#


.PATH:	${.CURDIR}/../../../../net ${.CURDIR}/../../../../compat/common

LIB=	rumpnet_net
COMMENT=Network interface and routing support

IOCONF=	NET.ioconf
# iffy stuff
SRCS=	if.c if_loop.c if_stats.c route.c rtsock.c raw_usrreq.c		\
	raw_cb.c if_media.c link_proto.c net_stats.c if_ethersubr.c	\
	if_spppsubr.c
SRCS+=	if_43.c
SRCS+=	if_llatbl.c nd.c
SRCS+=	net_component.c
SRCS+=	ether_sw_offload.c

.include <bsd.init.mk>

.if !empty(RUMP_NBCOMPAT:M50)
SRCS+=	rtsock_50.c uipc_syscalls_50.c
.endif

.if !empty(RUMP_NBCOMPAT:M70)
SRCS+=	rtsock_70.c uipc_usrreq_70.c
.endif

COPTS.if_ethersubr.c+=		${CC_WNO_CAST_FUNCTION_TYPE}
# GCC is wrong here.
COPTS.in_pcb.c+=		${CC_WNO_RETURN_LOCAL_ADDR}
COPTS.in6_pcb.c+=		${CC_WNO_RETURN_LOCAL_ADDR}

.include "${.CURDIR}/../libnetinet/Makefile.inc"
.include "${.CURDIR}/../libnetinet6/Makefile.inc"
.include "${.CURDIR}/../libnetmpls/Makefile.inc"

.include <bsd.lib.mk>
.include <bsd.klinks.mk>