⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile.pl

📁 Verilog Parser in Perl
💻 PL
字号:
# DESCRIPTION: Perl ExtUtils: Type 'perl Makefile.PL' to create a Makefile for this package## Copyright 2000-2009 by Wilson Snyder.  This program is free software;# you can redistribute it and/or modify it under the terms of either the GNU# Lesser General Public License or the Perl Artistic License.require 5.005;use ExtUtils::MakeMaker;use Carp;use Config;sub MY::postamble {    my $out="";    # Note OPTIMIZE is passed from upper makefile, so this code needed there too.    if ($Config{osname} =~ /cygwin/i || $Config{archname} =~ /cygwin/i) {	# Cygwin ExtUtils::MakeMaker ignores our LIBS declaration and says	# "No library found for -lstdc++".  Force it.	$out .= "LDLOADLIBS += -lstdc++\n";	# Cygwin: High optimization causes g++ "out of memory"	$out .= "OPTIMIZE += -O\n";    }    $out .= "CCFLAGS += -Wall -Wno-unused -Werror\n" if $ENV{VERILATOR_AUTHOR_SITE};    $out .= "CCFLAGS  += $ENV{VERILOGPERL_CCFLAGS}\n" if defined $ENV{VERILOGPERL_CCFLAGS};    $out .= "OPTIMIZE += -Wno-unused\n" if $ENV{VERILATOR_AUTHOR_SITE};  # Makefile has another -Wall    $out .= "OPTIMIZE += $ENV{VERILOGPERL_CCFLAGS}\n" if defined $ENV{VERILOGPERL_CCFLAGS};    $out .= 'README: Verilog-Perl.pod	-$(RM_RF) $@	pod2text --loose $< > $@clean::	-$(RM_RF) simv .vpassert test_dir *.tmpdist: maintainer-copy distcheck README## Maintainer use:preexist:	svnorcvs nexists $(DISTNAME)_$(VERSION_SYM)	test -s READMEtag:	svnorcvs tag  $(DISTNAME)_$(VERSION_SYM)maintainer-diff:	svnorcvs diff $(DISTNAME)_$(VERSION_SYM)maintainer-dist: preexist dist tag	svnorcvs release $(DISTVNAME).tar.gzmaintainer-copy:maintainer-clean: distclean	-$(RM_RF) README Makefile MANIFEST.bak $(MAKEFILE_OLD)';    return $out;}my $fail;local $! = undef;`flex --version`; if ($?) { $fail=1; warn "\n%Error: 'flex' must be installed to build\n"; }`bison --version`; if ($?) { $fail=1; warn "\n%Error: 'bison' must be installed to build\n"; }`g++ --version`; if ($?) { $fail=1; warn "\n%Error: 'gcc/g++' must be installed to build\n"; }if ($fail) {    if ($ENV{AUTOMATED_TESTING}) {	exit(0);    } else {	die "%Error: Exiting due to above missing dependencies.\n";    }}WriteMakefile(	      DISTNAME  => 'Verilog-Perl',	      NAME      => 'Verilog::Language',	      AUTHOR	=> 'Wilson Snyder <wsnyder@wsnyder.org>',	      ABSTRACT  => 'Verilog language utilities and parsing',	      VERSION_FROM  => 'Language.pm',	      NO_META	=> 1,	      #OPTIMIZE	=> '-ggdb',	      PREREQ_PM => {'Pod::Usage' => 1,			    'Data::Dumper' => 1,			    'Test' => 1,			    'warnings' => 1,			    #'Test::Pod' => 1,  # Required only for author tests			    #'Test::Perl::Critic' => 1,  # Required only for author tests			},	      PMLIBDIRS => ['lib', 'Verilog', 'Netlist',],	      EXE_FILES => [qw( vrename vpassert vppreproc vhier vsplitmodule )],	      'clean'	=> {FILES => qw (test_dir signals.vrename .vpassert simv ),},	      'dist'    => {COMPRESS => 'gzip -9f',			    SUFFIX   => '.gz',			    DIST_DEFAULT => 'README all tardist',			},	      );

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -