Dies ist eine alte Version des Dokuments!
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.
Use indent to constistently format your C-code. Here a configuration example for indent
to be put in $HOME/.indent.pro
:
/* Default Config: Use Kernighan & Ritchie coding style: */ --k-and-r-style /* My minor variants to Kernighan & Ritchie Style: */ --line-length 80 /* Because default is 75 */ --no-tabs /* Use spaces instead of tabs */ -brf /* Place function opening brace after function declaration */
Usage:
find -name '*.c' -print0 | xargs -0 indent
\n
) as input. Files with other line endings can be converted with fromdos
or sbfromdos
Manual (Current Development)
#
is a comment$*
contains $@
or $(@)
contains the name of the target (tested)file.o
is made automatically from file.c
with a command of the form `$(CC) -c $(CPPFLAGS) $(CFLAGS)'make -n
or make --dry-run
- Don't actually run any commands; just print them.a = Peter c = $(a) d := $(a) a = Franz test: @echo c expands to $(c) # Franz @echo d expands to $(d) # Peter
[Makefile.am] → (automake) ⇒ [Makefile.in]
[Makefile.in] ⇓ [configure.ac] → (autoconf) ⇒ [(configure)] ⇒ [Makefile] -> make ⇒ ...