metasploit-framework/external/serialport/extconf.rb

14 lines
278 B
Ruby
Raw Normal View History

require 'mkmf'
printf("checking for OS... ")
STDOUT.flush
os = /-([a-z]+)/.match(RUBY_PLATFORM)[1]
puts(os)
$CFLAGS += " -D#{os}"
if !(os == 'mswin' or os == 'bccwin')
exit(1) if not have_header("termios.h") or not have_header("unistd.h")
end
create_makefile("serialport")