15 lines
359 B
Makefile
15 lines
359 B
Makefile
CC ?= gcc
|
|
CFLAGS += -Wall -Wextra
|
|
LIBS = -lcurses
|
|
|
|
all: 2048
|
|
|
|
2048: src/2048.c src/2048.h src/highscore_file.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) src/2048.c src/highscore_file.c -o 2048
|
|
|
|
2048nc: src/2048_no_curses.c src/2048.h src/highscore_file.c
|
|
$(CC) $(CFLAGS) $(LDFLAGS) src/2048_no_curses.c src/highscore_file.c -o 2048nc
|
|
|
|
clean:
|
|
rm -f 2048 2048nc
|