Sha256: 9482a93bf4a1919f803edb5f4e7373bedd623b61b49c177a1125e2996f38875d

Contents?: true

Size: 776 Bytes

Versions: 1

Compression:

Stored size: 776 Bytes

Contents

require 'mkmf'

LIBDIR      = RbConfig::CONFIG['libdir']
INCLUDEDIR  = RbConfig::CONFIG['includedir']

if RbConfig::CONFIG['CC'] == 'clang'
  $CFLAGS="#{$CFLAGS} -fbracket-depth=512 -DNDEBUG=1"
  $CXXFLAGS="#{$CXXFLAGS} -fbracket-depth=512 -DNDEBUG=1"
else
  $CFLAGS="#{$CFLAGS} -std=c99 -fbracket-depth=512 -DNDEBUG=1"
  $CXXFLAGS="#{$CXXFLAGS} -std=c99 -fbracket-depth=512 -DNDEBUG=1"
end

HEADER_DIRS = [
  File.expand_path('../mmd', __FILE__),
  File.expand_path('../mmd/include', __FILE__),
  INCLUDEDIR,
  '/usr/include'
]

dir_config('multi_markdown', HEADER_DIRS, [LIBDIR])

find_header('libMultiMarkdown.h')
find_header('d_string.h')
find_header('stdio.h')

$objs = Dir.glob('**/*.c').map { |s| s.gsub(/\.c$/, ".o") }

create_header
create_makefile('multi_markdown')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rmultimarkdown-6.4.0.2 ext/extconf.rb