Respect CC and CFLAGS

This commit is contained in:
Dmitry Marakasov 2014-09-09 00:26:31 +04:00
parent 73d328c3a0
commit fe0d23d740

View File

@ -1,10 +1,10 @@
CC=gcc CC?=gcc
CCARGS= CFLAGS+=
all: 2048 2048_no_curses all: 2048 2048_no_curses
2048: 2048_curses.c 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 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