From 95478bf0f975602b30828a7707be773aea571954 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 18 Apr 2024 22:33:25 +0200 Subject: [PATCH] fix release mode not working --- c_project_archive_report.mk | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/c_project_archive_report.mk b/c_project_archive_report.mk index e5d30fc..4797ed8 100644 --- a/c_project_archive_report.mk +++ b/c_project_archive_report.mk @@ -21,19 +21,19 @@ PDF_DIR = report %.o: src/%.c $(CC) -c $< -o $@ $(CFLAGS) -compilation: $(OBJETS) - $(CC) -o $(EXE)$(EXE_EXT) $(OBJETS) $(LDFLAGS) - -main: CFLAGS += -O3 -main: compilation +release: CFLAGS += -O3 +release: compilation debug: CFLAGS += -Wall -Wextra -Wshadow -Wcast-align -Wstrict-prototypes debug: CFLAGS += -fanalyzer -fsanitize=undefined -g -Og debug: LDFLAGS += -fsanitize=undefined debug: compilation +compilation: $(OBJETS) + $(CC) -o $(EXE)$(EXE_EXT) $(OBJETS) $(LDFLAGS) + all: - main + release pdf-make: cd report && \