/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: 2011-02-13 02:07:11 UTC
  • Revision ID: csa@dside.dyndns.org-20110213020711-y9bjh3n4ke6p4t4n
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
obj-m := pciDriver.o
 
3
pciDriver-objs := base.o int.o umem.o kmem.o sysfs.o ioctl.o
 
4
 
 
5
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
 
6
INSTALLDIR ?= /lib/modules/$(shell uname -r)/extra
 
7
PWD := $(shell pwd)
 
8
 
 
9
default:
 
10
        $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
 
11
 
 
12
install:
 
13
        @mkdir -p $(INSTALLDIR)
 
14
        @echo "INSTALL $(INSTALLDIR)/pciDriver.ko"
 
15
        @install -m 755 pciDriver.ko $(INSTALLDIR)
 
16
        @echo "INSTALL /usr/include/pciDriver/driver/pciDriver.h"
 
17
        @mkdir -p /usr/include/pciDriver/driver
 
18
        @install -m 644 pciDriver.h /usr/include/pciDriver/driver
 
19
 
 
20
uninstall:
 
21
        @echo "UNINSTALL $(INSTALLDIR)/pciDriver.ko"
 
22
        @rm -f $(INSTALLDIR)/pciDriver.ko
 
23
        @echo "UNINSTALL /usr/include/pciDriver/driver/pciDriver.h"
 
24
        @rm -rf /usr/include/pciDriver/driver
 
25
 
 
26
clean:
 
27
        rm -rf *.o *.ko *.mod.c .*.o.cmd .*.o.tmp .*.ko.cmd  .*.o *.symvers modules.order .tmp_versions