Module: BOAST::MAQAO
- Defined in:
- lib/BOAST/Runtime/MAQAO.rb
Instance Method Summary collapse
- #create_executable_target(linker, ldflags, kernel_files) ⇒ Object
- #create_targets(linker, ldshared, ldflags, kernel_files) ⇒ Object
Instance Method Details
#create_executable_target(linker, ldflags, kernel_files) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/BOAST/Runtime/MAQAO.rb', line 37 def create_executable_target( linker, ldflags, kernel_files) file target_executable => target_executable_depends do sh "#{linker} -o #{target_executable} #{target_executable_depends.join(" ")} #{(kernel_files.collect {|f| f.path}).join(" ")} #{ldflags}" maqao_script = @compiler_options[:MAQAO_SCRIPT] if maqao_script == '' then maqao_script = "#{@compiler_options[:MAQAO_PATH]}/scripts/maqao_from_boast.sh" end end sh "#{maqao_script} #{@compiler_options[:MAQAO_PATH]} #{@procedure.name} Init_#{base_name} #{target_executable}" Rake::Task[target_executable].invoke end |
#create_targets(linker, ldshared, ldflags, kernel_files) ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/BOAST/Runtime/MAQAO.rb', line 49 def create_targets( linker, ldshared, ldflags, kernel_files) file target => target_depends do sh "#{linker} #{ldshared} -o #{target} #{target_depends.join(" ")} #{(kernel_files.collect {|f| f.path}).join(" ")} #{ldflags}" no_fpic_obj = target_depends[1].gsub(/\.o$/, "_no_fpic.o") maqao_script = @compiler_options[:MAQAO_SCRIPT] if maqao_script == '' then maqao_script = "#{@compiler_options[:MAQAO_PATH]}/scripts/maqao_from_boast.sh" end sh "#{maqao_script} #{@compiler_options[:MAQAO_PATH]} #{library_source} #{@procedure.name} Init_#{base_name} #{target} #{no_fpic_obj}" end Rake::Task[target].invoke end |