2014-11-07 21:02:13 (UTC-02:00)
Marcel Rodrigues <marcelgmr@gmail.com>
More portable Makefile.
diff --git a/Makefile b/Makefile index 48a221a..4af4a08 100644 --- a/Makefile +++ b/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