summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-06-15 05:41:41 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-06-15 05:41:41 +0000
commit5b9c4c12974adedbdf8cafd151716eb82d6f26be (patch)
treee2ca62a89a59b9041f3e5822d54f83d82993f944 /apps/plugins/lib
parent56e6335e8f95ec1ea043b94e72e3e5a0b5a07db9 (diff)
downloadrockbox-5b9c4c12974adedbdf8cafd151716eb82d6f26be.zip
rockbox-5b9c4c12974adedbdf8cafd151716eb82d6f26be.tar.gz
rockbox-5b9c4c12974adedbdf8cafd151716eb82d6f26be.tar.bz2
rockbox-5b9c4c12974adedbdf8cafd151716eb82d6f26be.tar.xz
The plugin lib now works in the win32 simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4747 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/plugins/lib/Makefile b/apps/plugins/lib/Makefile
index f4d3cff..818140f 100644
--- a/apps/plugins/lib/Makefile
+++ b/apps/plugins/lib/Makefile
@@ -7,11 +7,19 @@
# $Id$
#
+ifdef SIMULATOR
+CC = gcc
+LD = ld
+AR = ar
+AS = as
+OC = objcopy
+else
CC = sh-elf-gcc
LD = sh-elf-ld
AR = sh-elf-ar
AS = sh-elf-as
OC = sh-elf-objcopy
+endif
FIRMWARE = ../../../firmware
@@ -21,8 +29,13 @@ FIRMWARE = ../../../firmware
INCLUDES=-I../.. -I.. -I. -I$(FIRMWARE)/include -I$(FIRMWARE)/export \
-I$(FIRMWARE)/common -I$(FIRMWARE)/drivers
+ifdef SIMULATOR
+CFLAGS = -W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes \
+$(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
+else
CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \
$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM}
+endif
ifndef MEM
# if MEM is not set, assume 2MB