drivers/Makefile
branchkernel2.6
changeset 27 d75ef6b46e33
parent 22 e8c2cd004e0b
child 34 c1e8d61fa395
equal deleted inserted replaced
26:60435f959e5c 27:d75ef6b46e33
    11 ifneq ($(KERNELRELEASE),)
    11 ifneq ($(KERNELRELEASE),)
    12 
    12 
    13 #----------------------------------------------------------------
    13 #----------------------------------------------------------------
    14 # Kbuild-Abschnitt
    14 # Kbuild-Abschnitt
    15 
    15 
    16 obj-m := 8139too-ecat.o
    16 obj-m := 8139too-ecat.o ecat-master.o
    17 
    17 
    18 8139too-ecat-objs := 8139too.o ec_device.o ec_master.o \
    18 8139too-ecat-objs := 8139too.o
    19 					ec_slave.o ec_command.o ec_types.o
    19 
       
    20 ecat-master-objs := ec_module.o ec_master.o ec_device.o \
       
    21 			ec_slave.o ec_command.o ec_types.o
    20 
    22 
    21 #----------------------------------------------------------------
    23 #----------------------------------------------------------------
    22 
    24 
    23 else
    25 else
    24 
    26 
    26 # Default-Abschnitt
    28 # Default-Abschnitt
    27 
    29 
    28 CONFIG_FILE = ../ethercat.conf
    30 CONFIG_FILE = ../ethercat.conf
    29 PWD = $(shell pwd)
    31 PWD = $(shell pwd)
    30 
    32 
    31 include $(CONFIG_FILE) # Für KERNELDIR
    33 include $(CONFIG_FILE)
    32 
    34 
    33 default:
    35 default:
    34 	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
    36 	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
    35 
    37 
    36 clean:
    38 clean: