Benutzer-Werkzeuge

Webseiten-Werkzeuge


becki:linux:build_tools

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
becki:linux:build_tools [2011-11-02 09:13]
becki
becki:linux:build_tools [2018-03-29 10:12] (aktuell)
becki
Zeile 23: Zeile 23:
 <note important>​indent needs files with Unix line ends (''​\n''​) as input. Files with other line endings can be converted with ''​fromdos''​ or ''​sbfromdos''</​note>​ <note important>​indent needs files with Unix line ends (''​\n''​) as input. Files with other line endings can be converted with ''​fromdos''​ or ''​sbfromdos''</​note>​
  
-===== gcc / g++ ==+===== GNU gcc / g++ ==
  
-[[http://​gcc.gnu.org/​onlinedocs/​gcc/​|Manual]] (Current Development)+See [[GNU GCC]]
  
-  * -c : Do not link +===== GNU Gprof ==
-  * -o file : Place output in file file. Applies to object files and executables +
-  * -Wall : enable most warnings+
  
-See also: [[http://​www.thegeekstuff.com/​2011/​10/​c-program-to-an-executable/​|Journey of a C Program to Linux Executable in 4 Stages]]+See [[GNU Gprof]]
  
 ===== Make == ===== Make ==
  
-[[http://​www.gnu.org/​software/​make/​manual/​html_node/​|Manual]]+See [[GNU Make]]
  
-=== Misc ==+===== pkg-config ​==
  
-  * A line beginning with ''#''​ is a comment +http://people.freedesktop.org/​~dbn/​pkg-config-guide.html
-  * 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 == +
- +
-<code bash> +
-a = Peter +
-c =  $(a) +
-d := $(a) +
-a = Franz +
- +
-test: +
-        @echo c expands to $(c) # Franz +
-        @echo d expands to $(d) # Peter +
-</​code>​+
  
 ===== Automake == ===== Automake ==
becki/linux/build_tools.1320225226.txt.gz · Zuletzt geändert: 2011-11-02 09:13 (Externe Bearbeitung)

Impressum - Datenschutzerklärung