summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/Makefile9
-rw-r--r--apps/plugins/searchengine/Makefile13
-rw-r--r--apps/plugins/searchengine/searchengine.h7
3 files changed, 17 insertions, 12 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index 83617278d5..39bf3c011b 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -35,11 +35,18 @@ OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
35DEFS := $(SRC:%.c=$(OBJDIR)/%.def) 35DEFS := $(SRC:%.c=$(OBJDIR)/%.def)
36DIRS = . 36DIRS = .
37 37
38#######################################
39# Subdirs containing multi-file plugins
40
41#for all targets
42SUBDIRS += searchengine
43
38#for any recorder and iRiver model 44#for any recorder and iRiver model
39ifneq (,$(strip $(foreach tgt,RECORDER IRIVER,$(findstring $(tgt),$(TARGET))))) 45ifneq (,$(strip $(foreach tgt,RECORDER IRIVER,$(findstring $(tgt),$(TARGET)))))
40 SUBDIRS += rockboy searchengine 46 SUBDIRS += rockboy
41endif 47endif
42 48
49
43.PHONY: $(SUBDIRS) 50.PHONY: $(SUBDIRS)
44all: $(OBJDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE) 51all: $(OBJDIR)/libplugin.a $(ROCKS) $(SUBDIRS) $(DEPFILE)
45 52
diff --git a/apps/plugins/searchengine/Makefile b/apps/plugins/searchengine/Makefile
index 1ecd12803b..e6e980b7b0 100644
--- a/apps/plugins/searchengine/Makefile
+++ b/apps/plugins/searchengine/Makefile
@@ -24,17 +24,8 @@ SOURCES = $(SRC)
24OBJS := $(SRC:%.c=$(OBJDIR)/%.o) 24OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
25DIRS = . 25DIRS = .
26 26
27 27LDS := ../plugin.lds
28ifndef SIMVER 28OUTPUT = $(OUTDIR)/searchengine.rock
29ifneq (,$(findstring RECORDER,$(TARGET))) ## Archos recorder targets
30 OUTPUT = $(OUTDIR)/searchengine.rock
31else ## iRiver target
32 LDS := ../plugin.lds
33 OUTPUT = $(OUTDIR)/searchengine.rock
34endif
35else ## simulators
36 OUTPUT = $(OUTDIR)/searchengine.rock
37endif
38 29
39all: $(OUTPUT) 30all: $(OUTPUT)
40 31
diff --git a/apps/plugins/searchengine/searchengine.h b/apps/plugins/searchengine/searchengine.h
index 752e9ad0e4..d89c9c2a0e 100644
--- a/apps/plugins/searchengine/searchengine.h
+++ b/apps/plugins/searchengine/searchengine.h
@@ -23,12 +23,19 @@
23#include <autoconf.h> 23#include <autoconf.h>
24 24
25extern int w, h, y; 25extern int w, h, y;
26#ifdef HAVE_LCD_BITMAP
26#define PUTS(str) do { \ 27#define PUTS(str) do { \
27 rb->lcd_putsxy(1, y, str); \ 28 rb->lcd_putsxy(1, y, str); \
28 rb->lcd_getstringsize(str, &w, &h); \ 29 rb->lcd_getstringsize(str, &w, &h); \
29 y += h + 1; \ 30 y += h + 1; \
30} while (0); \ 31} while (0); \
31rb->lcd_update() 32rb->lcd_update()
33#else
34#define PUTS(str) do { \
35 rb->lcd_puts(0, y, str); \
36 y = (y + 1) % 2; \
37} while (0);
38#endif
32 39
33extern struct plugin_api* rb; 40extern struct plugin_api* rb;
34 41