X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=Makefile;h=3ba146de73e4abca7d9ed5e6f014f0980510e48f;hp=55dba6bdf51aa89cb3af5596b553719341172b35;hb=6a7fd6316192537bf177867f3be0b89a54d3546d;hpb=1f4718a29c0c386bd93e10f88dce8b9bb2f171b5 diff --git a/Makefile b/Makefile index 55dba6b..3ba146d 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,20 @@ endif LIBS += -lglut -lGLU -lGL -CFLAGS += -O3 -Wall -std=c99 +CFLAGS += -ggdb -Wall -std=c99 .PHONY: all -all: scene +all: scene commit open scene: scene.c bitmap.c bitmap.h - gcc $(CFLAGS) -o scene scene.c bitmap.c $(LIBS) && git commit -a -m "makefile commit" && ./scene & + gcc $(CFLAGS) -o scene scene.c bitmap.c $(LIBS) + +commit: scene.c bitmap.c bitmap.h + git commit -a --allow-empty-message --message="" --untracked-files=no + +clean: + rm scene + +open: + nice -n 19 ./scene