examples/msr/Makefile
branchstable-1.0
changeset 1621 4bbe090553f7
parent 1619 0d4119024f55
equal deleted inserted replaced
1620:9d7453c16ade 1621:4bbe090553f7
    73 include kernel.conf
    73 include kernel.conf
    74 else
    74 else
    75 KERNEL := $(shell uname -r)
    75 KERNEL := $(shell uname -r)
    76 endif
    76 endif
    77 
    77 
    78 KERNELDIR := /lib/modules/$(KERNEL)/build
    78 KERNEL_DIR := /lib/modules/$(KERNEL)/build
       
    79 CURRENT_DIR := $(shell pwd)
    79 
    80 
    80 modules:
    81 modules:
    81 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    82 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)
    82 
    83 
    83 clean:
    84 clean:
    84 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    85 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
    85 
    86 
    86 install:
    87 install:
    87 	@./install.sh $(MODULE) $(KERNEL)
    88 	@./install.sh $(MODULE) $(KERNEL)
    88 
    89 
    89 endif
    90 endif