ref: 0fac45fafba58d085647c783ff36b08abf58c76b
parent: b9408616fb5bcab9de2f2aa19fa43ad94dd54e71
author: UltraHDR <[email protected]>
date: Wed Aug 31 21:05:23 EDT 2022
Update MakeFile to also support macOS (#35)
--- a/Makefile
+++ b/Makefile
@@ -13,8 +13,8 @@
LTO = -flto=auto
endif
-override CFLAGS := -O2 -I/usr/include/SDL2 $(LTO) $(CXXFLAGS)
-override LDFLAGS := -lSDL2 $(LDFLAGS)
+override CFLAGS := -O2 `sdl2-config --cflags` $(LTO) $(CXXFLAGS)
+override LDFLAGS := `sdl2-config --libs` $(LDFLAGS)
override OBJS = $(patsubst %.c,%.o,$(wildcard *.c snes/*.c))
override BIN = zelda3