master/Kbuild
branchstable-1.1
changeset 1731 60b2aad9d40b
parent 1724 07c82e520ddd
child 1732 1cc865ba17c2
--- a/master/Kbuild	Thu Sep 28 08:31:33 2006 +0000
+++ b/master/Kbuild	Fri Oct 13 10:07:10 2006 +0000
@@ -38,15 +38,19 @@
 obj-m := ec_master.o
 
 ec_master-objs := module.o master.o device.o slave.o datagram.o \
-		domain.o mailbox.o ethernet.o debug.o fsm.o
+		domain.o mailbox.o ethernet.o fsm.o
 # xmldev.o
 
+ifeq ($(EC_DBG_IF),1)
+	ec_master-objs += debug.o
+endif
+
 REV := $(shell if test -s $(src)/../svnrevision; then \
 		cat $(src)/../svnrevision; \
 	else \
 		svnversion $(src) 2>/dev/null || echo "unknown"; \
 	fi)
 
-EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER)
+EXTRA_CFLAGS := -DSVNREV=$(REV)
 
 #------------------------------------------------------------------------------