repositories
/
advent21.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cleanup
[advent21.git]
/
Makefile
1
CFLAGS
:=-
Wall
-
Wextra
-
O3
2
LFLAGS
:=-
f
3
4
BINARIES
:=$(
foreach
num
,$(
shell
seq
-
f
'%02.0f'
1 16
),$(
num
)
a
$(
num
)
b
)
5
6
all
: $(
BINARIES
)
7
8
clean
:
9
$(
RM
) *
.o a.out
$(
BINARIES
)
10
11
06
b
:
LDLIBS
+=-
lgmp
12
13
run
: $(
addprefix
run_
,$(
BINARIES
))
14
15
run_12b
:
12
b
16
.
/
12
b
<
12
.txt |
sort
-
u | wc
-
l
17
18
run_
%
a
: %
a
19
.
/$< < $*
.txt
20
21
run_
%
b
: %
b
22
.
/$< < $*
.txt