#!/usr/bin/perl
use strict;
use ExtUtils::MakeMaker qw(WriteMakefile);
my @INC = (' -Isrc -Iinclude');
WriteMakefile(
NAME => 'Encode::Detect::Detector',
VERSION_FROM => 'Detector.pm',
PREREQ_PM => {},
ABSTRACT_FROM => 'Detector.pm',
AUTHOR => '',
INC => join(' ', @INC),
C => [ glob 'src/*.cpp Detector.c' ],
H => [ glob 'src/*.h' ],
OBJECT => q/$(O_FILES)/,
);
####
$ perl Makefile.PL CC="cl -TP"
$ nmake
####
$ copy *.obj src
$ nmake
####
$ copy Detect.pm blib\lib\Encode
$ nmake test