makefile commit
authorAsh Tyndall <git@atyndall.net>
Fri, 7 Oct 2011 14:46:08 +0000 (22:46 +0800)
committerAsh Tyndall <git@atyndall.net>
Fri, 7 Oct 2011 14:46:08 +0000 (22:46 +0800)
Makefile
scene.c

index 02a1589..d410e7c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,5 +27,4 @@ CFLAGS += -O3 -Wall -std=c99
 all: scene\r
 \r
 scene: scene.c bitmap.c bitmap.h\r
-       gcc $(CFLAGS) -o scene scene.c bitmap.c $(LIBS)\r
-  git commit -m "makefile commit"\r
+       gcc $(CFLAGS) -o scene scene.c bitmap.c $(LIBS) && git commit -a -m "makefile commit"\r
diff --git a/scene.c b/scene.c
index 251c556..b12ed15 100644 (file)
--- a/scene.c
+++ b/scene.c
@@ -226,11 +226,11 @@ void makeMenu() {
   object = glutCreateMenu(processObjectEvents);\r
   for ( int i = 0; objectMenuEntries[i]; i++ ) {\r
     glutAddMenuEntry( objectMenuEntries[i], i );\r
-\r
+  }\r
   \r
 \r
 \r
-  glutCreateMenu(mymenu);\r
+  glutCreateMenu(processMainEvents);\r
   glutAddMenuEntry("Exit", 99);\r
   glutAttachMenu(GLUT_RIGHT_BUTTON);\r
 }\r

UCC git Repository :: git.ucc.asn.au