Skip to content

Instantly share code, notes, and snippets.

@pete
Created August 17, 2010 18:53
Show Gist options
  • Select an option

  • Save pete/531432 to your computer and use it in GitHub Desktop.

Select an option

Save pete/531432 to your computer and use it in GitHub Desktop.
# By popular request[1], a simple Makefile. It turns one .c file into one
# executable.
# Put the name of the targets here:
TARGETS = hello_world
all: $(TARGETS)
%: %.c
cc $(CFLAGS) $< -o $@
# 1. Or repeated requests from one person.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment