sdl2-compat: updated stand-alone makefiles.

From 38e20e508420c1afabb95b77ef709eb7fa6a6b8c Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 27 Nov 2022 10:11:10 +0300
Subject: [PATCH] updated stand-alone makefiles.

---
 src/Makefile.darwin | 14 ++++++--------
 src/Makefile.linux  |  6 +++---
 src/Makefile.mingw  |  6 +++---
 src/Makefile.vc     |  2 +-
 4 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/src/Makefile.darwin b/src/Makefile.darwin
index fdda739..93d9004 100644
--- a/src/Makefile.darwin
+++ b/src/Makefile.darwin
@@ -1,7 +1,7 @@
-# GNU Makefile for Mac OS X to build SDL12-compat.
+# GNU Makefile for Mac OS X to build SDL2-compat.
 #
 
-# change INCLUDES so it points to SDL2 headers directory:
+# change INCLUDES so it points to SDL3 headers directory:
 INCLUDES = -Iinclude
 
 ifeq ($(CROSS),)
@@ -14,14 +14,12 @@ LD = $(CC)
 CPPFLAGS = -DNDEBUG -D_THREAD_SAFE
 CPPFLAGS+= -DSDL_DISABLE_IMMINTRIN_H
 
-CFLAGS  = -mmacosx-version-min=10.6 -fPIC -O3 -Wall
-LDFLAGS = -mmacosx-version-min=10.6 -dynamiclib -Wl,-undefined,error -Wl,-single_module
+CFLAGS  = -mmacosx-version-min=10.7 -fPIC -O3 -Wall
+LDFLAGS = -mmacosx-version-min=10.7 -dynamiclib -Wl,-undefined,error -Wl,-single_module
 #LDFLAGS+= -Wl,-headerpad_max_install_names
 LDFLAGS+= -Wl,-install_name,"/usr/local/lib/$(DYLIB)"
-LDFLAGS+= -Wl,-compatibility_version,1.0 -Wl,-current_version,12.61
+LDFLAGS+= -Wl,-compatibility_version,2601.0 -Wl,-current_version,2900.0
 LDLIBS  = -Wl,-framework,AppKit
-# this is needed for x86_64 - cross-gcc might not add it.
-#LDLIBS += -Wl,-lbundle1.o
 
 DYLIB = libSDL2-2.0.0.dylib
 
@@ -34,7 +32,7 @@ all: $(DYLIB)
 
 $(DYLIB): $(OBJ)
 	$(LD) -o $@ $(LDFLAGS) $(OBJ) $(LDLIBS)
-	ln -sf $(DYLIB) libSDL.dylib
+	ln -sf $(DYLIB) libSDL2.dylib
 
 .c.o:
 	$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -o $@ -c $<
diff --git a/src/Makefile.linux b/src/Makefile.linux
index d882d16..24a6ffd 100644
--- a/src/Makefile.linux
+++ b/src/Makefile.linux
@@ -1,7 +1,7 @@
-# GNU Makefile for Linux (Unix) to build SDL12-compat.
+# GNU Makefile for Linux (Unix) to build SDL2-compat.
 #
 
-# change INCLUDES so it points to SDL2 headers directory:
+# change INCLUDES so it points to SDL3 headers directory:
 INCLUDES = -Iinclude
 
 CC = gcc
@@ -16,7 +16,7 @@ LDFLAGS = -shared -Wl,-soname,libSDL2-2.0.so.0
 LDFLAGS+= -Wl,--no-undefined
 LDLIBS  = -ldl
 
-SHLIB = libSDL2-2.0.so.0.0.0
+SHLIB = libSDL2-2.0.so.2.90.0
 
 OBJ = sdl2_compat.o
 
diff --git a/src/Makefile.mingw b/src/Makefile.mingw
index 6b8855a..33c41d8 100644
--- a/src/Makefile.mingw
+++ b/src/Makefile.mingw
@@ -1,7 +1,7 @@
-# GNU Makefile for Windows to build SDL12-compat.
+# GNU Makefile for Windows to build SDL2-compat.
 #
 
-# change INCLUDES so it points to SDL2 headers directory:
+# change INCLUDES so it points to SDL3 headers directory:
 INCLUDES = -Iinclude
 
 ifeq ($(CROSS),)
@@ -20,7 +20,7 @@ CFLAGS  = -O3 -Wall
 LDFLAGS = -nostdlib -shared -Wl,--no-undefined -Wl,--enable-auto-image-base -Wl,--out-implib,$(LIB)
 LDLIBS  = -lkernel32 -luser32
 # libgcc is needed for 32 bit (x86) builds:
-LDLIBS += -static-libgcc -lgcc
+#LDLIBS += -static-libgcc -lgcc
 
 LIB = libSDL2.dll.a
 DLL = SDL2.dll
diff --git a/src/Makefile.vc b/src/Makefile.vc
index e78ecc8..dfe40fb 100644
--- a/src/Makefile.vc
+++ b/src/Makefile.vc
@@ -4,7 +4,7 @@
 # If you specifically want to build for x86:
 #	nmake /f Makefile.vc CPU=x86
 
-# change INCLUDES so it points to SDL2 headers directory:
+# change INCLUDES so it points to SDL3 headers directory:
 INCLUDES = -Iinclude
 
 CPPFLAGS = -DNDEBUG -DDLL_EXPORT