prcd-utils/dev-prcd/Makefile
2016-06-16 10:51:26 +02:00

17 lines
441 B
Makefile

obj-m := prcd.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
DEPMOD:=$(shell which depmod)
# possible bug: maybe this will work only on debian based systems
SYSMAP:= /boot/System.map-$(shell uname -r)
default:
$(shell ./gen-header.sh)
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
install:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install
$(DEPMOD) -ae -F $(SYSMAP)
clean:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean