From 5b9c4c12974adedbdf8cafd151716eb82d6f26be Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Tue, 15 Jun 2004 05:41:41 +0000 Subject: The plugin lib now works in the win32 simulator git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4747 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/plugins/lib/Makefile') 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 @@ # $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 -- cgit v1.2.3