--- Makefile.orig	2011-03-04 14:19:32.000000000 -0600
+++ Makefile	2022-01-26 03:28:25.000000000 -0600
@@ -5,8 +5,7 @@
 UNAME := $(shell uname -s)
 
 ifeq ($(UNAME),Darwin)
-		CFLAGS = -I./include -I/usr/local/include -I/opt/local/include
-		LDFLAGS = -L/usr/lib -L/opt/local/lib 
+		CFLAGS := -I./include $(CPPFLAGS) $(CFLAGS)
 		LIBS = -lreadline -lusb-1.0 -framework CoreFoundation -framework IOKit
 	
 		IRECOVERY_TARGET = irecovery
