aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 8159e5a3109b68765051a2dc587a1d1447341cfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DAY=$(notdir ${PWD})
CFLAGS=
DAYFLAGS=
INPUT=${DAY}.input

all: run

-include override.mk

${DAY}.bin: ${DAY}.c
	gcc ${CFLAGS} -o $@ $< ${DAYFLAGS}

run: ${DAY}.bin ${INPUT}
	./${DAY}.bin < ${INPUT}

clean:
	rm -f ${DAY}.bin

.PHONY: run clean