diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/Makefile | 7 | ||||
-rw-r--r-- | apps/plugins/lib/Makefile | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile index 1c703f2573..d86cbf5263 100644 --- a/apps/plugins/Makefile +++ b/apps/plugins/Makefile | |||
@@ -12,11 +12,18 @@ OC = sh-elf-objcopy | |||
12 | 12 | ||
13 | FIRMWARE = ../../firmware | 13 | FIRMWARE = ../../firmware |
14 | 14 | ||
15 | # Check if this is a kind of Recorder | ||
16 | ANYREC = $(findstring RECORDER, $(TARGET)) | ||
17 | |||
15 | INCLUDES = -I$(FIRMWARE)/include -I$(FIRMWARE)/export -I$(FIRMWARE)/common \ | 18 | INCLUDES = -I$(FIRMWARE)/include -I$(FIRMWARE)/export -I$(FIRMWARE)/common \ |
16 | -I$(FIRMWARE)/drivers -I.. -Ilib | 19 | -I$(FIRMWARE)/drivers -I.. -Ilib |
17 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ | 20 | CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ |
18 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} -DPLUGIN | 21 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} -DPLUGIN |
19 | 22 | ||
23 | ifeq ($(ANYREC), RECORDER) | ||
24 | INCLUDES += -I../recorder | ||
25 | endif | ||
26 | |||
20 | LDS := plugin.lds | 27 | LDS := plugin.lds |
21 | LINKFILE := $(OBJDIR)/pluginlink.lds | 28 | LINKFILE := $(OBJDIR)/pluginlink.lds |
22 | 29 | ||
diff --git a/apps/plugins/lib/Makefile b/apps/plugins/lib/Makefile index dcab0ad749..df527d84f2 100644 --- a/apps/plugins/lib/Makefile +++ b/apps/plugins/lib/Makefile | |||
@@ -23,12 +23,19 @@ endif | |||
23 | 23 | ||
24 | FIRMWARE = ../../../firmware | 24 | FIRMWARE = ../../../firmware |
25 | 25 | ||
26 | # Check if this is a kind of Recorder | ||
27 | ANYREC = $(findstring RECORDER, $(TARGET)) | ||
28 | |||
26 | # ../.. for the plugin.h in the apps dir | 29 | # ../.. for the plugin.h in the apps dir |
27 | # .. for stuff in the plugins dir | 30 | # .. for stuff in the plugins dir |
28 | # . for stuff in the pluginlib dir | 31 | # . for stuff in the pluginlib dir |
29 | INCLUDES=-I../.. -I.. -I. -I$(FIRMWARE)/include -I$(FIRMWARE)/export \ | 32 | INCLUDES=-I../.. -I.. -I. -I$(FIRMWARE)/include -I$(FIRMWARE)/export \ |
30 | -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers | 33 | -I$(FIRMWARE)/common -I$(FIRMWARE)/drivers |
31 | 34 | ||
35 | ifeq ($(ANYREC), RECORDER) | ||
36 | INCLUDES += -I../../recorder | ||
37 | endif | ||
38 | |||
32 | ifdef SIMULATOR | 39 | ifdef SIMULATOR |
33 | CFLAGS = -W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes \ | 40 | CFLAGS = -W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes \ |
34 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DSIMULATOR | 41 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DSIMULATOR |