Roland Ver. 4.5 Informações Técnicas Página 167

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 212
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 166
Chapter 15: Makefile Conventions 157
srcdir The directory for the sources being compiled. The value of this variable is
normally inserted by the configure shell script. (If you are using Autoconf,
use srcdir = @srcdir@’.)
For example:
# Common prefix for installation directories.
# NOTE: This directory must exist when you start the install.
prefix = /usr/local
datarootdir = $(prefix)/share
datadir = $(datarootdir)
exec_prefix = $(prefix)
# Where to put the executable for the command ‘gcc’.
bindir = $(exec_prefix)/bin
# Where to put the directories used by the compiler.
libexecdir = $(exec_prefix)/libexec
# Where to put the Info files.
infodir = $(datarootdir)/info
If your program installs a large number of files into one of the standard user-specified
directories, it might be useful to group them into a subdirectory particular to that program.
If you do this, you should write the install rule to create these subdirectories.
Do not expect the user to include the subdirectory name in the value of any of the
variables listed above. The idea of having a uniform set of variable names for installation
directories is to enable the user to specify the exact same values for several different GNU
packages. In order for this to be useful, all the packages must be designed so that they will
work sensibly when the user does so.
At times, not all of these variables may be implemented in the current release of Autoconf
and/or Automake; but as of Autoconf 2.60, we believe all of them are. When any are
missing, the descriptions here serve as specifications for what Autoconf will implement. As
a programmer, you can either use a development version of Autoconf or avoid using these
variables until a stable release is made which supports them.
15.6 Standard Targets for Users
All GNU programs should have the following targets in their Makefiles:
all Compile the entire program. This should be the default target. This target need
not rebuild any documentation files; Info files should normally be included in
the distribution, and DVI (and other documentation format) files should be
made only when explicitly asked for.
By default, the Make rules should compile and link with -g’, so that executable
programs have debugging symbols. Otherwise, you are essentially helpless in
the face of a crash, and it is often far from easy to reproduce with a fresh build.
install Compile the program and copy the executables, libraries, and so on to the file
names where they should reside for actual use. If there is a simple test to verify
that a program is properly installed, this target should run that test.
Do not strip executables when installing them. This helps eventual debugging
that may be needed later, and nowadays disk space is cheap and dynamic loaders
typically ensure debug sections are not loaded during normal execution. Users
that need stripped binaries may invoke the install-strip target to do that.
Vista de página 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 211 212

Comentários a estes Manuais

Sem comentários