Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:build_tools

Dies ist eine alte Version des Dokuments!


Inhaltsverzeichnis

Build Tools

This page about How to build applications on Linux. ISO C and its standard library are described in C Tips. POSIX/Linux specific features and enhancements are described in Linux Programming.

gcc / g++

Manual (Current Development)

  • -c : Do not link
  • -o file : Place output in file file. Applies to object files and executables
  • -Wall : enable most warnings

Make

Misc

  • A line beginning with # is a comment
  • The variable $* contains FIXME
  • The variable $@ or $(@) contains the name of the target (tested)
  • '@' at the beginning of a command runs the command but does not copy the line to stdout
  • Implicit rules example: file.o is made automatically from file.c with a command of the form `$(CC) -c $(CPPFLAGS) $(CFLAGS)'
  • To ignore errors in a command line, write a `-' at the beginning of the line's text (after the initial tab).
  • make -n or make --dry-run - Don't actually run any commands; just print them.

Variable assignment

a = Peter
c =  $(a)
d := $(a)
a = Franz
 
test:
        @echo c expands to $(c) # Franz
        @echo d expands to $(d) # Peter

Automake

Manual

[Makefile.am] → (automake) ⇒ [Makefile.in]

Autoconf

Manual

                               [Makefile.in]
                                     ⇓
[configure.ac] → (autoconf) ⇒ [(configure)] ⇒ [Makefile] -> make ⇒ ...
Cookies helfen bei der Bereitstellung von Inhalten. Diese Website verwendet Cookies. Mit der Nutzung der Website erklären Sie sich damit einverstanden, dass Cookies auf Ihrem Computer gespeichert werden. Außerdem bestätigen Sie, dass Sie unsere Datenschutzerklärung gelesen und verstanden haben. Wenn Sie nicht einverstanden sind, verlassen Sie die Website. Weitere Information
becki/linux/build_tools.1279877717.txt.gz · Zuletzt geändert: 2010-07-23 09:35 von becki

Impressum - Datenschutzerklärung