aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
blob: 01d0b5f8d2846c722f9cc5ee448828460d1ce2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SUFFIX ?= _minified

DIST := bin
PROGRAM := $(DIST)/2048

all: run

run: build
	./$(PROGRAM)

build: $(DIST) $(PROGRAM)

$(PROGRAM): 2048$(SUFFIX).c
	gcc $^ -lncurses -o $@

$(DIST):
	@mkdir $@

clean:
	@rm -rf $(DIST)

.PHONY: all run build clean