2014-09-12 11:17:04 +00:00
|
|
|
CC ?= gcc
|
|
|
|
CFLAGS += -Wall -Wextra
|
|
|
|
LIBS = -lcurses
|
2014-04-17 20:20:40 +00:00
|
|
|
|
2014-09-12 11:17:04 +00:00
|
|
|
all: 2048
|
2014-04-17 20:20:40 +00:00
|
|
|
|
2014-09-12 16:17:41 +00:00
|
|
|
2048: src/2048.c src/2048.h src/highscore_file.c
|
2014-11-03 09:21:31 +00:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) src/2048.c src/highscore_file.c -o 2048
|
2014-04-17 20:20:40 +00:00
|
|
|
|
2014-09-12 16:17:41 +00:00
|
|
|
2048nc: src/2048_no_curses.c src/2048.h src/highscore_file.c
|
2014-11-03 09:21:31 +00:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) src/2048_no_curses.c src/highscore_file.c -o 2048nc
|
2014-09-08 20:26:41 +00:00
|
|
|
|
|
|
|
clean:
|
2014-09-12 11:17:04 +00:00
|
|
|
rm -f 2048 2048nc
|