summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/lib/Makefile b/apps/plugins/lib/Makefile
index dcab0ad..df527d8 100644
--- a/apps/plugins/lib/Makefile
+++ b/apps/plugins/lib/Makefile
@@ -23,12 +23,19 @@ endif
FIRMWARE = ../../../firmware
+# Check if this is a kind of Recorder
+ANYREC = $(findstring RECORDER, $(TARGET))
+
# ../.. for the plugin.h in the apps dir
# .. for stuff in the plugins dir
# . for stuff in the pluginlib dir
INCLUDES=-I../.. -I.. -I. -I$(FIRMWARE)/include -I$(FIRMWARE)/export \
-I$(FIRMWARE)/common -I$(FIRMWARE)/drivers
+ifeq ($(ANYREC), RECORDER)
+INCLUDES += -I../../recorder
+endif
+
ifdef SIMULATOR
CFLAGS = -W -Wall -O -nostdlib -ffreestanding -Wstrict-prototypes \
$(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DSIMULATOR