master/Makefile
changeset 98 f564d0929292
parent 73 9f4ea66d89a3
child 145 11a82e4fd31b
equal deleted inserted replaced
97:e6264685dd7b 98:f564d0929292
    13 #------------------------------------------------------------------------------
    13 #------------------------------------------------------------------------------
    14 # Kbuild-Abschnitt
    14 # Kbuild-Abschnitt
    15 
    15 
    16 obj-m := ec_master.o
    16 obj-m := ec_master.o
    17 
    17 
    18 ec_master-objs := module.o master.o device.o slave.o frame.o types.o \
    18 ec_master-objs := module.o master.o device.o slave.o command.o types.o \
    19 			domain.o canopen.o
    19 			domain.o canopen.o
    20 
    20 
    21 REV = `svnversion $(src)`
    21 EXTRA_CFLAGS := -DSVNREV=$(shell svnversion $(src)) -DUSER=$(USER)
    22 DATE = `date`
       
    23 
       
    24 EXTRA_CFLAGS = -DEC_REV="$(REV)" -DEC_USER="$(USER)" -DEC_DATE="$(DATE)"
       
    25 
    22 
    26 #------------------------------------------------------------------------------
    23 #------------------------------------------------------------------------------
    27 
    24 
    28 else
    25 else
    29 
    26 
    46 	doxygen Doxyfile
    43 	doxygen Doxyfile
    47 
    44 
    48 cleandoc:
    45 cleandoc:
    49 	@rm -rf doc
    46 	@rm -rf doc
    50 
    47 
    51 .PHONY: doc
    48 .PHONY: doc cleandoc modules clean
    52 
    49 
    53 #------------------------------------------------------------------------------
    50 #------------------------------------------------------------------------------
    54 
    51 
    55 endif
    52 endif