-LDFLAGS = -lusb -lreadline -lpthread -L/opt/local/lib
-CFLAGS = -I. -I/opt/local/include -Wall
+LDFLAGS = -ltermcap -lusb -lreadline -lpthread -L/opt/local/lib
+CFLAGS = -I. -I/opt/local/include -Wall -Wno-unused-function
CXXFLAGS = $(shell pkg-config --cflags QtCore QtGui 2>/dev/null) -Wall
QTLDFLAGS = $(shell pkg-config --libs QtCore QtGui 2>/dev/null)