Make searchengine compile for all targets; correct linking for archos.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6379 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2005-04-28 18:01:29 +00:00
parent a40a3152bc
commit 6752d1310d
3 changed files with 17 additions and 12 deletions

View file

@ -24,17 +24,8 @@ SOURCES = $(SRC)
OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
DIRS = .
ifndef SIMVER
ifneq (,$(findstring RECORDER,$(TARGET))) ## Archos recorder targets
OUTPUT = $(OUTDIR)/searchengine.rock
else ## iRiver target
LDS := ../plugin.lds
OUTPUT = $(OUTDIR)/searchengine.rock
endif
else ## simulators
OUTPUT = $(OUTDIR)/searchengine.rock
endif
LDS := ../plugin.lds
OUTPUT = $(OUTDIR)/searchengine.rock
all: $(OUTPUT)

View file

@ -23,12 +23,19 @@
#include <autoconf.h>
extern int w, h, y;
#ifdef HAVE_LCD_BITMAP
#define PUTS(str) do { \
rb->lcd_putsxy(1, y, str); \
rb->lcd_getstringsize(str, &w, &h); \
y += h + 1; \
} while (0); \
rb->lcd_update()
#else
#define PUTS(str) do { \
rb->lcd_puts(0, y, str); \
y = (y + 1) % 2; \
} while (0);
#endif
extern struct plugin_api* rb;