From 486134a9ea03808619090730211bf6c9670d5c98 Mon Sep 17 00:00:00 2001 From: Matthieu Talbot Date: Thu, 16 Mar 2023 14:54:31 +0100 Subject: [PATCH] Update Makefile for SDL2 Hey, To compile in macOS, I had to switch to SDL2. In case anyone stumbles upon the same issue, the fix is quite simple: just use `sdl2-config` in place of `sdl-config`. Best, --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5a622026..3112add8 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ OBJS = reciter.o sam.o render.o main.o debug.o CC = gcc # libsdl present -CFLAGS = -Wall -Os -DUSESDL `sdl-config --cflags` -LFLAGS = `sdl-config --libs` +CFLAGS = -Wall -Os -DUSESDL `sdl2-config --cflags` +LFLAGS = `sdl2-config --libs` # no libsdl present #CFLAGS = -Wall -Os