Rakefile: add prepprocessor to dependency generator to take ifdef into consideration

This commit is contained in:
King Kévin 2020-03-09 10:06:28 +01:00
parent b5068114fc
commit 3475565ef4
1 changed files with 1 additions and 1 deletions

View File

@ -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"