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)
20MKDEP=          -include ${KERNBUILDDIR}/opt_global.h
21.else
22CFLAGS+=        -include opt_global.h
23MKDEP=          -include opt_global.h
24
25opt_global.h:
26	echo "#define VIMAGE 1" > ${.TARGET}
27.endif
28
29# Include kernel module makefile
30.include <bsd.kmod.mk>
31