aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 8dd0872e489e84a06e5112ddb3adebef3ab872c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 += 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