From 36e78d669c9c3765f7f3b020d3901fe0ddba2598 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 21 Jul 2016 17:26:17 +0200 Subject: [PATCH] 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 --- client/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.39.2