+
+ # QT version, 4 or 5
+ qtplatform = $(shell $(MOC) -v)
+ ifneq (, $(findstring moc 5,$(qtplatform)))
+ # 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/usr/local/opt/readline/lib -L/usr/local/opt/qt5/lib -lreadline -lpthread -lm
+ else
+ # Assuming you have QT4 installed.
+ CFLAGS += -I/usr/include/malloc/ -I/usr/local/opt/readline/include
+ LDLIBS = -L/usr/local/opt/readline/lib -lreadline -lpthread -lm
+ endif
+