From e9c486049bec91a1d14bb6926c27872041408efc Mon Sep 17 00:00:00 2001 From: Arnav Bhatt Date: Sun, 25 Aug 2024 18:13:20 +0530 Subject: [PATCH] Add versions to makefiles --- contrib/sdk/sources/SDL_image-2.8.2/Makefile | 3 ++- contrib/sdk/sources/SDL_mixer-2.8.0/Makefile | 1 + contrib/sdk/sources/SDL_ttf-2.22.0/Makefile | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/sdk/sources/SDL_image-2.8.2/Makefile b/contrib/sdk/sources/SDL_image-2.8.2/Makefile index fa897b8dbe..969785a42c 100644 --- a/contrib/sdk/sources/SDL_image-2.8.2/Makefile +++ b/contrib/sdk/sources/SDL_image-2.8.2/Makefile @@ -38,7 +38,8 @@ CFLAGS = -c -O2 -mpreferred-stack-boundary=2 -fno-ident -fomit-frame-pointer -fn -I../newlib/libc/include/ -I../SDL-2.30.3/include/ -I../libjpeg/ -I.. -I../libpng/ -Iinclude/ -Isrc/ \ -DLOAD_JPG -DLOAD_PNG -DLOAD_BMP -DLOAD_GIF -DLOAD_LBM -DLOAD_PCX -DLOAD_PNM \ -DLOAD_TGA -DLOAD_XCF -DLOAD_XPM -DLOAD_XV -DLOAD_SVG -DLOAD_QOI \ --DSDL_IMAGE_SAVE_JPG=1 -DSDL_IMAGE_SAVE_PNG=1 +-DSDL_IMAGE_SAVE_JPG=1 -DSDL_IMAGE_SAVE_PNG=1 \ +-DSDL_BUILD_MAJOR_VERSION=2 -DSDL_BUILD_MINOR_VERSION=8 -DSDL_BUILD_MICRO_VERSION=2 all: $(LIBNAME).a $(LIBNAME).dll diff --git a/contrib/sdk/sources/SDL_mixer-2.8.0/Makefile b/contrib/sdk/sources/SDL_mixer-2.8.0/Makefile index 87b378bfed..357dde833f 100644 --- a/contrib/sdk/sources/SDL_mixer-2.8.0/Makefile +++ b/contrib/sdk/sources/SDL_mixer-2.8.0/Makefile @@ -54,6 +54,7 @@ CFLAGS = -c -O2 -mpreferred-stack-boundary=2 -fno-ident -fomit-frame-pointer -fn -I -Isrc/codecs/dr_libs -Isrc/codecs/minimp3 -Isrc/codecs/timidity \ -I../libogg-1.3.5/include -I.. -I../libvorbis-1.3.7/include \ -DMUSIC_WAV -DMUSIC_OGG -DMUSIC_MP3_MINIMP3 -DMUSIC_FLAC_DRFLAC -DMUSIC_MID_TIMIDITY \ +-DSDL_BUILD_MAJOR_VERSION=2 -DSDL_BUILD_MINOR_VERSION=8 -DSDL_BUILD_MICRO_VERSION=0 all: $(TIMIDITY).a $(TIMIDITY).dll $(LIBNAME).a $(LIBNAME).dll diff --git a/contrib/sdk/sources/SDL_ttf-2.22.0/Makefile b/contrib/sdk/sources/SDL_ttf-2.22.0/Makefile index 74237c0fe5..386807c27d 100644 --- a/contrib/sdk/sources/SDL_ttf-2.22.0/Makefile +++ b/contrib/sdk/sources/SDL_ttf-2.22.0/Makefile @@ -17,6 +17,7 @@ CFLAGS = -c -O2 -mpreferred-stack-boundary=2 -fno-ident -fomit-frame-pointer -fn -ffast-math -mno-ms-bitfields -march=pentium-mmx \ -U_Win32 -UWIN32 -U_WIN32 -U__MINGW32__ -U__WIN32__ \ -I../newlib/libc/include/ -I../SDL-2.30.3/include/ -I../freetype/include/ -I.. \ +-DSDL_BUILD_MAJOR_VERSION=2 -DSDL_BUILD_MINOR_VERSION=22 -DSDL_BUILD_MICRO_VERSION=0 all: $(LIBNAME).a $(LIBNAME).dll