From: iceman1001 <iceman@iuse.se>
Date: Thu, 21 Jul 2016 15:26:17 +0000 (+0200)
Subject: CHG:  added some includes / libarys for HomeBrew AND QT5 compiling on MAC OSX.  They... 
X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/36e78d669c9c3765f7f3b020d3901fe0ddba2598?ds=inline

CHG:  added some includes / libarys for HomeBrew AND QT5 compiling on MAC OSX.  They are commented away, but if you need it replace the other two lines and uncomment.
 All credit to @koalazak  [ref] https://github.com/Proxmark/proxmark3/pull/184/commits/ed1525805c940fe738fc05286ffd22e0ce3a0fbf
---

diff --git a/client/Makefile b/client/Makefile
index 8ccd1cea..616a2a74 100644
--- a/client/Makefile
+++ b/client/Makefile
@@ -41,9 +41,16 @@ ifneq (,$(findstring MINGW,$(platform)))
 	endif
 	
 else ifeq ($(platform),Darwin)
+
+	# Assuming you have QT4 installed.
 	CFLAGS += -I/usr/include/malloc/ -I/usr/local/opt/readline/include
 	LDLIBS = -L/opt/local/lib -L/usr/local/opt/readline/lib -lreadline -lpthread -lm
-    CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -O3
+	
+	# use this if you have QT5 installed.
+	#CFLAGS += -I/usr/include/malloc/ -I/usr/local/opt/readline/include -I/usr/local/opt/qt5/include 
+    #LDLIBS = -L/opt/local/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/qt5/lib -lreadline -lpthread -lm
+
+	CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -O3
     QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null)
     MOC = $(shell pkg-config --variable=moc_location QtCore)
     LUAPLATFORM = macosx