examples/rtai/Makefile
changeset 265 fb965f033bb3
parent 246 0bf7c769de06
child 267 88177083f137
equal deleted inserted replaced
264:76cba93ba122 265:fb965f033bb3
    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 = /usr/src/linux
    61 KERNELDIR := /lib/modules/`uname -r`/build
    62 endif
    62 endif
    63 
    63 
    64 modules:
    64 modules:
    65 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    65 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    66 
    66