libec/Makefile
changeset 59 c8bd4fe3b38c
parent 58 21b7342e2a90
child 60 2d2b120ba734
equal deleted inserted replaced
58:21b7342e2a90 59:c8bd4fe3b38c
     1 #------------------------------------------------------------------------------
       
     2 #
       
     3 #  Makefile
       
     4 #
       
     5 #  EtherCAT-Library
       
     6 #
       
     7 #  $Id$
       
     8 #
       
     9 #------------------------------------------------------------------------------
       
    10 
       
    11 ifneq ($(KERNELRELEASE),)
       
    12 
       
    13 #------------------------------------------------------------------------------
       
    14 # Kbuild-Abschnitt
       
    15 
       
    16 lib-m := libec.o
       
    17 
       
    18 #------------------------------------------------------------------------------
       
    19 
       
    20 else
       
    21 
       
    22 #------------------------------------------------------------------------------
       
    23 # Default-Abschnitt
       
    24 
       
    25 ifneq ($(wildcard ethercat.conf),)
       
    26 include ethercat.conf
       
    27 else
       
    28 KERNELDIR = /lib/modules/`uname -r`/build
       
    29 endif
       
    30 
       
    31 modules:
       
    32 	$(MAKE) -C $(KERNELDIR) M=`pwd`
       
    33 
       
    34 clean:
       
    35 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
       
    36 
       
    37 #------------------------------------------------------------------------------
       
    38 
       
    39 endif
       
    40 
       
    41