Skip to content

zlatozar/c_lang_project

Repository files navigation

C project template

Needed tools

  • git
  • gcc
  • autotools (automake and autoconf)
  • libtool
  • make
  • lex/yacc
  • valgrind
  • cppcheck
  • astyle (manual build)
  • fortune

Build

Require autotools and libtools.

$ sudo dnf install autoconf automake libtool
$ ./bootstrap.sh
$ make
$ make check cppcheck
$ make help

Optional you can use bear to make compilation database. bear will create the compile_commands.json.

# From project root
$ make clean
$ bear -- make

Dependencies

Unit Testing

greatest

Protothreads (co-routines)

pt.h

Tools

  1. Doxygen
  2. Valgrind
  3. Cppcheck (use linux package)
  4. AStyle