diff --git a/2021/Makefile b/2021/Makefile index 0edb149..d76aa9e 100644 --- a/2021/Makefile +++ b/2021/Makefile @@ -23,6 +23,9 @@ CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -march=native +CFLAGS += -DDEBUG # activate general debug (debug.c) +CFLAGS += -DDEBUG_POOL # memory pools management + INCDIR := ./include LIBSRCDIR := ./libsrc LIBDIR := ./lib diff --git a/2021/day01/Makefile b/2021/day01/Makefile index 8b0eac6..ef408db 100644 --- a/2021/day01/Makefile +++ b/2021/day01/Makefile @@ -29,22 +29,20 @@ CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -march=native -CFLAGS += -DDEBUG_POOL # memory pools management - TIME := \time -f "\ttime: %E real, %U user, %S sys\n\tcontext-switch:\t%c+%w, page-faults: %F+%R\n" export PATH := .:$(PATH) -.PHONY: clean all compile deploy ex1 ex2 +.PHONY: clean all compile ex1 ex2 all: ex1 ex2 compile: aoc-c ex1: aoc-c - @$(TIME) aoc-c -d 5 -p 1 < $(INPUT) + @$(TIME) aoc-c -p 1 < $(INPUT) ex2: aoc-c - @$(TIME) aoc-c -d 5 -p 2 < $(INPUT) + @$(TIME) aoc-c -p 2 < $(INPUT) clean: @rm -f aoc-c core* diff --git a/2021/day02/Makefile b/2021/day02/Makefile index 8b0eac6..ef408db 100644 --- a/2021/day02/Makefile +++ b/2021/day02/Makefile @@ -29,22 +29,20 @@ CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -march=native -CFLAGS += -DDEBUG_POOL # memory pools management - TIME := \time -f "\ttime: %E real, %U user, %S sys\n\tcontext-switch:\t%c+%w, page-faults: %F+%R\n" export PATH := .:$(PATH) -.PHONY: clean all compile deploy ex1 ex2 +.PHONY: clean all compile ex1 ex2 all: ex1 ex2 compile: aoc-c ex1: aoc-c - @$(TIME) aoc-c -d 5 -p 1 < $(INPUT) + @$(TIME) aoc-c -p 1 < $(INPUT) ex2: aoc-c - @$(TIME) aoc-c -d 5 -p 2 < $(INPUT) + @$(TIME) aoc-c -p 2 < $(INPUT) clean: @rm -f aoc-c core* diff --git a/2021/day03/Makefile b/2021/day03/Makefile index 88f5c4e..2062a9c 100644 --- a/2021/day03/Makefile +++ b/2021/day03/Makefile @@ -31,22 +31,20 @@ CFLAGS += -march=native CFLAGS += -Wmissing-declarations CFLAGS += -Wno-unused-result -CFLAGS += -DDEBUG_POOL # memory pools management - TIME := \time -f "\ttime: %E real, %U user, %S sys\n\tcontext-switch:\t%c+%w, page-faults: %F+%R\n" export PATH := .:$(PATH) -.PHONY: clean all compile deploy ex1 ex2 +.PHONY: clean all compile ex1 ex2 all: ex1 ex2 compile: aoc-c ex1: aoc-c - @$(TIME) aoc-c -d 5 -p 1 < $(INPUT) + @$(TIME) aoc-c -p 1 < $(INPUT) ex2: aoc-c - @$(TIME) aoc-c -d 5 -p 2 < $(INPUT) + @$(TIME) aoc-c -p 2 < $(INPUT) clean: @rm -f aoc-c core* diff --git a/2021/day04/Makefile b/2021/day04/Makefile index 88f5c4e..2062a9c 100644 --- a/2021/day04/Makefile +++ b/2021/day04/Makefile @@ -31,22 +31,20 @@ CFLAGS += -march=native CFLAGS += -Wmissing-declarations CFLAGS += -Wno-unused-result -CFLAGS += -DDEBUG_POOL # memory pools management - TIME := \time -f "\ttime: %E real, %U user, %S sys\n\tcontext-switch:\t%c+%w, page-faults: %F+%R\n" export PATH := .:$(PATH) -.PHONY: clean all compile deploy ex1 ex2 +.PHONY: clean all compile ex1 ex2 all: ex1 ex2 compile: aoc-c ex1: aoc-c - @$(TIME) aoc-c -d 5 -p 1 < $(INPUT) + @$(TIME) aoc-c -p 1 < $(INPUT) ex2: aoc-c - @$(TIME) aoc-c -d 5 -p 2 < $(INPUT) + @$(TIME) aoc-c -p 2 < $(INPUT) clean: @rm -f aoc-c core*