#------------------------------------------------------------------------------
# Provide a target system hint for the Makefile.
-# Recognized PLATFORM values: darwin, mingw.
+# Recognized PLATFORM values: darwin, mingw, maemo.
ifeq ($(shell uname), Darwin)
PLATFORM := darwin
endif
+ifdef _SBOX_DIR
+ PLATFORM := maemo
+endif
+
#------------------------------------------------------------------------------
# Paths (packagers might want to set DATADIR and LOCALEDIR)
ALL_CPPFLAGS += -I/opt/local/include
endif
+ifeq ($(PLATFORM),maemo)
+ ALL_CPPFLAGS += -D__MAEMO__
+endif
+
ALL_CPPFLAGS += $(CPPFLAGS)
#------------------------------------------------------------------------------
OGL_LIBS := -framework OpenGL
endif
+ifeq ($(PLATFORM),maemo)
+ OGL_LIBS := -lm -lSDL_gles -lEGL -lGLES_CM
+endif
+
BASE_LIBS := -ljpeg $(PNG_LIBS) $(FS_LIBS)
ifeq ($(PLATFORM),darwin)
share/base_config.o \
share/config.o \
share/video.o \
+ share/glext.o \
share/binary.o \
share/state.o \
share/audio.o \
share/base_config.o \
share/config.o \
share/video.o \
+ share/glext.o \
share/binary.o \
share/audio.o \
share/state.o \
ifeq ($(ENABLE_TILT),loop)
BALL_OBJS += share/tilt_loop.o
else
+ifeq ($(PLATFORM),maemo)
+BALL_OBJS += share/tilt_maemo.o
+else
BALL_OBJS += share/tilt_null.o
endif
endif
+endif
ifeq ($(PLATFORM),mingw)
BALL_OBJS += neverball.ico.o
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -MM -MP -MF $*.d -MT "$@" $<
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) -o $@ -c $<
-#%.sol : %.map $(MAPC_TARG)
-%.sol : %.map
+%.sol : %.map $(MAPC_TARG)
$(MAPC) $< data
%.desktop : %.desktop.in