Index: client/makefile
===================================================================
--- client/makefile	(revision b53c6b345affaea1c625ed8caa8faf8df17f5992)
+++ client/makefile	(revision 3f5616f3b017dce931cf98037b90da331235feb8)
@@ -1,2 +1,18 @@
-gameClient : ../common/Message.cpp Client/main.cpp
-	g++ -o $@ $?
+CC = g++
+LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0`
+FLAGS = $(LIB_FLAGS)
+COMMON_PATH = ../common
+DEPENDENCIES = Message.o chat.o GuiComponent.o Window.o Textbox.o Button.o
+
+gameClient : Client/main.cpp $(DEPENDENCIES)
+	$(CC) -o $@ $+ $(FLAGS)
+
+Message.o : $(COMMON_PATH)/Message.cpp
+	$(CC) -c -o $@ $? $(FLAGS)
+
+%.o : Client/%.cpp
+	$(CC) -c -o $@ $? $(FLAGS)
+
+clean:
+	rm *.o
+	rm gameClient
