drivers/Makefile
changeset 50 458e704afc6e
parent 45 f525f7db2d90
equal deleted inserted replaced
49:3f8e769ca747 50:458e704afc6e
    30 else
    30 else
    31 
    31 
    32 #------------------------------------------------------------------------------
    32 #------------------------------------------------------------------------------
    33 # Default-Abschnitt
    33 # Default-Abschnitt
    34 
    34 
       
    35 ifneq ($(wildcard ethercat.conf),)
       
    36 include ethercat.conf
       
    37 else
       
    38 KERNELDIR = /lib/modules/`uname -r`/build
       
    39 endif
       
    40 
    35 modules:
    41 modules:
    36 	$(MAKE) -C ..
    42 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
    37 
    43 
    38 clean:
    44 clean:
    39 	$(MAKE) -C .. clean
    45 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    40 
    46 
    41 #------------------------------------------------------------------------------
    47 #------------------------------------------------------------------------------
    42 
    48 
    43 endif
    49 endif