1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
aoc: *.c *.h
gcc -std=c2x -pedantic \
-D_XOPEN_SOURCE=800 \
-flto \
-O3 -DNDEBUG \
*.c \
-o aoc
aocdbg: *.c *.h
gcc -std=c2x -pedantic \
-D_XOPEN_SOURCE=800 \
-Werror -Wall -Wextra \
-Wbad-function-cast \
-Wcast-align \
-Wcast-qual \
-Wconversion $(: pesky little option; makes my code abuse casts ) \
-Wfloat-equal \
-Wformat=2 \
-Wformat-signedness \
-Winline \
-Wlogical-op \
-Wnested-externs \
-Wno-missing-braces \
-Wno-missing-field-initializers \
-Wold-style-definition \
-Wpointer-arith \
-Wredundant-decls \
-Wshadow \
-Wstrict-aliasing=2 \
-Wstrict-overflow=5 \
-Wstrict-prototypes \
-Wswitch-default \
-Wswitch-enum \
-Wundef \
-Wunreachable-code \
-fno-omit-frame-pointer -ffloat-store -fno-common -fstrict-aliasing \
-Og -ggdb3 \
*.c \
-o aocdbg
|
|
|
<
<
<
|
|
|
>
>
<
>
>
>
>
>
>
>
>
>
>
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
all: aocdbg aoc
clean:
rm aocdbg aoc
aocdbg: *.c *.h
gcc -std=c99 -pedantic -pedantic-errors \
-D_XOPEN_SOURCE=800 \
-Werror -Wall -Wextra \
-Wc99-c11-compat \
-Wc11-c2x-compat \
-Wbad-function-cast \
-Wcast-align \
-Wcast-qual \
-Wfloat-equal \
-Wformat=2 \
-Wformat-signedness \
-Winline \
-Wlogical-op \
-Wnested-externs \
-Wno-missing-braces \
-Wno-missing-field-initializers \
-Wold-style-definition \
-Wpointer-arith \
-Wredundant-decls \
-Wsign-conversion \
-Wshadow \
-Wstrict-aliasing=2 \
-Wstrict-overflow=5 \
-Wstrict-prototypes \
-Wswitch-default \
-Wswitch-enum \
-Wundef \
-Wunreachable-code \
-Wvla \
-fno-omit-frame-pointer -ffloat-store -fno-common -fstrict-aliasing \
-Og -ggdb3 \
*.c \
-o aocdbg
aoc: *.c *.h
gcc -std=c99 -pedantic -pedantic-errors \
-D_XOPEN_SOURCE=800 \
-flto -fno-omit-frame-pointer -ffloat-store -fno-common -fstrict-aliasing \
-O3 -DNDEBUG \
*.c \
-o aoc
|