X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=Makefile;h=7b4da1812221bf2362c035a5e7167484ff16c6fa;hp=98265c2d9d200791be2d848fee50cabb1d003949;hb=5fbfd6dc38d01bb09013ab5b59085632aaa8de7a;hpb=5d5f9edd4b8cf6eb14342c2edafbb450697a4693 diff --git a/Makefile b/Makefile index 98265c2..7b4da18 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,18 @@ endif LIBS += -lglut -lGLU -lGL -CFLAGS += -O3 -Wall -std=c99 +CFLAGS += -ggdb -Wall -std=c99 .PHONY: all -all: scene +all: scene commit 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 +