diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6013a09 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +DAY=$(notdir ${PWD}) +CFLAGS= +DAYFLAGS= +INPUT=${DAY}.input + +-include override.mk + +${DAY}: ${DAY}.c + @gcc ${CFLAGS} -o $@ $< ${DAYFLAGS} + +run: ${DAY} ${INPUT} + @./${DAY} < ${INPUT} + +clean: + @rm -f ${DAY} + +.PHONY: run clean |