define cwd where we need it and not outside
[rrdtool.git] / bindings / perl-shared / ntmake.pl
1 use ExtUtils::MakeMaker;
2 use Config;
3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence
4 # the contents of the Makefile that is written.
5 # Run VCVARS32.BAT before generating makefile/compiling.
6 WriteMakefile(
7     'NAME'      => 'RRDs',
8     'VERSION_FROM' => 'RRDs.pm',
9 #    'DEFINE'      => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",
10 # keep compatible w/ ActiveState 5xx builds
11     'DEFINE'       => "-DPERLPATCHLEVEL=5",
12
13    'INC'        => '-I../../src/ "-I/Program Files/GnuWin32/include"',
14 # Since we are now using GnuWin32 libraries dynamically (instead of static
15 # complile with code redistributed with rrdtool), use /MD instead of /MT.
16 # Yes, this means we need msvcrt.dll but GnuWin32 dlls already require it
17 # and it is available on most versions of Windows.
18    'OPTIMIZE' => '-O2 -MD',
19    'LIBS'  => '../../src/release/rrd.lib "/Program Files/GnuWin32/lib/libart_lgpl.lib" "/Program Files/GnuWin32/lib/libz.lib" "/Program Files/GnuWin32/lib/libpng.lib" "/Program Files/GnuWin32/lib/libfreetype.lib"', 
20     'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' },
21     ($] ge '5.005') ? (
22         'AUTHOR' => 'Tobias Oetiker (tobi@oetiker.ch)',
23         'ABSTRACT' => 'Round Robin Database Tool',
24     ) : ()
25
26
27 );