# Makefile for led1 obj-m := led1.o KDIR := /export/olimex/sam9L9260/root/lib/modules/2.6.31-rc3-olimex/build PWD := $(shell pwd) default: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules install: cp *.ko /export/olimex/sam9L9260/root/lib/modules/2.6.31-rc3-olimex/kernel/ clean: \rm -f *.o *.ko *~ *mod.c modules.order Module.symvers .*.cmd