examples/mini/Makefile
changeset 267 88177083f137
parent 265 fb965f033bb3
child 284 7eed6020d5cf
equal deleted inserted replaced
266:0234b0c26c52 267:88177083f137
    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/`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