/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/makefile

  • Committer: Suren A. Chilingaryan
  • Date: 2016-03-04 15:43:14 UTC
  • Revision ID: csa@suren.me-20160304154314-uor59rrkaw2hexm7
RPM generation

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
obj-m := pciDriver.o
4
4
pciDriver-objs := base.o dev.o int.o umem.o kmem.o sysfs.o ioctl.o pcibus.o rdma.o
5
5
 
6
 
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
7
 
INSTALLDIR ?= /lib/modules/$(shell uname -r)/extra
8
 
MAININSTALLDIR ?= /lib/modules/$(shell uname -r)/kernel/extra
9
 
HEADERDIR ?= /lib/modules/$(shell uname -r)/source/include
 
6
KERNELVER ?= $(shell uname -r)
 
7
KERNELDIR ?= /lib/modules/$(KERNELVER)/build
 
8
INSTALLDIR ?= /lib/modules/$(KERNELVER)/extra
 
9
MAININSTALLDIR ?= /lib/modules/$(KERNELVER)/kernel/extra
 
10
HEADERDIR ?= /lib/modules/$(KERNELVER)/source/include
10
11
PWD := $(shell pwd)
11
12
 
12
13
EXTRA_CFLAGS += -I$(M)/..
63
64
        @mkdir -p /usr/include/linux
64
65
        @install -m 644 ioctl.h /usr/include/linux/pcidriver.h
65
66
 
 
67
install_symvers:
 
68
        @mkdir -p $(INSTALLDIR)
 
69
        @echo "INSTALL $(INSTALLDIR)/pciDriver.symvers"
 
70
        @install -m 644 Module.symvers $(INSTALLDIR)/pciDriver.symvers
 
71
        @echo "INSTALL $(HEADERDIR)/linux/pcidriver.h"
 
72
        @install -m 644 pcidriver.h $(HEADERDIR)/linux/
 
73
 
 
74
 
66
75
uninstall:
67
76
        @echo "UNINSTALL $(INSTALLDIR)/pciDriver.ko"
68
77
        @rm -f $(INSTALLDIR)/pciDriver.ko