From 59833d34471233b346f519f1da29f782500a8645 Mon Sep 17 00:00:00 2001 From: 0xmac Date: Tue, 7 Jan 2025 14:00:25 +0100 Subject: [PATCH] Added dynamic SDL flag support --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 43dbcee..1ad1c89 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CC=gcc O=2 -CFLAGS=-D_REENTRANT -lSDL2 +CFLAGS=`sdl2-config --cflags` `sdl2-config --libs` PREFIX=$(HOME)/.local all: ls7emulator @@ -13,8 +13,7 @@ clean: ls7emulator: cd src - $(CC) main.c -o ls7emulator $(CFLAGS) -O$(O) - + $(CC) main.c -o ls7emulator $(CFLAGS) -O$(O) rm ../bin -rf mkdir ../bin cd ../bin