-LDFLAGS = -ltermcap -lusb -lreadline -lpthread -L/opt/local/lib
-CFLAGS = -I. -I/opt/local/include -Wall
+#COMMON_FLAGS = -m32
+LDLIBS = -L/usr/local/lib -lusb -lreadline -lpthread
+LDFLAGS = $(COMMON_FLAGS)
+CFLAGS = -I. -I/opt/local/include -Wall -Wno-unused-function $(COMMON_FLAGS)