-define MinCyg_GCC\r
-sed -n /'^gcc version '/s',.*\<\([A-Za-z]*\)\> \(special\|experimental\).*',\\1,p\r
-endef\r
-define Any_GCC\r
-sed -n /'^gcc version '/s',.*\<\([A-Za-z]*\)\>.*',\\1,p\r
-endef\r
-\r
-ASK_SHELL_FIND_GCC := $(shell gcc -v 2>&1 | $(MinCyg_GCC))\r
- ifeq "$(ASK_SHELL_FIND_GCC)" ""\r
-ASK_SHELL_FIND_GCC := $(shell gcc -v 2>&1 | $(Any_GCC))\r
- endif\r
- ifneq "$(ASK_SHELL_FIND_GCC)" ""\r
-GCC_FLAVOR := $(strip $(ASK_SHELL_FIND_GCC))\r
- endif\r
-\r
-ifeq "$(GCC_FLAVOR)" "cygming"\r
-CFLAGS += -mno-cygwin \r
-override LIBS += -lglut32 -lglu32 -lopengl32\r
-endif\r
-\r
-LIBS += -lglut -lGLU -lGL\r
-\r
-CFLAGS += -ggdb -Wall -std=c99 \r
-\r
-.PHONY: all\r
-\r
-all: scene commit\r
-\r
-scene: scene.c bitmap.c bitmap.h\r
- gcc $(CFLAGS) -o scene scene.c bitmap.c $(LIBS)\r
-\r
-commit: scene.c bitmap.c bitmap.h\r
- git commit -a --allow-empty-message --message="" --untracked-files=no\r
-\r
-clean:\r
- rm scene\r
-\r
+define MinCyg_GCC
+sed -n /'^gcc version '/s',.*\<\([A-Za-z]*\)\> \(special\|experimental\).*',\\1,p
+endef
+define Any_GCC
+sed -n /'^gcc version '/s',.*\<\([A-Za-z]*\)\>.*',\\1,p
+endef
+
+ASK_SHELL_FIND_GCC := $(shell gcc -v 2>&1 | $(MinCyg_GCC))
+ ifeq "$(ASK_SHELL_FIND_GCC)" ""
+ASK_SHELL_FIND_GCC := $(shell gcc -v 2>&1 | $(Any_GCC))
+ endif
+ ifneq "$(ASK_SHELL_FIND_GCC)" ""
+GCC_FLAVOR := $(strip $(ASK_SHELL_FIND_GCC))
+ endif
+
+ifeq "$(GCC_FLAVOR)" "cygming"
+CFLAGS += -mno-cygwin
+override LIBS += -lglut32 -lglu32 -lopengl32
+endif
+
+LIBS += -lglut -lGLU -lGL
+
+CFLAGS += -ggdb -Wall -std=c99
+
+.PHONY: all
+
+all: scene commit
+
+scene: scene.c bitmap.c bitmap.h
+ 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; true
+
+clean:
+ rm scene
+