Giter Site home page Giter Site logo

makefile-boilerplate's Introduction

Makefile Boilerplate

A starter config for standard C project with Makefile.

What? What can it do???

  • Auto build all source files in src folder
  • Auto linking all obj files to execute binary
  • Clean the project
  • Colored output, and it's awesome

Sound good! How do I use it?

It's very easy to use. All you need is make installed (and it's pre-installed in most of Unix and OS X system!).

With make, all you need to do is: build and clean.

Build

Build the project easily with:

make

All source files in src folder will be built and linked together to single executable demo binary file.

If you wish to change the output binary name, just change OUT variable to whatever you want.

OUT = demo

Clean

To cleanup your project, just type:

make clean

You're cool man! But I don't use C :(

You don't use C, huh? It's OK man, don't be so ashamed! You should try it next time.

But the good news is, you can use it anywhere you want!

With Makefile pre-configured. You can use it in any standard C projects, C++ projects, or even Ruby, NodeJS, PHP, C#, Java projects...

It's nothing more than a task based bash script.

Alright, how about license?

Since this one is nothing more than just a snippet, I don't care too much about licensing.

But if you asked, MIT.

By the way, I'm using something from the Makefile in tj/luna project.

P/S: The funny thing is, this README.md file is the largest file in this repository, LOL. I like to spend my time write up something helpful in my open source projects, so, I hope it will make you happy ^^!

makefile-boilerplate's People

Contributors

huytd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

arnaspet

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.