summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/Makefile
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/Makefile
parent56e6335e8f95ec1ea043b94e72e3e5a0b5a07db9 (diff)
downloadrockbox-5b9c4c12974adedbdf8cafd151716eb82d6f26be.tar.gz
rockbox-5b9c4c12974adedbdf8cafd151716eb82d6f26be.zip
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/Makefile')
-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 f4d3cff990..818140f276 100644
--- a/apps/plugins/lib/Makefile
+++ b/apps/plugins/lib/Makefile
@@ -7,11 +7,19 @@
7# $Id$ 7# $Id$
8# 8#
9 9
10ifdef SIMULATOR
11CC = gcc
12LD = ld
13AR = ar
14AS = as
15OC = objcopy
16else
10CC = sh-elf-gcc 17CC = sh-elf-gcc
11LD = sh-elf-ld 18LD = sh-elf-ld
12AR = sh-elf-ar 19AR = sh-elf-ar
13AS = sh-elf-as 20AS = sh-elf-as
14OC = sh-elf-objcopy 21OC = sh-elf-objcopy
22endif
15 23
16FIRMWARE = ../../../firmware 24FIRMWARE = ../../../firmware
17 25
@@ -21,8 +29,13 @@ FIRMWARE = ../../../firmware
21INCLUDES=-I../.. -I.. -I. -I$(FIRMWARE)/include -I$(FIRMWARE)/export \ 29INCLUDES=-I../.. -I.. -I. -I$(FIRMWARE)/include -I$(FIRMWARE)/export \
22 -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers 30 -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers
23 31
32ifdef SIMULATOR
33CFLAGS = -W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes \
34$(INCLUDES) $(TARGET) $(EXTRA_DEFINES)
35else
24CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ 36CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \
25$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} 37$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM}
38endif
26 39
27ifndef MEM 40ifndef MEM
28 # if MEM is not set, assume 2MB 41 # if MEM is not set, assume 2MB