Index: client/makefile
===================================================================
--- client/makefile	(revision 3ea1839b0ef52feb64695e7636ed5521d667953f)
+++ client/makefile	(revision e7083058764b656f255af9a1c90c08001b215e09)
@@ -1,7 +1,14 @@
 CC = g++
-#LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_main-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0`
+FLAGS = -Wall -g
+
+UNAME_S := $(shell uname -s)
+
+LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_main-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0`
+
 # osx needs to link against some extra libraries
-LIB_FLAGS = `pkg-config --cflags --libs --static allegro-static-5.0 allegro_main-static-5.0 allegro_ttf-static-5.0 allegro_primitives-static-5.0` -framework AppKit -framework IOKit -framework OpenGL -framework AGL -framework OpenAL
-FLAGS = -Wall -g
+ifeq ($(UNAME_S),Darwin)
+	LIB_FLAGS += -framework AppKit -framework IOKit -framework OpenGL -framework AGL -framework OpenAL
+endif
+
 COMMON_PATH = ../common
 DEPENDENCIES = Common.o MessageContainer.o MessageProcessor.o Player.o WorldMap.o Projectile.o Game.o GameRender.o GameSummary.o chat.o GuiComponent.o Window.o Textbox.o Button.o RadioButtonList.o TextLabel.o
