X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fkernel.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=b7d4f29f8a3ba25b1deff554f3e6915c62ff9fd6;hp=0000000000000000000000000000000000000000;hb=8a336451c7768f15c42feaf03c4d82acd88bc6cc;hpb=5ef1719c674e2eeedbfaef7dacb982b3b7c3c74c diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b7d4f29 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +ifneq ($(KERNELRELEASE),) + obj-y += hello/ + obj-y += mproc/ +else + KERNELDIR ?= /usr/src/linux + PWD := $(shell pwd) +default: + $(MAKE) -C $(KERNELDIR) M=$(PWD) modules +endif