From 71b44fac87c29a955fa379a706f52fa8484d2ab3 Mon Sep 17 00:00:00 2001 From: Hadeed Ahmad Date: Wed, 11 Sep 2024 22:57:22 +0500 Subject: [PATCH] Fix makefile for linux --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 163d034..257f747 100644 --- a/Makefile +++ b/Makefile @@ -8,8 +8,8 @@ SRC_DIR = src INC_DIR = include BUILD_DIR = build -CFLAGS = -I $(INC_DIR) -MMD -MP -I c:/SDL2/include -I c:/SDL2/include/SDL2 -Dmain=SDL_main -LDFLAGS = -L c:/SDL2/lib -lmingw32 -lSDL2main -lSDL2 -mwindows -static-libstdc++ -static-libgcc +CFLAGS = -I $(INC_DIR) -MMD -MP $(shell sdl2-config --cflags) +LDFLAGS = $(shell sdl2-config --libs) SRC = $(wildcard $(SRC_DIR)/*.cpp) OBJ = $(SRC:$(SRC_DIR)/%.cpp=$(BUILD_DIR)/%.o)