drivers/Makefile
changeset 41 42c66194c0c8
parent 34 c1e8d61fa395
child 42 a22a202d0f42
equal deleted inserted replaced
40:d07ebafe62dd 41:42c66194c0c8
     1 #----------------------------------------------------------------
     1 #------------------------------------------------------------------------------
     2 #
     2 #
     3 #  Makefile
     3 #  Makefile
     4 #
     4 #
     5 #  IgH EtherCAT-Treiber
     5 #  IgH EtherCAT-Treiber
     6 #
     6 #
     7 #  $Id$
     7 #  $Id$
     8 #
     8 #
     9 #----------------------------------------------------------------
     9 #------------------------------------------------------------------------------
    10 
    10 
    11 ifneq ($(KERNELRELEASE),)
    11 ifneq ($(KERNELRELEASE),)
    12 
    12 
    13 #----------------------------------------------------------------
    13 #------------------------------------------------------------------------------
    14 # Kbuild-Abschnitt
    14 # Kbuild-Abschnitt
    15 
    15 
    16 obj-m := 8139too-ecat.o ecat-master.o
    16 obj-m := 8139too-ecat.o ecat-master.o
    17 
    17 
    18 8139too-ecat-objs := 8139too.o
    18 8139too-ecat-objs := 8139too.o
    19 
    19 
    20 ecat-master-objs := ec_module.o ec_master.o ec_device.o \
    20 ecat-master-objs := ec_module.o ec_master.o ec_device.o ec_slave.o \
    21 			ec_slave.o ec_command.o ec_types.o
    21 					ec_command.o ec_types.o
    22 
    22 
    23 REV = `svnversion $(src)`
    23 REV = `svnversion $(src)`
    24 DATE = `date`
    24 DATE = `date`
    25 
    25 
    26 EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)"
    26 EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)"
    27 
    27 
    28 #----------------------------------------------------------------
    28 #------------------------------------------------------------------------------
    29 
    29 
    30 else
    30 else
    31 
    31 
    32 #----------------------------------------------------------------
    32 #------------------------------------------------------------------------------
    33 # Default-Abschnitt
    33 # Default-Abschnitt
    34 
    34 
    35 include ../ethercat.conf
    35 include ../ethercat.conf
    36 
    36 
    37 default:
    37 modules:
    38 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
    38 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
    39 
    39 
    40 clean:
    40 clean:
    41 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    41 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    42 
    42 
    43 #----------------------------------------------------------------
    43 #------------------------------------------------------------------------------
    44 
    44 
    45 endif
    45 endif