drivers/Makefile
branchkernel2.6
changeset 34 c1e8d61fa395
parent 27 d75ef6b46e33
child 41 42c66194c0c8
--- a/drivers/Makefile	Fri Dec 16 12:04:59 2005 +0000
+++ b/drivers/Makefile	Fri Dec 16 14:16:54 2005 +0000
@@ -20,6 +20,11 @@
 ecat-master-objs := ec_module.o ec_master.o ec_device.o \
 			ec_slave.o ec_command.o ec_types.o
 
+REV = `svnversion $(src)`
+DATE = `date`
+
+EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)"
+
 #----------------------------------------------------------------
 
 else
@@ -27,16 +32,13 @@
 #----------------------------------------------------------------
 # Default-Abschnitt
 
-CONFIG_FILE = ../ethercat.conf
-PWD = $(shell pwd)
-
-include $(CONFIG_FILE)
+include ../ethercat.conf
 
 default:
-	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
+	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
 
 clean:
-	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
+	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
 
 #----------------------------------------------------------------