From 538960bf17d1bfb5a6c57d6b735b1457345ac1bc Mon Sep 17 00:00:00 2001 From: Cyao <94928179+cheyao@users.noreply.github.com> Date: Fri, 31 May 2024 18:16:45 +0200 Subject: [PATCH] Examples: Fixed SDL3 Makefile (#7641) --- examples/example_sdl3_opengl3/Makefile | 6 +++--- examples/example_sdl3_sdlrenderer3/Makefile | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/example_sdl3_opengl3/Makefile b/examples/example_sdl3_opengl3/Makefile index 3a00a31e7..741e97d0c 100644 --- a/examples/example_sdl3_opengl3/Makefile +++ b/examples/example_sdl3_opengl3/Makefile @@ -37,9 +37,9 @@ LIBS = ifeq ($(UNAME_S), Linux) #LINUX ECHO_MESSAGE = "Linux" - LIBS += $(LINUX_GL_LIBS) -ldl `sdl3-config --libs` + LIBS += $(LINUX_GL_LIBS) -ldl `pkg-config sdl3 --libs` - CXXFLAGS += `sdl3-config --cflags` + CXXFLAGS += `pkg-config sdl3 --cflags` CFLAGS = $(CXXFLAGS) endif @@ -48,7 +48,7 @@ ifeq ($(UNAME_S), Darwin) #APPLE LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl3-config --libs` LIBS += -L/usr/local/lib -L/opt/local/lib - CXXFLAGS += `sdl3-config --cflags` + CXXFLAGS += `pkg-config sdl3 --cflags` CXXFLAGS += -I/usr/local/include -I/opt/local/include CFLAGS = $(CXXFLAGS) endif diff --git a/examples/example_sdl3_sdlrenderer3/Makefile b/examples/example_sdl3_sdlrenderer3/Makefile index d0a73bf16..238576c7c 100644 --- a/examples/example_sdl3_sdlrenderer3/Makefile +++ b/examples/example_sdl3_sdlrenderer3/Makefile @@ -26,9 +26,9 @@ LIBS = ifeq ($(UNAME_S), Linux) #LINUX ECHO_MESSAGE = "Linux" - LIBS += -ldl `sdl3-config --libs` + LIBS += -ldl `pkg-config sdl3 --libs` - CXXFLAGS += `sdl3-config --cflags` + CXXFLAGS += `pkg-config sdl3 --cflags` CFLAGS = $(CXXFLAGS) endif @@ -37,7 +37,7 @@ ifeq ($(UNAME_S), Darwin) #APPLE LIBS += -framework OpenGL -framework Cocoa -framework IOKit -framework CoreVideo `sdl3-config --libs` LIBS += -L/usr/local/lib -L/opt/local/lib - CXXFLAGS += `sdl3-config --cflags` + CXXFLAGS += `pkg-config sdl3 --cflags` CXXFLAGS += -I/usr/local/include -I/opt/local/include CFLAGS = $(CXXFLAGS) endif