--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
 CFLAGS   += -Os -Wall
 CPPFLAGS += -DQCONTROL_VERSION=\"$(VERSION)\"
 LIBS     += -lpthread
-LIBS_STATIC += /usr/lib/liblua5.1.a -lpthread -lm -ldl
+LIBS_STATIC += /usr/lib/$$(dpkg-architecture -qDEB_HOST_MULTIARCH)/liblua5.1.a -lpthread -lm -ldl
 
 CFLAGS   += $(shell pkg-config --cflags lua5.1)
 LIBS     += $(shell pkg-config --libs lua5.1)
@@ -18,7 +18,7 @@
 OBJECTS=$(SOURCES:.c=.o)
 EXECUTABLE=qcontrol
 
-all:	$(SOURCES) $(EXECUTABLE)
+all:	$(SOURCES) $(EXECUTABLE) $(EXECUTABLE)-static
 
 $(EXECUTABLE): $(OBJECTS)
 	$(CC) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
