KERNELVERSION ?= $(shell uname -r)
BASEINCLUDE ?= /lib/modules/$(KERNELVERSION)/build
DRIVERDIR ?= $(PWD)
DEBUG_FS = $(shell grep CONFIG_DEBUG_FS=y $(BASEINCLUDE)/.config)

include Makefile

clean-files += Modules.symvers Module.symvers Module.markers modules.order

export clean-files

default:
	$(MAKE) -C $(BASEINCLUDE) SUBDIRS=$(DRIVERDIR) CONFIG_BE2NET=m modules

clean:
	$(MAKE) -C $(BASEINCLUDE) SUBDIRS=$(DRIVERDIR) CONFIG_BE2NET=m clean
