makemaker.html
来自「perl教程」· HTML 代码 · 共 1,694 行 · 第 1/5 页
HTML
1,694 行
<p>Used by 'make install' which copies files from INST_SCRIPT to this
directory if INSTALLDIRS=perl.</p>
</dd>
</li>
<dt><strong><a name="item_installsitearch">INSTALLSITEARCH</a></strong>
<dd>
<p>Used by 'make install', which copies files from INST_ARCHLIB to this
directory if INSTALLDIRS is set to site (default).</p>
</dd>
</li>
<dt><strong><a name="item_installsitebin">INSTALLSITEBIN</a></strong>
<dd>
<p>Used by 'make install', which copies files from INST_BIN to this
directory if INSTALLDIRS is set to site (default).</p>
</dd>
</li>
<dt><strong><a name="item_installsitelib">INSTALLSITELIB</a></strong>
<dd>
<p>Used by 'make install', which copies files from INST_LIB to this
directory if INSTALLDIRS is set to site (default).</p>
</dd>
</li>
<dt><strong><a name="item_installsiteman1dir">INSTALLSITEMAN1DIR</a></strong>
<dt><strong><a name="item_installsiteman3dir">INSTALLSITEMAN3DIR</a></strong>
<dd>
<p>These directories get the man pages at 'make install' time if
INSTALLDIRS=site (default). Defaults to
$(SITEPREFIX)/man/man$(MAN*EXT).</p>
</dd>
<dd>
<p>If set to 'none', no man pages will be installed.</p>
</dd>
</li>
<dt><strong><a name="item_installsitescript">INSTALLSITESCRIPT</a></strong>
<dd>
<p>Used by 'make install' which copies files from INST_SCRIPT to this
directory if INSTALLDIRS is set to site (default).</p>
</dd>
</li>
<dt><strong><a name="item_installvendorarch">INSTALLVENDORARCH</a></strong>
<dd>
<p>Used by 'make install', which copies files from INST_ARCHLIB to this
directory if INSTALLDIRS is set to vendor.</p>
</dd>
</li>
<dt><strong><a name="item_installvendorbin">INSTALLVENDORBIN</a></strong>
<dd>
<p>Used by 'make install', which copies files from INST_BIN to this
directory if INSTALLDIRS is set to vendor.</p>
</dd>
</li>
<dt><strong><a name="item_installvendorlib">INSTALLVENDORLIB</a></strong>
<dd>
<p>Used by 'make install', which copies files from INST_LIB to this
directory if INSTALLDIRS is set to vendor.</p>
</dd>
</li>
<dt><strong><a name="item_installvendorman1dir">INSTALLVENDORMAN1DIR</a></strong>
<dt><strong><a name="item_installvendorman3dir">INSTALLVENDORMAN3DIR</a></strong>
<dd>
<p>These directories get the man pages at 'make install' time if
INSTALLDIRS=vendor. Defaults to $(VENDORPREFIX)/man/man$(MAN*EXT).</p>
</dd>
<dd>
<p>If set to 'none', no man pages will be installed.</p>
</dd>
</li>
<dt><strong><a name="item_installvendorscript">INSTALLVENDORSCRIPT</a></strong>
<dd>
<p>Used by 'make install' which copies files from INST_SCRIPT to this
directory if INSTALLDIRS is set to is set to vendor.</p>
</dd>
</li>
<dt><strong><a name="item_inst_archlib">INST_ARCHLIB</a></strong>
<dd>
<p>Same as INST_LIB for architecture dependent files.</p>
</dd>
</li>
<dt><strong><a name="item_inst_bin">INST_BIN</a></strong>
<dd>
<p>Directory to put real binary files during 'make'. These will be copied
to INSTALLBIN during 'make install'</p>
</dd>
</li>
<dt><strong><a name="item_inst_lib">INST_LIB</a></strong>
<dd>
<p>Directory where we put library files of this extension while building
it.</p>
</dd>
</li>
<dt><strong><a name="item_inst_man1dir">INST_MAN1DIR</a></strong>
<dd>
<p>Directory to hold the man pages at 'make' time</p>
</dd>
</li>
<dt><strong><a name="item_inst_man3dir">INST_MAN3DIR</a></strong>
<dd>
<p>Directory to hold the man pages at 'make' time</p>
</dd>
</li>
<dt><strong><a name="item_inst_htmldir">INST_HTMLDIR</a></strong>
<dd>
<p>Directory to hold the html documentation at 'make' time</p>
</dd>
</li>
<dt><strong><a name="item_inst_script">INST_SCRIPT</a></strong>
<dd>
<p>Directory, where executable files should be installed during
'make'. Defaults to "./blib/script", just to have a dummy location during
testing. make install will copy the files in INST_SCRIPT to
INSTALLSCRIPT.</p>
</dd>
</li>
<dt><strong><a name="item_ld">LD</a></strong>
<dd>
<p>Program to be used to link libraries for dynamic loading.</p>
</dd>
<dd>
<p>Defaults to $Config{ld}.</p>
</dd>
</li>
<dt><strong><a name="item_lddlflags">LDDLFLAGS</a></strong>
<dd>
<p>Any special flags that might need to be passed to ld to create a
shared library suitable for dynamic loading. It is up to the makefile
to use it. (See <a href="../../lib/auto/ActivePerl/Config/lddlflags.html">lddlflags in the Config manpage</a>)</p>
</dd>
<dd>
<p>Defaults to $Config{lddlflags}.</p>
</dd>
</li>
<dt><strong><a name="item_ldfrom">LDFROM</a></strong>
<dd>
<p>Defaults to "$(OBJECT)" and is used in the ld command to specify
what files to link/load from (also see dynamic_lib below for how to
specify ld flags)</p>
</dd>
</li>
<dt><strong><a name="item_lib">LIB</a></strong>
<dd>
<p>LIB should only be set at <code>perl Makefile.PL</code> time but is allowed as a
MakeMaker argument. It has the effect of setting both INSTALLPRIVLIB
and INSTALLSITELIB to that value regardless any explicit setting of
those arguments (or of PREFIX). INSTALLARCHLIB and INSTALLSITEARCH
are set to the corresponding architecture subdirectory.</p>
</dd>
</li>
<dt><strong><a name="item_libperl_a">LIBPERL_A</a></strong>
<dd>
<p>The filename of the perllibrary that will be used together with this
extension. Defaults to libperl.a.</p>
</dd>
</li>
<dt><strong><a name="item_libs">LIBS</a></strong>
<dd>
<p>An anonymous array of alternative library
specifications to be searched for (in order) until
at least one library is found. E.g.</p>
</dd>
<dd>
<pre>
'LIBS' => ["-lgdbm", "-ldbm -lfoo", "-L/path -ldbm.nfs"]</pre>
</dd>
<dd>
<p>Mind, that any element of the array
contains a complete set of arguments for the ld
command. So do not specify</p>
</dd>
<dd>
<pre>
'LIBS' => ["-ltcl", "-ltk", "-lX11"]</pre>
</dd>
<dd>
<p>See ODBM_File/Makefile.PL for an example, where an array is needed. If
you specify a scalar as in</p>
</dd>
<dd>
<pre>
'LIBS' => "-ltcl -ltk -lX11"</pre>
</dd>
<dd>
<p>MakeMaker will turn it into an array with one element.</p>
</dd>
</li>
<dt><strong><a name="item_linktype">LINKTYPE</a></strong>
<dd>
<p>'static' or 'dynamic' (default unless usedl=undef in
config.sh). Should only be used to force static linking (also see
linkext below).</p>
</dd>
</li>
<dt><strong><a name="item_makeaperl">MAKEAPERL</a></strong>
<dd>
<p>Boolean which tells MakeMaker, that it should include the rules to
make a perl. This is handled automatically as a switch by
MakeMaker. The user normally does not need it.</p>
</dd>
</li>
<dt><strong><a name="item_makefile_old">MAKEFILE_OLD</a></strong>
<dd>
<p>When 'make clean' or similar is run, the $(FIRST_MAKEFILE) will be
backed up at this location.</p>
</dd>
<dd>
<p>Defaults to $(FIRST_MAKEFILE).old or $(FIRST_MAKEFILE)_old on VMS.</p>
</dd>
</li>
<dt><strong><a name="item_man1pods">MAN1PODS</a></strong>
<dd>
<p>Hashref of pod-containing files. MakeMaker will default this to all
EXE_FILES files that include POD directives. The files listed
here will be converted to man pages and installed as was requested
at Configure time.</p>
</dd>
</li>
<dt><strong><a name="item_man3pods">MAN3PODS</a></strong>
<dd>
<p>Hashref that assigns to *.pm and *.pod files the files into which the
manpages are to be written. MakeMaker parses all *.pod and *.pm files
for POD directives. Files that contain POD will be the default keys of
the MAN3PODS hashref. These will then be converted to man pages during
<code>make</code> and will be installed during <code>make install</code>.</p>
</dd>
</li>
<dt><strong><a name="item_map_target">MAP_TARGET</a></strong>
<dd>
<p>If it is intended, that a new perl binary be produced, this variable
may hold a name for that binary. Defaults to perl</p>
</dd>
</li>
<dt><strong><a name="item_myextlib">MYEXTLIB</a></strong>
<dd>
<p>If the extension links to a library that it builds set this to the
name of the library (see SDBM_File)</p>
</dd>
</li>
<dt><strong><a name="item_name">NAME</a></strong>
<dd>
<p>Perl module name for this extension (DBD::Oracle). This will default
to the directory name but should be explicitly defined in the
Makefile.PL.</p>
</dd>
</li>
<dt><strong><a name="item_needs_linking">NEEDS_LINKING</a></strong>
<dd>
<p>MakeMaker will figure out if an extension contains linkable code
anywhere down the directory tree, and will set this variable
accordingly, but you can speed it up a very little bit if you define
this boolean variable yourself.</p>
</dd>
</li>
<dt><strong><a name="item_noecho">NOECHO</a></strong>
<dd>
<p>Command so make does not print the literal commands its running.</p>
</dd>
<dd>
<p>By setting it to an empty string you can generate a Makefile that
prints all commands. Mainly used in debugging MakeMaker itself.</p>
</dd>
<dd>
<p>Defaults to <code>@</code>.</p>
</dd>
</li>
<dt><strong><a name="item_norecurs">NORECURS</a></strong>
<dd>
<p>Boolean. Attribute to inhibit descending into subdirectories.</p>
</dd>
</li>
<dt><strong><a name="item_no_meta">NO_META</a></strong>
<dd>
<p>When true, suppresses the generation and addition to the MANIFEST of
the META.yml module meta-data file during 'make distdir'.</p>
</dd>
<dd>
<p>Defaults to false.</p>
</dd>
</li>
<dt><strong><a name="item_no_vc">NO_VC</a></strong>
<dd>
<p>In general, any generated Makefile checks for the current version of
MakeMaker and the version the Makefile was built under. If NO_VC is
set, the version check is neglected. Do not write this into your
Makefile.PL, use it interactively instead.</p>
</dd>
</li>
<dt><strong><a name="item_object">OBJECT</a></strong>
<dd>
<p>List of object files, defaults to '$(BASEEXT)$(OBJ_EXT)', but can be a long
string containing all object files, e.g. "tkpBind.o
tkpButton.o tkpCanvas.o"</p>
</dd>
<dd>
<p>(Where BASEEXT is the last component of NAME, and OBJ_EXT is $Config{obj_ext}.)</p>
</dd>
</li>
<dt><strong><a name="item_optimize">OPTIMIZE</a></strong>
<dd>
<p>Defaults to <code>-O</code>. Set it to <code>-g</code> to turn debugging on. The flag is
passed to subdirectory makes.</p>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?