From fe0d23d740c6710373b519f022efe0488e05440f Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 9 Sep 2014 00:26:31 +0400 Subject: [PATCH] Respect CC and CFLAGS --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 58abe0f..163e254 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ -CC=gcc -CCARGS= +CC?=gcc +CFLAGS+= all: 2048 2048_no_curses 2048: 2048_curses.c - $(CC) $(CCARGS) 2048_curses.c -lcurses -o 2048 + $(CC) $(CFLAGS) 2048_curses.c -lcurses -o 2048 2048_no_curses: 2048_no_curses.c - gcc 2048_no_curses.c -o 2048_no_curses + $(CC) $(CFLAGS) 2048_no_curses.c -o 2048_no_curses