advent2021

Advent of Code 2021 Solutions
git clone git://bsandro.tech/advent2021
Log | Files | Refs

commit 42396cd320317f4cd68c8b51c878a5b628477ae6
parent 1cd878bb8ca16e2a30f27647d87131880103138b
Author: bsandro <[email protected]>
Date:   Sat, 11 Dec 2021 16:42:33 +0200

-O2 build flag for all

Diffstat:
Mday01/Makefile | 2+-
Mday02/Makefile | 2+-
Mday03/Makefile | 2+-
Mday11/Makefile | 2+-
Mday11/puzzle.c | 2--
5 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/day01/Makefile b/day01/Makefile @@ -3,7 +3,7 @@ SRC=$(wildcard *.c) DEPS:=$(wildcard *.h) OBJ:=$(SRC:.c=.o) -CFLAGS=-O0 -std=c99 -g -Werror -Wall -Wextra -I. +CFLAGS=-O2 -std=c99 -Werror -Wall -Wextra -I. all: $(NAME) diff --git a/day02/Makefile b/day02/Makefile @@ -3,7 +3,7 @@ SRC=$(wildcard *.c) DEPS:=$(wildcard *.h) OBJ:=$(SRC:.c=.o) -CFLAGS=-O0 -std=c99 -g -Werror -Wall -Wextra -I. +CFLAGS=-O2 -std=c99 -Werror -Wall -Wextra -I. all: $(NAME) diff --git a/day03/Makefile b/day03/Makefile @@ -3,7 +3,7 @@ SRC=$(wildcard *.c ../common/*.c) DEPS:=$(wildcard *.h ../common/*.h) OBJ:=$(SRC:.c=.o) -CFLAGS=-O0 -std=c99 -g -Werror -Wall -Wextra -I. -I../common +CFLAGS=-O2 -std=c99 -Werror -Wall -Wextra -I. -I../common all: $(NAME) diff --git a/day11/Makefile b/day11/Makefile @@ -1,5 +1,5 @@ NAME=$(shell basename ${PWD}) -SRC=$(wildcard *.c ../common/*.c) +SRC=$(wildcard *.c) DEPS:=$(wildcard *.h ../common/*.h) OBJ:=$(SRC:.c=.o) CFLAGS=-O2 -std=c99 -Werror -Wall -Wextra -I. -I../common diff --git a/day11/puzzle.c b/day11/puzzle.c @@ -9,8 +9,6 @@ #include <ctype.h> #include <limits.h> -#include "util.h" - #define STR_LEN 1024 #define GRID_WIDTH 10 #define GRID_HEIGHT 10