examples/mini/Makefile
branchstable-1.0
changeset 1621 4bbe090553f7
parent 1620 9d7453c16ade
equal deleted inserted replaced
1620:9d7453c16ade 1621:4bbe090553f7
    54 #----------------------------------------------------------------
    54 #----------------------------------------------------------------
    55 
    55 
    56 ifneq ($(wildcard kernel.conf),)
    56 ifneq ($(wildcard kernel.conf),)
    57 include kernel.conf
    57 include kernel.conf
    58 else
    58 else
    59 KERNELDIR = /lib/modules/`uname -r`/build
    59 KERNEL_DIR := /lib/modules/$(shell uname -r)/build
    60 endif
    60 endif
    61 
    61 
       
    62 CURRENT_DIR := $(shell pwd)
       
    63 
    62 modules:
    64 modules:
    63 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    65 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR)
    64 
    66 
    65 clean:
    67 clean:
    66 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    68 	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_DIR) clean
    67 
    69 
    68 #----------------------------------------------------------------
    70 #----------------------------------------------------------------
    69 
    71 
    70 endif
    72 endif