equal
deleted
inserted
replaced
36 #------------------------------------------------------------------------------ |
36 #------------------------------------------------------------------------------ |
37 |
37 |
38 obj-m := ec_master.o |
38 obj-m := ec_master.o |
39 |
39 |
40 ec_master-objs := module.o master.o device.o slave.o datagram.o \ |
40 ec_master-objs := module.o master.o device.o slave.o datagram.o \ |
41 domain.o mailbox.o ethernet.o debug.o fsm.o |
41 domain.o mailbox.o ethernet.o fsm.o |
42 # xmldev.o |
42 # xmldev.o |
|
43 |
|
44 ifeq ($(EC_DBG_IF),1) |
|
45 ec_master-objs += debug.o |
|
46 endif |
43 |
47 |
44 REV := $(shell if test -s $(src)/../svnrevision; then \ |
48 REV := $(shell if test -s $(src)/../svnrevision; then \ |
45 cat $(src)/../svnrevision; \ |
49 cat $(src)/../svnrevision; \ |
46 else \ |
50 else \ |
47 svnversion $(src) 2>/dev/null || echo "unknown"; \ |
51 svnversion $(src) 2>/dev/null || echo "unknown"; \ |
48 fi) |
52 fi) |
49 |
53 |
50 EXTRA_CFLAGS := -DSVNREV=$(REV) -DUSER=$(USER) |
54 EXTRA_CFLAGS := -DSVNREV=$(REV) |
51 |
55 |
52 #------------------------------------------------------------------------------ |
56 #------------------------------------------------------------------------------ |