Git Product home page Git Product logo

cpp-makefile-template's Introduction

C++ Creation Template

This repository was created with the intention of helping whatever person that doesn't want to manually create the cpp and hpp files.

The Makefile itself create both files in a ortodox canonical form (this includes a constructor and destructor without parameters, an implemented copy constructor and an assignation operator overridden). This Makefile also compiles and execute a basic c++ project.

File generation rules

create_hpp class=name

Creates the header template of the class "name". If no classname is provided, the result classname is "class"

create_cpp class=name

Creates the class implementation template of the class "name". If no classname is provided, the result classname is "class"

create class=name

Creates both header and class implementation template files of the class "name". If no classname is provided, the result classname is "class"

Compilation rules

all

The default rule that generates the executable to be launch. Compiles the project with "c++" compiler and the following flags: -Wall -Wextra -Werror -std=c++98

clean

Clean all the object files (*.o files)

fclean

Full clean the project. Removes the object files and the executable file

re

Recompiles the project. This rule only executes "fclean" and "all" rules, in that order

e

Recompiles and executes the project. This rule only executes "re" rule and the executable

cpp-makefile-template's People

Contributors

jdomingu98 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.