- Split static recipes to depend file. - Modify makefile configurations in the block to `create_makefile`. - Expand rust sources in extconf.rb instead of GNU make extension. TODO: pass `CARGO_TARGET_DIR` without shell syntax.
15 lines
261 B
Ruby
15 lines
261 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "mkmf"
|
|
|
|
srcdir = File.join(__dir__, "..")
|
|
$INCFLAGS << " -I#{srcdir}"
|
|
|
|
$CPPFLAGS << " -DBUILDING_MODULAR_GC"
|
|
|
|
append_cflags("-fPIC")
|
|
|
|
def create_gc_makefile(name, &block)
|
|
create_makefile("librubygc.#{name}", &block)
|
|
end
|