mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
cad513b703
git-svn-id: file:///home/svn/framework3/trunk@6117 4d416f70-5f16-0410-b530-b9f4589650da
14 lines
278 B
Ruby
14 lines
278 B
Ruby
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")
|