shithub: psxe

Download patch

ref: 0c38f54483b2533ef18c990d679b49bfbc8c9711
parent: 86e6d8311787c3dc56a2420966378960bccb0640
author: allkern <lisandroaalarcon@gmail.com>
date: Sat May 11 08:09:59 EDT 2024

Fix Makefile

--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 .ONESHELL:
 
-CFLAGS += -g -DLOG_USE_COLOR -lSDL2 -lSDL2main
+CFLAGS := -g -DLOG_USE_COLOR `sdl2-config --cflags --libs`
 CFLAGS += -Ofast -Wno-overflow -Wall -pedantic -Wno-address-of-packed-member
 
 PLATFORM := $(shell uname -s)
@@ -20,6 +20,7 @@
 SOURCES += $(wildcard frontend/*.c)
 
 bin/psxe frontend/main.c:
+	ls \
 	mkdir -p bin
 
 	gcc $(SOURCES) -o bin/psxe \
--