Initial import of my project
[pp485.git] / Makefile
blob44b3ef45e5a0a967dd64cb65c834d70e425bd24d
1 #Dual Purpose Makefile to support kernel module builds
2 ifneq ($(KERNELRELEASE),)
3 obj-m := pp485.o
5 else
6 KDIR := /lib/modules/$(shell uname -r)/build
7 PWD := $(shell pwd)
9 all: default
10 default:
11 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
13 clean:
14 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
16 install:
17 $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install
19 endif