master/Makefile
changeset 98 f564d0929292
parent 73 9f4ea66d89a3
child 145 11a82e4fd31b
--- a/master/Makefile	Thu Mar 02 13:08:07 2006 +0000
+++ b/master/Makefile	Mon Mar 06 15:12:34 2006 +0000
@@ -15,13 +15,10 @@
 
 obj-m := ec_master.o
 
-ec_master-objs := module.o master.o device.o slave.o frame.o types.o \
+ec_master-objs := module.o master.o device.o slave.o command.o types.o \
 			domain.o canopen.o
 
-REV = `svnversion $(src)`
-DATE = `date`
-
-EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)"
+EXTRA_CFLAGS := -DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER)
 
 #------------------------------------------------------------------------------
 
@@ -48,7 +45,7 @@
 cleandoc:
 	@rm -rf doc
 
-.PHONY: doc
+.PHONY: doc cleandoc modules clean
 
 #------------------------------------------------------------------------------