summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-10-27 14:39:00 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-10-27 14:39:00 +0000
commitdc9e201671f8d36da9b7b7fe87ff55e96295c71b (patch)
tree3e0397b3a8008f987c3249eb1a69bc6c07b1f72a /apps
parentd1dc0bd8241bcefc776f92e855a0e15e0b734a62 (diff)
downloadrockbox-dc9e201671f8d36da9b7b7fe87ff55e96295c71b.tar.gz
rockbox-dc9e201671f8d36da9b7b7fe87ff55e96295c71b.tar.bz2
rockbox-dc9e201671f8d36da9b7b7fe87ff55e96295c71b.zip
Support for a colon-separated path in APPEXTRA
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7663 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/Makefile4
-rw-r--r--apps/codecs/Makefile2
-rw-r--r--apps/codecs/Tremor/Makefile2
-rw-r--r--apps/codecs/lib/Makefile2
-rw-r--r--apps/codecs/libFLAC/Makefile2
-rw-r--r--apps/codecs/liba52/Makefile2
-rw-r--r--apps/codecs/libalac/Makefile2
-rw-r--r--apps/codecs/libffmpegFLAC/Makefile2
-rw-r--r--apps/codecs/libmad/Makefile2
-rw-r--r--apps/codecs/libmusepack/Makefile2
-rw-r--r--apps/codecs/libwavpack/Makefile2
-rw-r--r--apps/plugins/Makefile2
-rw-r--r--apps/plugins/databox/Makefile2
-rw-r--r--apps/plugins/lib/Makefile2
-rw-r--r--apps/plugins/rockboy/Makefile2
-rw-r--r--apps/plugins/searchengine/Makefile2
16 files changed, 17 insertions, 17 deletions
diff --git a/apps/Makefile b/apps/Makefile
index 04e0e87728..0c888a1812 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -30,8 +30,8 @@ DEFINES = $(DEBUG)
DIRS = .
ifdef APPEXTRA
- DIRS += $(APPEXTRA)
- INCLUDES += -I$(APPEXTRA)
+ DIRS += $(subst :, ,$(APPEXTRA))
+ INCLUDES += $(patsubst %,-I%,$(subst :, ,$(APPEXTRA)))
endif
CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(DEFINES) \
diff --git a/apps/codecs/Makefile b/apps/codecs/Makefile
index b29ed738b0..2c1cd93cc6 100644
--- a/apps/codecs/Makefile
+++ b/apps/codecs/Makefile
@@ -13,7 +13,7 @@ CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
-DMEM=${MEMORYSIZE} -DCODEC
ifdef APPEXTRA
- INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
ifdef SOFTWARECODECS
diff --git a/apps/codecs/Tremor/Makefile b/apps/codecs/Tremor/Makefile
index d721d1c200..4eadd24a10 100644
--- a/apps/codecs/Tremor/Makefile
+++ b/apps/codecs/Tremor/Makefile
@@ -11,7 +11,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
TREMOROPTS = -O2
diff --git a/apps/codecs/lib/Makefile b/apps/codecs/lib/Makefile
index 52eaf0e893..49be70a62d 100644
--- a/apps/codecs/lib/Makefile
+++ b/apps/codecs/lib/Makefile
@@ -14,7 +14,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
CFLAGS = $(GCCOPTS) \
diff --git a/apps/codecs/libFLAC/Makefile b/apps/codecs/libFLAC/Makefile
index 9da55ba0e2..4008479649 100644
--- a/apps/codecs/libFLAC/Makefile
+++ b/apps/codecs/libFLAC/Makefile
@@ -12,7 +12,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
NEWGCC=$(shell expr $(GCCNUM) ">" 303)
diff --git a/apps/codecs/liba52/Makefile b/apps/codecs/liba52/Makefile
index b31903f492..54542c096e 100644
--- a/apps/codecs/liba52/Makefile
+++ b/apps/codecs/liba52/Makefile
@@ -11,7 +11,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
A52OPTS =
diff --git a/apps/codecs/libalac/Makefile b/apps/codecs/libalac/Makefile
index b815db54b7..5bffb0669e 100644
--- a/apps/codecs/libalac/Makefile
+++ b/apps/codecs/libalac/Makefile
@@ -11,7 +11,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
ALACOPTS = -O3
diff --git a/apps/codecs/libffmpegFLAC/Makefile b/apps/codecs/libffmpegFLAC/Makefile
index 240ce28a00..410b95b91b 100644
--- a/apps/codecs/libffmpegFLAC/Makefile
+++ b/apps/codecs/libffmpegFLAC/Makefile
@@ -11,7 +11,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
FLACOPTS = -O2
diff --git a/apps/codecs/libmad/Makefile b/apps/codecs/libmad/Makefile
index a6f310195c..14c25c6b29 100644
--- a/apps/codecs/libmad/Makefile
+++ b/apps/codecs/libmad/Makefile
@@ -11,7 +11,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
# NOTE: FPM_ define has been moved to global.h
diff --git a/apps/codecs/libmusepack/Makefile b/apps/codecs/libmusepack/Makefile
index 79ebffe9b8..6912f74e75 100644
--- a/apps/codecs/libmusepack/Makefile
+++ b/apps/codecs/libmusepack/Makefile
@@ -11,7 +11,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
MUSEPACKOPTS = -O2
diff --git a/apps/codecs/libwavpack/Makefile b/apps/codecs/libwavpack/Makefile
index 75b9060534..6b9461bbb9 100644
--- a/apps/codecs/libwavpack/Makefile
+++ b/apps/codecs/libwavpack/Makefile
@@ -11,7 +11,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
CFLAGS = $(GCCOPTS) \
diff --git a/apps/plugins/Makefile b/apps/plugins/Makefile
index c7aa438b60..ec75876969 100644
--- a/apps/plugins/Makefile
+++ b/apps/plugins/Makefile
@@ -13,7 +13,7 @@ CFLAGS = $(GCCOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
-DMEM=${MEMORYSIZE} -DPLUGIN
ifdef APPEXTRA
- INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
ifdef SOFTWARECODECS
diff --git a/apps/plugins/databox/Makefile b/apps/plugins/databox/Makefile
index a8a6baa557..12b211d527 100644
--- a/apps/plugins/databox/Makefile
+++ b/apps/plugins/databox/Makefile
@@ -13,7 +13,7 @@ CFLAGS = $(GCCOPTS) -O3 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
-DMEM=${MEMORYSIZE} -DPLUGIN
ifdef APPEXTRA
- INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
LINKFILE := $(OBJDIR)/link.lds
diff --git a/apps/plugins/lib/Makefile b/apps/plugins/lib/Makefile
index 7eddccddc5..9b4b0b6286 100644
--- a/apps/plugins/lib/Makefile
+++ b/apps/plugins/lib/Makefile
@@ -14,7 +14,7 @@ INCLUDES=-I$(APPSDIR) -I.. -I. -I$(FIRMDIR)/include -I$(FIRMDIR)/export \
-I$(FIRMDIR)/common -I$(FIRMDIR)/drivers -I$(BUILDDIR)
ifdef APPEXTRA
-INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
CFLAGS = $(GCCOPTS) \
diff --git a/apps/plugins/rockboy/Makefile b/apps/plugins/rockboy/Makefile
index 1d32e0a84c..23c614210a 100644
--- a/apps/plugins/rockboy/Makefile
+++ b/apps/plugins/rockboy/Makefile
@@ -13,7 +13,7 @@ CFLAGS = $(GCCOPTS) -O3 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
-DMEM=${MEMORYSIZE} -DPLUGIN
ifdef APPEXTRA
- INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
LINKFILE := $(OBJDIR)/link.lds
diff --git a/apps/plugins/searchengine/Makefile b/apps/plugins/searchengine/Makefile
index 992beb0707..26e8517db2 100644
--- a/apps/plugins/searchengine/Makefile
+++ b/apps/plugins/searchengine/Makefile
@@ -13,7 +13,7 @@ CFLAGS = $(GCCOPTS) -O3 $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \
-DMEM=${MEMORYSIZE} -DPLUGIN
ifdef APPEXTRA
- INCLUDES += -I$(APPSDIR)/$(APPEXTRA)
+ INCLUDES += $(patsubst %,-I$(APPSDIR)/%,$(subst :, ,$(APPEXTRA)))
endif
LINKFILE := $(OBJDIR)/link.lds