Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nathanwiegand
Created February 22, 2010 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanwiegand/311237 to your computer and use it in GitHub Desktop.
Save nathanwiegand/311237 to your computer and use it in GitHub Desktop.
SHELL=bash
CC=gcc
CFLAGS=-Wall -pedantic
all: example
newbinary: newversion.c
$(CC) $(CFLAGS) -o $@ $<
example: original.c newbinary
$(CC) $(CFLAGS) -o $@ $<
run: example
./example
clean:
rm example newbinary tmpoutput
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment