summaryrefslogtreecommitdiffstats
path: root/sys/modules/ip_mroute_mod/Makefile
blob: 41dbceccef5ea21e6ae5f8b85f2d3c193ecb53c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $FreeBSD$

.PATH: ${.CURDIR}/../../netinet

KMOD=	ip_mroute
SRCS=	ip_mroute.c opt_mac.h opt_mrouting.h opt_random_ip_id.h

CFLAGS+= -DMROUTE_KLD

RANDOM_IP_ID?=	0	# 0/1 - should jibe with kernel configuration

opt_mrouting.h:
	echo "#define	MROUTING 1" > ${.TARGET}

opt_random_ip_id.h:
	touch ${.TARGET}
.if ${RANDOM_IP_ID} > 0
	echo "#define	RANDOM_IP_ID 1" > ${.TARGET}
.endif

.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud