### ----------------------------------------------------
### -- Term::termios
### -- Licenses: Artistic-2.0
### -- Authors: Karl Rune Nilsen
### -- File: src/Configure.raku
### ----------------------------------------------------
#!/usr/bin/env raku
use v6;
use LibraryMake;

my $libname = 'myhelper';
my %vars = get-vars('.');
%vars{$libname} = $*VM.platform-library-name($libname.IO);
mkdir "resources" unless "resources".IO.e;
mkdir "resources/libraries" unless "resources/libraries".IO.e;
process-makefile('.', %vars);
shell(%vars<MAKE>);

say "Configure completed! You can now run '%vars<MAKE>' to build lib$libname.";


