shithub: zelda3

Download patch

ref: e8ea536320ebd84885edd5c4adb57b1d009c6044
parent: 6dfa7018710a2ac9f152f52261ed2cd7866fcb14
author: Snesrev <[email protected]>
date: Sun Sep 4 09:09:28 EDT 2022

Allow override of -O2

--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,9 @@
 OBJS:=$(SRCS:%.c=%.o)
 GEN:=$(shell grep -hor tables/generated.*.h --include \*.c .)
 PYTHON:=/usr/bin/env python3
-CFLAGS:=${CFLAGS} -O2 $(shell sdl2-config --cflags)
+CFLAGS:=$(if $(CFLAGS),$(CFLAGS),-O2)
+
+CFLAGS:=${CFLAGS} $(shell sdl2-config --cflags)
 LDFLAGS:=${LDFLAGS} -lm $(shell sdl2-config --libs)
 
 .PHONY: all clean clean_obj clean_gen