drivers/Makefile
branchkernel2.6
changeset 34 c1e8d61fa395
parent 27 d75ef6b46e33
child 41 42c66194c0c8
equal deleted inserted replaced
33:f4171b8aadf8 34:c1e8d61fa395
    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 \
    21 			ec_slave.o ec_command.o ec_types.o
    21 			ec_slave.o ec_command.o ec_types.o
    22 
    22 
       
    23 REV = `svnversion $(src)`
       
    24 DATE = `date`
       
    25 
       
    26 EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)"
       
    27 
    23 #----------------------------------------------------------------
    28 #----------------------------------------------------------------
    24 
    29 
    25 else
    30 else
    26 
    31 
    27 #----------------------------------------------------------------
    32 #----------------------------------------------------------------
    28 # Default-Abschnitt
    33 # Default-Abschnitt
    29 
    34 
    30 CONFIG_FILE = ../ethercat.conf
    35 include ../ethercat.conf
    31 PWD = $(shell pwd)
       
    32 
       
    33 include $(CONFIG_FILE)
       
    34 
    36 
    35 default:
    37 default:
    36 	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
    38 	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
    37 
    39 
    38 clean:
    40 clean:
    39 	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
    41 	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
    40 
    42 
    41 #----------------------------------------------------------------
    43 #----------------------------------------------------------------
    42 
    44 
    43 endif
    45 endif