From 40d99f434e50a1d3ad19750e663fead7cf08872e Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 24 Feb 2006 00:51:37 +0000 Subject: Made chessbox work on archos recorders and Ondios as an overlay. * Proper button handling for Ondio. * Some cleanup of the plugin SOURCES file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8822 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/chessbox/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'apps/plugins/chessbox/Makefile') diff --git a/apps/plugins/chessbox/Makefile b/apps/plugins/chessbox/Makefile index 05b6d8f6a7..7fe3e7115a 100644 --- a/apps/plugins/chessbox/Makefile +++ b/apps/plugins/chessbox/Makefile @@ -9,7 +9,7 @@ INCLUDES = -I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \ -I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(OUTDIR) -I$(BUILDDIR) -CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ +CFLAGS = $(GCCOPTS) -O2 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ -DTARGET_ID=$(TARGET_ID) -DMEM=${MEMORYSIZE} -DPLUGIN ifdef APPEXTRA @@ -24,8 +24,17 @@ SOURCES = $(SRC) OBJS := $(SRC:%.c=$(OBJDIR)/%.o) DIRS = . -LDS := ../plugin.lds -OUTPUT = $(OUTDIR)/chessbox.rock +ifndef SIMVER +ifneq (,$(strip $(foreach tgt,RECORDER ONDIO,$(findstring $(tgt),$(TARGET))))) + LDS := archos.lds + OUTPUT = $(OUTDIR)/chessbox.ovl +else ## iRiver target + LDS := ../plugin.lds + OUTPUT = $(OUTDIR)/chessbox.rock +endif +else ## simulators + OUTPUT = $(OUTDIR)/chessbox.rock +endif all: $(OUTPUT) -- cgit v1.2.3