1229970Sadrian# $FreeBSD: releng/11.0/sys/modules/wtap/Makefile 297434 2016-03-30 23:50:23Z bdrewery $ 2229970Sadrian 3229970Sadrian 4229970Sadrian# Declare Name of kernel module 5229970SadrianKMOD = wtap 6229970Sadrian 7229970Sadrian# Enumerate Source files for kernel module 8230273Sadrian.PATH: ${.CURDIR}/../../dev/wtap 9229970SadrianSRCS = if_wtap_module.c if_wtap.c if_medium.c 10229970Sadrian 11229970Sadrian.PATH: ${.CURDIR}/../../dev/wtap/wtap_hal 12229970SadrianSRCS += hal.c 13229970Sadrian 14229970Sadrian.PATH: ${.CURDIR}/../../dev/wtap/plugins 15229970SadrianSRCS += visibility.c 16229970Sadrian 17229970SadrianSRCS += opt_global.h 18229970Sadrian 19297434Sbdrewery.if !defined(KERNBUILDDIR) 20229970SadrianCFLAGS+= -include opt_global.h 21229970Sadrian 22229970Sadrianopt_global.h: 23229970Sadrian echo "#define VIMAGE 1" > ${.TARGET} 24229970Sadrian.endif 25229970Sadrian 26229970Sadrian# Include kernel module makefile 27229970Sadrian.include <bsd.kmod.mk> 28