Top Level Namespace
Defined Under Namespace
Modules: DataStructuresRMolinari, Shared
Instance Method Summary collapse
Instance Method Details
#generate_makefile(name) ⇒ Object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'ext/extconf_shared.rb', line 1 def generate_makefile(name) extension_name = "c_#{name}" source_name = "#{name}.c" abort 'missing malloc()' unless have_func "malloc" abort 'missing realloc()' unless have_func "realloc" if try_cflags('-O3') append_cflags('-O3') end dir_config(extension_name) $srcs = [source_name, "../shared.c"] $INCFLAGS << " -I$(srcdir)/.." $VPATH << "$(srcdir)/.." create_makefile("data_structures_rmolinari/#{extension_name}") end |