Skip to content

Instantly share code, notes, and snippets.

@hadrianw
Created March 13, 2017 14:06
Show Gist options
  • Select an option

  • Save hadrianw/ee3393e294ef83706b9345b69880e167 to your computer and use it in GitHub Desktop.

Select an option

Save hadrianw/ee3393e294ef83706b9345b69880e167 to your computer and use it in GitHub Desktop.
Two line Makefile for a directory full of single file basic programs. Usage: make binary-name
.c: Makefile
gcc -std=c99 -pedantic -Wall -Wextra $< -o $@
@hadrianw
Copy link
Copy Markdown
Author

It should work on GNU and BSD Make.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment