Skip to content

Makefile for c++ projects on liunx supporting src, include and build directories

Notifications You must be signed in to change notification settings

ibrahim317/cpp-makefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Make

Make is a build automation tool that automatically builds executable programs and libraries from source code by reading files called Makefiles, which specify how to derive the target program.

Features supported

By using this Makefile template one can create main.cpp as an entiry point, src directory for source files and include directory for header files

Setup

To start on your project:

  1. First make sure that you are in a ⚠️ empty directory ⚠️ otherwise running make setup will cause the deletion of all files in the current direcotry.
  2. Clone the repo.
  3. Run make setup which removes both the connection to this repo and the README.md file, then it creates main.cpp file + src, include and build directories which are the defualt directory struture for this build system.

Building your project

By adding the main function into main.cpp and (if needed) source files into src one can run make which will creates an executable named app this name (eg app) could be changed by assign diffrante value for the MAIN varibale in the Makefile

About

Makefile for c++ projects on liunx supporting src, include and build directories

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published