Skip to content

Instantly share code, notes, and snippets.

@Orpheon
Created November 12, 2011 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Orpheon/1361229 to your computer and use it in GitHub Desktop.
Save Orpheon/1361229 to your computer and use it in GitHub Desktop.
CC=gcc
CFLAGS=-O3 -Wall -std=c99
LIBS=-s
main.exe: main.o
${CC} -o main.exe main.o ${LIBS}
main.o: main.c
${CC} ${CFLAGS} -c -o main.o main.c
test: main.exe
main.exe
clean: rm *.o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment