Fix Win32 build. VC++ 6.0 and 7.0 now use the thread-safe code.
[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 # This file is current set to compile with ActiveState 5xx builds
6 # (perl 5.005_03). Hopefully this lowest common denominator
7 # approach will work with newer ActiveState builds (i.e. 6xx).
8 WriteMakefile(
9     'NAME'      => 'RRDs',
10     'VERSION_FROM' => 'RRDs.pm',
11 #    'DEFINE'      => "-DPERLPATCHLEVEL=$Config{PATCHLEVEL}",
12     'DEFINE'       => "-DPERLPATCHLEVEL=5",
13
14    'INC'        => '-I../../src/ -I../../libraries/freetype-2.0.5/include -I ../../libraries/libart_lgpl-2.3.7 -I ../../libraries/zlib-1.1.4 -I ../../libraries/libpng-1.2.0',
15    'OPTIMIZE' => '-O2 -MT',
16 # change this path to refer to your libc.lib
17 # keep one line for MSVC++ 6.0 and one for 7.0
18     'MYEXTLIB'  => '"' . $ENV{'MSVCDir'} . '/lib/libc.lib" ../../src/release/rrd.lib ../../libraries/libart_lgpl-2.3.7/release/libart.lib ../../libraries/zlib-1.1.4/release/zlib.lib ../../libraries/libpng-1.2.0/release/png.lib ../../libraries/freetype-2.0.5/release/freetype.lib', 
19 #   'MYEXTLIB'  => '"$(VCINSTALLDIR)/vc7/lib/libcmt.lib" ../../src/release/rrd.lib ../../libraries/libart_lgpl-2.3.7/release/libart.lib ../../libraries/zlib-1.1.4/release/zlib.lib ../../libraries/libpng-1.2.0\release\png.lib ../../libraries/freetype-2.0.5/release/freetype.lib', 
20     'realclean'    => {FILES => 't/demo?.rrd t/demo?.png' },
21     ($] ge '5.005') ? (
22         'AUTHOR' => 'Tobias Oetiker (oetiker@ee.ethz.ch)',
23         'ABSTRACT' => 'Round Robin Database Tool',
24     ) : ()
25
26
27 );