# frozen-string-literal: true
require 'mkmf'

$CFLAGS << ' -Wall -W'
$CXXFLAGS << ' -Wall -W -std=c++03'
houdini_dir = File.expand_path('../../vendor/houdini', __dir__)
$INCFLAGS << " -I#{houdini_dir}"

$srcs = %w[attribute_builder.cc]
%w[
  buffer.c
  houdini_html_e.c
].each do |c|
  FileUtils.ln_s(File.join(houdini_dir, c), c, force: true)
  $srcs << c
end

create_makefile('faml/attribute_builder')

# frozen-string-literal: true
require 'mkmf'

$CFLAGS << ' -Wall -W'
$CXXFLAGS << ' -Wall -W -std=c++98'
houdini_dir = File.expand_path('../../vendor/houdini', __dir__)
$INCFLAGS << " -I#{houdini_dir}"

$srcs = %w[attribute_builder.cc]
%w[
  buffer.c
  houdini_html_e.c
].each do |c|
  FileUtils.ln_s(File.join(houdini_dir, c), c, force: true)
  $srcs << c
end

create_makefile('faml/attribute_builder')

Use -std=c++98 for old compilers
Use -std=c++98 for old compilers
