require "mkmf" EXT_H = %w[ arith_utils.h congruences.h prime_gen.h ] EXT_C = %w[ arith_utils.c congruence_solver.c congruences.c prime_gen.c ] EXT_H.each do |fname| unless File::exist? fname raise "Ext header #{fname} does not exist in #{Dir::pwd}" end end EXT_C.each do |fname| unless File::exist? fname raise "Ext file #{fname} does not exist in #{Dir::pwd}" end end create_makefile "congruence_solver/congruence_solver"