summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-04-01 13:32:16 +0000
committerDave Chapman <dave@dchapman.com>2006-04-01 13:32:16 +0000
commit3d253c6ccfa735a4831b1f825a4ed870d7ac8ccb (patch)
treef0a2f2554da51f16583baf15b4ddec18e6dee4c2 /tools
parent8c15138008b108a0ab3d90ef9f09c6d3fc59f740 (diff)
downloadrockbox-3d253c6ccfa735a4831b1f825a4ed870d7ac8ccb.tar.gz
rockbox-3d253c6ccfa735a4831b1f825a4ed870d7ac8ccb.tar.bz2
rockbox-3d253c6ccfa735a4831b1f825a4ed870d7ac8ccb.zip
Add apps/plugins/SUBDIRS file for specifying when to build each of the multi-file plugins instead of specifying it directly in the Makefile
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9397 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rw-r--r--tools/makesubdirs.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/makesubdirs.inc b/tools/makesubdirs.inc
new file mode 100644
index 0000000000..b233430f78
--- /dev/null
+++ b/tools/makesubdirs.inc
@@ -0,0 +1,14 @@
+# -*- Makefile -*-
+
+# return the list of extra sub-directories to build in the SUBDIRS variable
+
+# This uses the native 'gcc' compiler and not $(CC) since we use the -include
+# option and older gcc compiler doesn't have that. We use one such older
+# compiler for the win32 cross-compiles on Linux.
+#
+# The weird grep -v thing in here is due to Apple's stupidities and is needed
+# to make this do right when used on Mac OS X.
+
+SUBDIRS := $(shell cat SUBDIRS | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
+$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - | \
+grep -v "^\#")