commit 6bcbe92268c464c17ee2570758c5faf1f20fdcdb from: Marcel Rodrigues date: Fri Nov 07 23:02:13 2014 UTC More portable Makefile. commit - 93f759852e7bc41422726ca406ca4cb27f69027a commit + 6bcbe92268c464c17ee2570758c5faf1f20fdcdb blob - 48a221a49900cdc8a307e3e7027dd5a5e6905567 blob + 4af4a082d2d150cf76424d101512105180ca01e4 --- Makefile +++ Makefile @@ -1,10 +1,13 @@ CLINK = -lcurses -CFLAGS = -Wall -Wextra -Werror -std=c89 -DEBUG ?= 0 -ifeq ($(DEBUG), 1) - CFLAGS += -O0 -g -else - CFLAGS += -O2 +GNU ?= 0 +ifeq ($(GNU), 1) + CFLAGS = -Wall -Wextra -Werror -std=c89 + DEBUG ?= 0 + ifeq ($(DEBUG), 1) + CFLAGS += -O0 -g + else + CFLAGS += -O2 + endif endif all : rover