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