xref: /freebsd/sys/modules/wtap/Makefile (revision 3f2a60a1371a69d7e9caac43bf457b6f89cdfd48)
1# $FreeBSD$
2
3
4# Declare Name of kernel module
5KMOD	=  wtap
6
7# Enumerate Source files for kernel module
8.PATH:	${.CURDIR}/../../dev/wtap
9SRCS	=  if_wtap_module.c if_wtap.c if_medium.c
10
11.PATH:	${.CURDIR}/../../dev/wtap/wtap_hal
12SRCS	+= hal.c
13
14.PATH:	${.CURDIR}/../../dev/wtap/plugins
15SRCS	+= visibility.c
16
17SRCS	+= opt_global.h
18
19.if !defined(KERNBUILDDIR)
20CFLAGS+=        -include opt_global.h
21
22opt_global.h:
23	echo "#define VIMAGE 1" > ${.TARGET}
24.endif
25
26# Include kernel module makefile
27.include <bsd.kmod.mk>
28