mini/Makefile
changeset 50 458e704afc6e
parent 46 f2d7a73d2f32
child 54 7506e67dd122
equal deleted inserted replaced
49:3f8e769ca747 50:458e704afc6e
    22 else
    22 else
    23 
    23 
    24 #----------------------------------------------------------------
    24 #----------------------------------------------------------------
    25 # Default-Abschnitt
    25 # Default-Abschnitt
    26 
    26 
       
    27 ifneq ($(wildcard ethercat.conf),)
       
    28 include ethercat.conf
       
    29 else
       
    30 KERNELDIR = /lib/modules/`uname -r`/build
       
    31 endif
       
    32 
    27 modules:
    33 modules:
    28 	$(MAKE) -C ..
    34 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
    29 
    35 
    30 clean:
    36 clean:
    31 	$(MAKE) -C .. clean
    37 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    32 
    38 
    33 #----------------------------------------------------------------
    39 #----------------------------------------------------------------
    34 
    40 
    35 endif
    41 endif