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] ed1525805c
This commit is contained in:
iceman1001 2016-07-21 17:26:17 +02:00
parent 81ba7ee837
commit 36e78d669c

View file

@ -41,8 +41,15 @@ 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
# 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)