From e7bb8c04287ec8baf6f89dd4f169b00ccb7d7171 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Thu, 8 Jul 2004 13:12:16 +0000 Subject: [PATCH] Added the apps/recorder dir to the include path for recorder builds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4853 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/Makefile | 7 +++++++ apps/plugins/lib/Makefile | 7 +++++++ 2 files changed, 14 insertions(+) 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 FIRMWARE = ../../firmware +# Check if this is a kind of Recorder +ANYREC = $(findstring RECORDER, $(TARGET)) + INCLUDES = -I$(FIRMWARE)/include -I$(FIRMWARE)/export -I$(FIRMWARE)/common \ -I$(FIRMWARE)/drivers -I.. -Ilib CFLAGS = -O -W -Wall -m1 -nostdlib -ffreestanding -Wstrict-prototypes \ $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEM} -DPLUGIN +ifeq ($(ANYREC), RECORDER) +INCLUDES += -I../recorder +endif + LDS := plugin.lds LINKFILE := $(OBJDIR)/pluginlink.lds 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 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