From 80d304afeb4a172d1941695810f11996f973565e Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Sun, 12 Apr 2026 21:02:04 +0200 Subject: [PATCH] Compiling and liking with no poblems --- src/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Makefile b/src/Makefile index 9947285..eb2dd43 100644 --- a/src/Makefile +++ b/src/Makefile @@ -8,9 +8,9 @@ CORE_SOURCES := \ # Compiler and flags CORE_CC = gcc -CORE_CFLAGS = $(sdl2-config --cflags --libs) -Wall -Wextra -std=c17 -fPIC -g +CORE_CFLAGS = -Wall -Wextra -std=c17 -fPIC -g CORE_INCLUDE_DIRS = $(CORE_DIR)/headers -CORE_LDFLAGS = +CORE_LDFLAGS = $(shell sdl2-config --cflags --libs) # Deduce objects CORE_OBJECTS = $(CORE_SOURCES:%.c=$(BUILD_DIR)/$(CORE_DIR)/%.o) @@ -33,7 +33,7 @@ count_core_build: # Link core target $(BUILD_DIR)/libCore.so: $(CORE_OBJECTS) @echo -e "[100%] $(YELLOW)Linking libCore.so$(RESET)" - $(Q)$(CORE_CC) -shared $(CORE_LDFLAGS) -o $@ $(CORE_OBJECTS) + $(Q)$(CORE_CC) -shared $(CORE_OBJECTS) -o $@ $(CORE_LDFLAGS) # Build .o files $(BUILD_DIR)/$(CORE_DIR)/%.o: $(CORE_DIR)/%.c