summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-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