From 3e7c3031d2d418a7dfd06c3d5119475dbf290d07 Mon Sep 17 00:00:00 2001 From: bigboyq Date: Mon, 29 Aug 2016 21:47:25 +0800 Subject: [PATCH] Update Makfile Add readline, qt5 support for brew users under OS X environment --- client/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/Makefile b/client/Makefile index 7f9c4c84..15cdc460 100644 --- a/client/Makefile +++ b/client/Makefile @@ -31,6 +31,8 @@ ifneq (,$(findstring MINGW,$(platform))) else ifeq ($(platform),Darwin) CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall -O4 QTLDLIBS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null) + LDLIBS = -L/usr/local/opt/readline/lib -L/usr/local/opt/qt5/lib -L/usr/local/lib -lreadline -lpthread -lm + CFLAGS = -std=c99 -I/usr/local/opt/qt5/include -I/usr/local/opt/readline/include -I. -I../include -I../common -I../zlib -I/opt/local/include -I../liblua -Wall $(COMMON_FLAGS) -g -O4 MOC = $(shell pkg-config --variable=moc_location QtCore) LUAPLATFORM = macosx else