add marker-loader
[lttv.git] / marker-loader / Makefile
CommitLineData
292f312a 1ifneq ($(KERNELRELEASE),)
2 obj-m += marker-loader.o
3else
4 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
5 PWD := $(shell pwd)
6 KERNELRELEASE = $(shell cat $(KERNELDIR)/$(KBUILD_OUTPUT)/include/linux/version.h | sed -n 's/.*UTS_RELEASE.*\"\(.*\)\".*/\1/p')
7ifneq ($(INSTALL_MOD_PATH),)
8 DEPMOD_OPT := -b $(INSTALL_MOD_PATH)
9endif
10
11default:
12 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
13
14modules_install:
15 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
16 if [ -f $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map ] ; then /sbin/depmod -ae -F $(KERNELDIR)/$(KBUILD_OUTPUT)/System.map $(DEPMOD_OPT) $(KERNELRELEASE) ; fi
17
18
19clean:
20 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
21endif
This page took 0.025872 seconds and 4 git commands to generate.