diff --git a/AVRsack/BuildProject b/AVRsack/BuildProject index 6f03800..ceb5e18 100755 --- a/AVRsack/BuildProject +++ b/AVRsack/BuildProject @@ -127,7 +127,8 @@ File.open("Rakefile", 'w') do |rakeFile| SOURCES = Rake::FileList.new(ARGV).select {|f| f =~ /\.(c|cpp|cp|cxx|S)$/} INCLUDES= (CORES+LIBRARIES).map {|l| " +\n \" -I'#{l}'\""}.join('') rakeFile.print < [sources[i],dest] do - sh "%s %s '%s' -o '%s'" % [CC, extrainc ? "-I '"+extrainc+"'" : '', sources[i], objects[i]] + sh "%s %s '%s' -o '%s'" % [sources[i] =~ /.c$/ ? CC : CCP, + extrainc ? "-I '"+extrainc+"'" : '', sources[i], objects[i]] end end file archive => objects do