mirror of
https://github.com/tailix/libkernaux.git
synced 2024-10-30 11:54:01 -04:00
28 lines
684 B
Ruby
28 lines
684 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'mkmf'
|
|
|
|
$CFLAGS += ' -pedantic -Wall -Wextra'
|
|
|
|
# FIXME: temporary hack to fix FreeBSD build
|
|
$CPPFLAGS += ' -I/usr/local/include'
|
|
|
|
raise 'libkernaux not found' unless have_library 'kernaux'
|
|
|
|
raise 'kernaux_assert_do not found' unless have_func 'kernaux_assert_do'
|
|
unless have_var 'kernaux_assert_cb', 'kernaux.h'
|
|
raise 'kernaux_assert_cb not found'
|
|
end
|
|
|
|
have_func 'kernaux_utoa'
|
|
have_func 'kernaux_itoa'
|
|
have_func 'kernaux_utoa10'
|
|
have_func 'kernaux_itoa10'
|
|
have_func 'kernaux_utoa16'
|
|
have_func 'kernaux_itoa16'
|
|
|
|
have_func 'kernaux_snprintf'
|
|
|
|
have_func 'kernaux_cmdline'
|
|
|
|
raise 'can\'t create Makefile' unless create_makefile 'kernaux/default'
|