App-a2p

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN


WriteMakefile(%WriteMakefileArgs);

package MY;
use Config;

sub postamble {
	my $self = shift;
	my $a2p = $self->catfile('$(INST_BIN)', 'a2p$(EXE_EXT)');
	my @ret = (
		$self->SUPER::postamble,
		'OBJ = hash$(OBJ_EXT) str$(OBJ_EXT) util$(OBJ_EXT) walk$(OBJ_EXT) a2p$(OBJ_EXT)',
		'',
		"$a2p : \$(OBJ)"
	);
	if ($^O eq 'MSWin32' && $Config{cc} =~ /^cl/) {
		push @ret, map { $_ eq '<<' ? $_ : "\t$_" }
		'$(LD) -subsystem:console -out:$@ @<<',
		'$(LDFLAGS) $(LDLOADLIBS) $(OBJ)',
		'<<',
		'if exist $@.manifest mt -nologo -manifest $@.manifest -outputresource:$@;1',



( run in 0.498 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )