trema/paper-house

View on GitHub
examples/static_library_subdirs/Rakefile

Summary

Maintainability
Test Coverage
# encoding: utf-8

require 'paper_house'

task hello: :libhello

PaperHouse::StaticLibraryTask.new :libhello do | task |
  task.library_name = 'hello'
  task.target_directory = 'objects'
  task.sources = 'sources/hello.c'
  task.includes = 'includes'
  task.cflags = %w(-Werror -Wall -Wextra)
end

PaperHouse::ExecutableTask.new :hello do | task |
  task.sources = 'sources/main.c'
  task.includes = 'includes'
  task.ldflags = '-Lobjects'
end