2048-cli/Makefile

15 lines
337 B
Makefile
Raw Normal View History

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