diff options
author | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-12-07 15:16:10 +0000 |
---|---|---|
committer | Nathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk> | 2015-12-07 15:16:10 +0000 |
commit | 09cbfeeca74e6b7ca9a9b5d49646c538b8a3f4ba (patch) | |
tree | d91f437cc4b676155b7c110b8da8c90995523771 /Makefile | |
parent | 02d64d66b1e3c904b54c19ac2b5e9756d49959fb (diff) |
Rearranged into folders, added makefile for convenience.
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 |