Commit 9eabf50a authored by Alessandro Rubini's avatar Alessandro Rubini

Makefiles: fill the gap, now it builds

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 15b42525
DIRS = kernel doc
all clean modules install modules_install:
for d in $(DIRS); do $(MAKE) -C $$d $@ || exit 1; done
LINUX ?= /lib/modules/$(shell uname -r)/build
ccflags-y += -I$M/include
obj-m = fmc.o
obj-m += fmc-trivial.o
obj-m += fmc-write-eeprom.o
fmc-y = fmc-core.o
fmc-y += fmc-sdb.o
all modules:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) modules
install modules_install:
$(MAKE) -C $(LINUX) M=$(shell /bin/pwd) modules_install
# be able to run the "clean" rule even if $(LINUX) is not valid
clean:
rm -rf *.o *~ .*.cmd *.ko *.mod.c .tmp_versions Module.symvers \
Module.markers modules.order
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment