2048-cli/Makefile
Dmitry Marakasov f2aa753d49 Fix highscore file handling
Don't create highscore file in the current directory, instead
create in under $XDG_DATA_HOME/2048/highscore or
$HOME/.local/share/2048/highscore as modern apps should.
2014-09-12 20:22:52 +04:00

15 lines
337 B
Makefile

CC ?= gcc
CFLAGS += -Wall -Wextra
LIBS = -lcurses
all: 2048
2048: src/2048.c src/2048.h src/highscore_file.c
$(CC) $(CFLAGS) src/2048.c src/highscore_file.c -o 2048 $(LIBS)
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
clean:
rm -f 2048 2048nc