diff --git a/src/bindings/perl/Makefile.PL b/src/bindings/perl/Makefile.PL new file mode 100644 index 0000000000000000000000000000000000000000..c9bf9db947a5cd9637de62b816574b7fb0e77009 --- /dev/null +++ b/src/bindings/perl/Makefile.PL @@ -0,0 +1,15 @@ +use ExtUtils::MakeMaker; +use File::Basename; +use Config; + +# Scons hack... +chdir(dirname($0)); + +WriteMakefile( + NAME => "hammer", + LIBS => ["-lhammer"], + OBJECT => 'hammer_wrap.o', + INC => '-I../..', + CCFLAGS => "$Config{ccflags} -DSWIG -DHAMMER_INTERNAL__NO_STDARG_H -std=gnu99", + ); + diff --git a/src/bindings/perl/README.md b/src/bindings/perl/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b2f7442a99905862da3cc1776c0cdc691e2b2a17 --- /dev/null +++ b/src/bindings/perl/README.md @@ -0,0 +1,9 @@ +Perl Hammer bindings +==================== + +To build and run these bindings, you will need to have +ExtUtils::MakeMaker and make installed. On a Debian system, this just +means that you need perl installed. On a lesser Linux distribution, +this may be all you need, but you're on your own. On Windows or +another UNIX, you're *really* on your own (until we get PRs with +better instructions). \ No newline at end of file