From 39c515f87b2ee19596bb405918e7d2937241d629 Mon Sep 17 00:00:00 2001
From: "tom.ryser" <tom.ryser@etu.hesge.ch>
Date: Wed, 24 Nov 2021 13:05:31 +0100
Subject: [PATCH] Update Makefile.

removed LDFLAGS:=-lm

removed -g -O3 in CFLAGS
---
 Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 277372c..f01ab20 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,12 @@
 CC:=gcc
-CFLAGS:=-g -O3 -Wextra -pedantic -fsanitize=address
-LDFLAGS:=-lm
+CFLAGS:= -Wextra -pedantic -fsanitize=address
 NAME:=stack
 
 $(NAME): main.o $(NAME).o
-    $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -lSDL2
+    $(CC) $(CFLAGS) -o $@ $^ -lSDL2
 
 tests: $(NAME)_tests.o $(NAME).o
-    $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+    $(CC) $(CFLAGS) -o $@ $^
 
 $(NAME).o: $(NAME).h
 
-- 
GitLab