Skip to content

Instantly share code, notes, and snippets.

@twright
Created September 22, 2012 01:14
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 twright/3764768 to your computer and use it in GitHub Desktop.
Save twright/3764768 to your computer and use it in GitHub Desktop.
C Programming Language -- Calculator Makefile
CC = gcc
CFLAGS = -Wall -pedantic -O3 -flto -fno-builtin -unsafe-loop-optimizations -Wunsafe-loop-optimizations -ffast-math -funsafe-math-optimizations -msse3
OBJECTS = bufgetch.o getop.o stack.o
calc:
$(CC) -lm -fwhole-program $(CFLAGS) -o calc $(OBJECTS)
calc.o: getop.o stack.o
getop.o: bufgetch.o
.PHONY: clean
clean:
-rm $(OBJECTS) calc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment