Skip to content

ucabaleiro/simple-C-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-C-template

Quick setup template for small C projects. Better suited for VS Code users.

Prerequisites:

  • Make.
  • A bash shell.

Setup (in the makefile):

Mandatory:

  • Change the PROGRAM macro to the name of your program.
  • Change the FILE_EXT macro to the file extension you want for the outfile (can be left blank).

Optional (depends on your project):

  • Add the corresponding libraries to the macro LIBS if needed.
  • You can change the compiler in the CC macro.
  • You can add compiler flags in the CFLAG macro.

How to use:

In the same directory than the makefile file, use the command make in the console to compile the program, make run to re-compile and run and make clean to get rid of the *.o files and the executable. In case you want to make your own makefile, refer to the documentation.

TO-DO:

  • Add VSC tasks:
    • Launch.
    • Build.
    • Debug.

About

Quick setup template for small C projects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published