makefile tweaks

This commit is contained in:
NunoSempere 2023-05-29 17:59:17 -04:00
parent 5dead1a2c1
commit f64fedc398

View File

@ -5,7 +5,7 @@
# make run # make run
# Compiler # Compiler
CC=gcc CC=gcc -v
# CC=tcc # <= faster compilation # CC=tcc # <= faster compilation
# Main file # Main file
@ -14,6 +14,7 @@ OUTPUT=out/samples
## Dependencies ## Dependencies
# Has no dependencies # Has no dependencies
MATH=-lm
## Flags ## Flags
DEBUG= #'-g' DEBUG= #'-g'
@ -21,14 +22,14 @@ STANDARD=-std=c99
WARNINGS=-Wall WARNINGS=-Wall
OPTIMIZED=-O3 #-O3 actually gives better performance than -Ofast, at least for this version OPTIMIZED=-O3 #-O3 actually gives better performance than -Ofast, at least for this version
OPENMP=-fopenmp OPENMP=-fopenmp
MATH=-lm
## Formatter ## Formatter
STYLE_BLUEPRINT=webkit STYLE_BLUEPRINT=webkit
FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT) FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT)
## make build ## make build
build: $(SRC) 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 #fast: Has been removed, compilation of "build" is very fast and it outputs optimized code by default