X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=Makefile;h=1544bf9e39a121cc858ec55a09471d6300612452;hp=55dba6bdf51aa89cb3af5596b553719341172b35;hb=88bb839df3fea6aad76f0b19b30da46748d52da6;hpb=1f4718a29c0c386bd93e10f88dce8b9bb2f171b5 diff --git a/Makefile b/Makefile index 55dba6b..1544bf9 100644 --- a/Makefile +++ b/Makefile @@ -20,11 +20,17 @@ endif LIBS += -lglut -lGLU -lGL -CFLAGS += -O3 -Wall -std=c99 +CFLAGS += -O3 -Wall -std=c99 -g .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 + +open: scene.c bitmap.c bitmap.h + (nice -n 19 ./scene &) && echo