Use libosso to prevent screen blanking
[neverball] / Makefile
index 3b88369..e594c89 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -91,7 +91,7 @@ ifeq ($(PLATFORM),darwin)
 endif
 
 ifeq ($(PLATFORM),maemo)
-    ALL_CPPFLAGS += -D__MAEMO__
+    ALL_CPPFLAGS += -D__MAEMO__ $(shell pkg-config --cflags libosso)
 endif
 
 ALL_CPPFLAGS += $(CPPFLAGS)
@@ -153,6 +153,10 @@ ifeq ($(PLATFORM),darwin)
     BASE_LIBS += -L/opt/local/lib
 endif
 
+ifeq ($(PLATFORM),maemo)
+    BASE_LIBS += $(shell pkg-config --libs libosso)
+endif
+
 ALL_LIBS := $(SDL_LIBS) $(BASE_LIBS) $(TILT_LIBS) $(INTL_LIBS) -lSDL_ttf \
     -lvorbisfile $(OGL_LIBS)
 
@@ -322,6 +326,7 @@ BALL_OBJS += share/tilt_loop.o
 else
 ifeq ($(PLATFORM),maemo)
 BALL_OBJS += share/tilt_maemo.o
+BALL_OBJS += share/maemo.o
 else
 BALL_OBJS += share/tilt_null.o
 endif