xref: /freebsd/sys/modules/wtap/Makefile (revision 6b1e5fae2cfc205d8c2e27bd8badebd1ee61500c)
1# $FreeBSD$
2
3
4# Declare Name of kernel module
5KMOD	=  wtap
6
7# Enumerate Source files for kernel module
8.PATH:	${SRCTOP}/sys/dev/wtap
9SRCS	=  if_wtap_module.c if_wtap.c if_medium.c
10
11.PATH:	${SRCTOP}/sys/dev/wtap/wtap_hal
12SRCS	+= hal.c
13
14.PATH:	${SRCTOP}/sys/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