master/Kbuild
changeset 392 eaee3c8d6ae0
parent 382 72500991bcc3
child 409 bc4c852e1b93
--- a/master/Kbuild	Fri Oct 13 09:05:45 2006 +0000
+++ b/master/Kbuild	Fri Oct 13 09:38:23 2006 +0000
@@ -38,7 +38,11 @@
 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 xmldev.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; \