From f64fedc3981aba57198c3986cffcb571b7442bb2 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Mon, 29 May 2023 17:59:17 -0400 Subject: [PATCH] makefile tweaks --- C-optimized/makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/C-optimized/makefile b/C-optimized/makefile index 176870d5..e76f2637 100644 --- a/C-optimized/makefile +++ b/C-optimized/makefile @@ -5,7 +5,7 @@ # make run # Compiler -CC=gcc +CC=gcc -v # CC=tcc # <= faster compilation # Main file @@ -14,6 +14,7 @@ OUTPUT=out/samples ## Dependencies # Has no dependencies +MATH=-lm ## Flags DEBUG= #'-g' @@ -21,14 +22,14 @@ STANDARD=-std=c99 WARNINGS=-Wall OPTIMIZED=-O3 #-O3 actually gives better performance than -Ofast, at least for this version OPENMP=-fopenmp -MATH=-lm + ## Formatter STYLE_BLUEPRINT=webkit FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT) ## make build build: $(SRC) - $(CC) $(OPTIMIZED) $(DEBUG) $(OPENMP) $(SRC) $(MATH) -o $(OUTPUT) + $(CC) $(OPTIMIZED) $(DEBUG) $(SRC) $(OPENMP) $(MATH) -o $(OUTPUT) #fast: Has been removed, compilation of "build" is very fast and it outputs optimized code by default