aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 38601bd6cd00c6ca0d7a901e4fdd9f5678d9a627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ccflags-y := -Wall -Werror
obj-m := cds9k-mfd-spi.o
obj-m += cds9k-gpio.o
obj-m += cds9k-led.o
obj-m += cds9k-reset.o
obj-m += cds9k-fan.o
obj-m += simple-reset-consumer.o

SRC := $(shell pwd)

all:
	$(MAKE) -C $(KERNEL_SRC) M=$(SRC)

clean:
	rm -f *.o core .depend .*.cmd *.ko *.mod.c
	rm -f Module.markers Module.symvers modules.order
	rm -rf .tmp_versions Modules.symvers

modules_install:
	$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install