Makefile
changeset 71 79d7b9cfdeb9
parent 59 c8bd4fe3b38c
child 73 9f4ea66d89a3
equal deleted inserted replaced
70:6693d7e25d5e 71:79d7b9cfdeb9
    11 ifneq ($(KERNELRELEASE),)
    11 ifneq ($(KERNELRELEASE),)
    12 
    12 
    13 #------------------------------------------------------------------------------
    13 #------------------------------------------------------------------------------
    14 # Kbuild-Abschnitt
    14 # Kbuild-Abschnitt
    15 
    15 
    16 obj-m := master/ devices/ rt/ mini/
    16 obj-m := master/ devices/
    17 
    17 
    18 #------------------------------------------------------------------------------
    18 #------------------------------------------------------------------------------
    19 
    19 
    20 else
    20 else
    21 
    21 
    22 #------------------------------------------------------------------------------
    22 #------------------------------------------------------------------------------
    23 # Default-Abschnitt
    23 # Default-Abschnitt
    24 
    24 
       
    25 ifneq ($(wildcard ethercat.conf),)
    25 include ethercat.conf
    26 include ethercat.conf
       
    27 else
       
    28 KERNELDIR := /usr/src/linux
       
    29 endif
    26 
    30 
    27 modules:
    31 modules:
    28 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    32 	$(MAKE) -C $(KERNELDIR) M=`pwd`
    29 
    33 
    30 clean:
    34 clean: