diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-15 05:41:41 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-06-15 05:41:41 +0000 |
commit | 5b9c4c12974adedbdf8cafd151716eb82d6f26be (patch) | |
tree | e2ca62a89a59b9041f3e5822d54f83d82993f944 /apps | |
parent | 56e6335e8f95ec1ea043b94e72e3e5a0b5a07db9 (diff) | |
download | rockbox-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')
-rw-r--r-- | apps/plugins/lib/Makefile | 13 |
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 | ||
10 | ifdef SIMULATOR | ||
11 | CC = gcc | ||
12 | LD = ld | ||
13 | AR = ar | ||
14 | AS = as | ||
15 | OC = objcopy | ||
16 | else | ||
10 | CC = sh-elf-gcc | 17 | CC = sh-elf-gcc |
11 | LD = sh-elf-ld | 18 | LD = sh-elf-ld |
12 | AR = sh-elf-ar | 19 | AR = sh-elf-ar |
13 | AS = sh-elf-as | 20 | AS = sh-elf-as |
14 | OC = sh-elf-objcopy | 21 | OC = sh-elf-objcopy |
22 | endif | ||
15 | 23 | ||
16 | FIRMWARE = ../../../firmware | 24 | FIRMWARE = ../../../firmware |
17 | 25 | ||
@@ -21,8 +29,13 @@ FIRMWARE = ../../../firmware | |||
21 | INCLUDES=-I../.. -I.. -I. -I$(FIRMWARE)/include -I$(FIRMWARE)/export \ | 29 | INCLUDES=-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 | ||
32 | ifdef SIMULATOR | ||
33 | CFLAGS = -W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes \ | ||
34 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) | ||
35 | else | ||
24 | CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ | 36 | CFLAGS = -W -Wall -O -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ |
25 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} | 37 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} |
38 | endif | ||
26 | 39 | ||
27 | ifndef MEM | 40 | ifndef MEM |
28 | # if MEM is not set, assume 2MB | 41 | # if MEM is not set, assume 2MB |