2048-cli/Makefile

26 lines
464 B
Makefile
Raw Normal View History

2014-12-05 09:53:56 +00:00
ASCIIDOC ?= a2x
CC ?= gcc
CFLAGS := -Wall -Wextra $(CFLAGS)
LIBS = -lcurses
2014-04-17 20:20:40 +00:00
2014-12-05 09:53:56 +00:00
.PHONY: clean man man-nc
2014-04-17 20:20:40 +00:00
2014-12-03 15:14:30 +00:00
2048: src/2048.c
$(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) src/2048.c -o 2048
2014-04-17 20:20:40 +00:00
2014-12-03 15:14:30 +00:00
2048nc: src/2048.c
$(CC) -DNO_CURSES=1 $(CFLAGS) $(LDFLAGS) src/2048.c -o 2048nc
2014-09-08 20:26:41 +00:00
2014-12-05 09:53:56 +00:00
all: 2048
2014-09-08 20:26:41 +00:00
clean:
rm -f 2048 2048nc
2014-12-05 09:53:56 +00:00
man:
rm -f man/2048.1
$(ASCIIDOC) -d manpage -f manpage man/2048.1.txt
man-nc:
rm -f man/2048nc.1
$(ASCIIDOC) -d manpage -f manpage man/2048nc.1.txt