Skip to content
/ c-env Public template

Template repository for C projects using makefile and GCC to compile on Linux.

License

Notifications You must be signed in to change notification settings

TotemaM/c-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project

Table of content

Prerequisits

  • GNU Make
  • GCC

Compiling targets

Command Description
make Compile main program and test environment
make prog Compile main program
make test Compile test environment and linking it with main program components
make clear Delete all previous compiled files
make lsan Compile main and test environment with address and memory leak sanitizers
make tsan Compile main and test environment with thread sanitizer
make prod Compile main program only with level 3 optimization flag

It's recommended to make clear before compiling with different flags to avoid bad linkings.

Execute

The main program and test executable are both compiled inside the out directory.

About

Template repository for C projects using makefile and GCC to compile on Linux.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published