Introduce old redir program
[lcapit-junk-code.git] / linux-kernel / oops / Makefile
blob39c3ec8ae7fd643a4e4c0ebdd5afaf4a9e499f36
1 # If KERNELRELEASE is defined, we've been invoked from the
2 # kernel build system and can use its language
3 ifneq ($(KERNELRELEASE),)
4 obj-m := oops.o
6 # Otherwise we were called directly from the command-line;
7 # invoke the kernel buid system
8 else
10 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
11 PWD := $(shell pwd)
14 default:
15 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
17 endif
19 clean:
20 rm -f *.ko *.o *.mod.c *~ .*.cmd
21 rm -rf .tmp_versions