pass arguments through to Listeners for processing with Getopt::Long
[lwes-perl.git] / Makefile.PL
blob6242d425598770d5296fe05cec4d8ec4d560ac2e
1 use ExtUtils::MakeMaker;
3 my $pkg_cfg = "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig";
4 my $lwes_libs = `$pkg_cfg pkg-config lwes-0 --libs`;
5 my $lwes_cflags = `$pkg_cfg pkg-config lwes-0 --cflags`;
7 WriteMakefile(
8     'NAME'           => 'LWES',
9     'VERSION'        => '0.4.0',
10     'EXE_FILES'      => [ "lwes-perl-event-listener",
11                           "lwes-perl-journal-listener" ],
12     'PREREQ_PM'      => {
13                           'IO::Socket::Multicast' => 0.98,
14                         },
15     'LIBS'           => $lwes_libs,
16     'INC'            => $lwes_cflags,
17     'OBJECT'         => 'lwes_wrap.o',
18     'dynamic_lib'    => { 'OTHERLDFLAGS' => "-llwes -lm"},