1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Compile extension with houdini

This commit is contained in:
Takashi Kokubun 2015-11-28 01:42:53 +09:00
parent b3e1cbccbb
commit db25217032

View file

@ -1,4 +1,14 @@
require 'mkmf' require 'mkmf'
houdini_dir = File.expand_path('./houdini', __dir__)
$INCFLAGS << " -I#{houdini_dir}"
$CFLAGS << ' -Wall -Wextra' $CFLAGS << ' -Wall -Wextra'
$srcs = %w[hamlit.c]
Dir[File.join(houdini_dir, '*.c')].each do |path|
src = File.basename(path)
FileUtils.ln_s(File.join(houdini_dir, src), src, force: true)
$srcs << src
end
create_makefile('hamlit/hamlit') create_makefile('hamlit/hamlit')