Initial Revision
[ohcount] / ext / ohcount_native / extconf.rb
1 # A ruby script to generate the C Makefile.
2 require 'mkmf'
3
4 dir_config('ohcount_native')
5 have_library('pcre','pcre_compile')
6
7 # FLAGS: enable logging (or not)
8 if $*.include?("debug")
9         puts "BUILD_TYPE: DEBUG"
10 else
11         puts "BUILD_TYPE: RELEASE"
12         $CFLAGS = "#{$CFLAGS} -g -O2 -Wall -DNDEBUG"
13 end
14
15 create_makefile('ohcount_native')