Examples and Templates for Using the Make Utility with C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md Update README.md Jul 6, 2014
app-template-example commit example files Jul 6, 2014
require-target-example
simple-example commit example files Jul 6, 2014

README.md

Example Makefiles

Examples and Templates for Using the Make Utility with C.

The examples in this repo are discissed in a blog post at Creating A Basic Make File for Compiling C Code

simple-example

The most basic example for compiling a silly hello world application.

app-specific-example

A basic template to use for creating makefiles for your specfic applciation(s). Simply swap your application name where TARGET is assigned the value hello in the example.

require-target-example

A special case for setting up a general makefile for use with varying single-file projects.

All of the examples are based upon setting up compilation for excercises using several common commpiler flags, and (in the example case) the harvard cs50 library as an external include. This is for illustration only, and you will likely want to remove the cs50 include and/or specify your own (one or many).