Added dynamic SDL flag support

This commit is contained in:
0xmac 2025-01-07 14:00:25 +01:00
parent a87358662b
commit 59833d3447

View File

@ -2,7 +2,7 @@
CC=gcc CC=gcc
O=2 O=2
CFLAGS=-D_REENTRANT -lSDL2 CFLAGS=`sdl2-config --cflags` `sdl2-config --libs`
PREFIX=$(HOME)/.local PREFIX=$(HOME)/.local
all: ls7emulator all: ls7emulator
@ -14,7 +14,6 @@ clean:
ls7emulator: ls7emulator:
cd src cd src
$(CC) main.c -o ls7emulator $(CFLAGS) -O$(O) $(CC) main.c -o ls7emulator $(CFLAGS) -O$(O)
rm ../bin -rf rm ../bin -rf
mkdir ../bin mkdir ../bin
cd ../bin cd ../bin