Archived
1
Fork 0

Fix makefile for linux

This commit is contained in:
Hadeed 2024-09-11 22:57:22 +05:00
parent 1a564b75ca
commit 71b44fac87

View file

@ -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)