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