xref: /freebsd/sys/modules/wtap/Makefile (revision 70e0bbedef95258a4dadc996d641a9bebd3f107d)
1# $FreeBSD$
2
3.PATH:	${.CURDIR}/../../dev/wtap
4
5# Declare Name of kernel module
6KMOD	=  wtap
7
8# Enumerate Source files for kernel module
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