repositories
/
advent21.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
day 12 part two wrong, day 13 done
[advent21.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
2f07760
..
e656642
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,9
+1,20
@@
CFLAGS:=-Wall -Wextra -O3
LFLAGS:=-f
CFLAGS:=-Wall -Wextra -O3
LFLAGS:=-f
-BINARIES:=
01 02a 02b 03a 03b
+BINARIES:=
$(foreach num,$(shell seq -f '%02.0f' 1 11),$(num)a $(num)b)
all: $(BINARIES)
clean:
$(RM) *.o a.out $(BINARIES)
all: $(BINARIES)
clean:
$(RM) *.o a.out $(BINARIES)
+
+05%: CFLAGS+=-DHASH_BLOOM
+06b: LDLIBS+=-lgmp
+
+run: $(addprefix run_,$(BINARIES))
+
+run_%a: %a
+ ./$< < $*.txt
+
+run_%b: %b
+ ./$< < $*.txt