public
Fork of tenderlove/ruby-serialport
Description: Ruby Serialport packed neatly into a gem.
Homepage:
Clone URL: git://github.com/toholio/ruby-serialport.git
ruby-serialport / extconf.rb
100755 14 lines (10 sloc) 0.294 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'mkmf'
 
printf("checking for OS... ")
STDOUT.flush
os = /-([a-z]+)/.match(RUBY_PLATFORM)[1]
puts(os)
$CFLAGS += " -DOS_#{os.upcase}"
 
if !(os == 'mswin' or os == 'bccwin')
  exit(1) if not have_header("termios.h") or not have_header("unistd.h")
end
 
create_makefile('serialport','src')