aboutsummarylogtreecommitdiffstats
path: root/Makefile
blob: 13f677f343dd63a6ab57361ba4af2a2e1524bb17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
TARGET_MODULE := havege
BUILDSYSTEM_DIR := /lib/modules/$(shell cat /lib/modules/extramodules-*/version)/build
PWD := $(shell pwd)

all : 
	$(MAKE) -C $(BUILDSYSTEM_DIR) M=$(PWD) modules
clean:
	$(MAKE) -C $(BUILDSYSTEM_DIR) M=$(PWD) clean
reload:
	rmmod ./$(TARGET_MODULE).ko
	insmod ./$(TARGET_MODULE).ko
load:
	insmod ./$(TARGET_MODULE).ko
unload:
	rmmod ./$(TARGET_MODULE).ko