Rakefile: add prepprocessor to dependency generator to take ifdef into consideration
This commit is contained in:
parent
b5068114fc
commit
3475565ef4
2
Rakefile
2
Rakefile
|
@ -153,7 +153,7 @@ end
|
|||
|
||||
desc "generate dependencies"
|
||||
rule '.d' => ['.c', "#{LIBOPENCM3_LIB}/lib#{STM32F1_LIB}.a"] do |t|
|
||||
sh "#{CC} #{cflags} #{archflags} -MM -MF #{t.name} -c #{t.prerequisites[0]}"
|
||||
sh "#{CC} #{cflags} #{archflags} -DBUSVOODOO_HARDWARE_VERSION='#{BUSVOODOO_HARDWARE_VERSION}' -MM -MF #{t.name} -c #{t.prerequisites[0]}"
|
||||
end
|
||||
|
||||
desc "link binary"
|
||||
|
|
Loading…
Reference in New Issue