obj-m := testmodule.o KDIR := /path/to/buildroot-v2.1.0-rc9/toolchain_build_avr32_nofpu/linux PWD := $(shell pwd) default: $(MAKE) -c $(KDIR) SUBDIRS=$(PWD) modules clean: rm -rf testmodule.ko testmodule.o testmodule.mod.* .testmodule* .project .tmp* .cd*