1
0
Fork 0
forked from len0rd/rockbox

The plugin lib now works in the win32 simulator

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4747 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2004-06-15 05:41:41 +00:00
parent 56e6335e8f
commit 5b9c4c1297
2 changed files with 19 additions and 2 deletions

View file

@ -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