bdberl/Rakefile

27 lines
591 B
Ruby
Raw Normal View History

2009-02-12 18:49:50 +00:00
require 'erlbox'
require 'erlbox/driver'
require 'erlbox/snmp'
2008-12-06 06:20:26 +00:00
CLOBBER.include %w( c_src/system )
2009-02-12 18:49:50 +00:00
UNIT_TEST_FLAGS << '+A10'
INT_TEST_FLAGS << '+A10'
2008-12-06 06:20:26 +00:00
DB_LIB = "c_src/system/lib/libdb.a"
CC_FLAGS << "-Ic_src/system/include"
2009-04-22 16:24:17 +00:00
LD_LIBS << DB_LIB
2008-12-06 06:20:26 +00:00
file DB_LIB do
sh "cd c_src && ./buildlib.sh 2>&1"
end
2009-02-12 18:49:50 +00:00
# This is a slightl kludgey way of getting DB_LIB into
# dependency chain early enough
file 'c_src/bdberl_drv.c' => [DB_LIB]
2008-12-16 22:22:04 +00:00
task 'faxien:package' do
Dir.mkdir "#{PACKAGE_DIR}/priv/bin"
FileUtils.cp_r Dir.glob('c_src/system/bin/*'), "#{PACKAGE_DIR}/priv/bin", :verbose => false
2009-03-03 18:17:44 +00:00
end