blob: a9e85622610f319c01cefdad366444d44420e687 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require 'mkmf'
require 'rbconfig'
unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O3')
$CFLAGS << ' -O3'
end
if CONFIG['CC'] =~ /gcc/
$CFLAGS << ' -Wall'
#unless $CFLAGS.gsub!(/ -O[\dsz]?/, ' -O0 -ggdb')
# $CFLAGS << ' -O0 -ggdb'
#end
end
if RUBY_VERSION >= '1.9'
$CFLAGS << ' -DRUBY_19'
end
have_header("ruby/re.h") || have_header("re.h")
have_header("ruby/encoding.h")
create_makefile 'generator'
|