examples/mini/Makefile
changeset 265 fb965f033bb3
parent 246 0bf7c769de06
child 267 88177083f137
equal deleted inserted replaced
264:76cba93ba122 265:fb965f033bb3
    51 
    51 
    52 #----------------------------------------------------------------
    52 #----------------------------------------------------------------
    53 #  default section
    53 #  default section
    54 #----------------------------------------------------------------
    54 #----------------------------------------------------------------
    55 
    55 
    56 ifneq ($(wildcard ethercat.conf),)
    56 ifneq ($(wildcard kernel.conf),)
    57 include ethercat.conf
    57 include kernel.conf
    58 else
    58 else
    59 KERNELDIR = /usr/src/linux
    59 KERNELDIR := /lib/modules/`uname -r`/build
    60 endif
    60 endif
    61 
    61 
    62 modules:
    62 modules:
    63 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    63 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    64 
    64