summaryrefslogtreecommitdiffstats
path: root/tools/functions.make
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-07-14 11:39:21 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-07-14 11:39:21 +0000
commitfec4206f39fa40f05b919c13f1c5e2a487f8fd17 (patch)
treeb6887329b8966f1d474e49676c6aaa2c8b6f0ea8 /tools/functions.make
parent9d7a1e457f699bdfb7e2039ae4d0807136cceba1 (diff)
downloadrockbox-fec4206f39fa40f05b919c13f1c5e2a487f8fd17.tar.gz
rockbox-fec4206f39fa40f05b919c13f1c5e2a487f8fd17.tar.bz2
rockbox-fec4206f39fa40f05b919c13f1c5e2a487f8fd17.zip
Handle sh and m68k compiler's output correctly in asmdefs2file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21859 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/functions.make')
-rw-r--r--tools/functions.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/functions.make b/tools/functions.make
index ba444267c4..00d37c2373 100644
--- a/tools/functions.make
+++ b/tools/functions.make
@@ -26,7 +26,7 @@ preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(
grep -v '^\#' | grep -v "^$$" > $(2))
asmdefs2file = $(shell $(CC) $(PPCFLAGS) $(3) -S -x c -o - -include config.h $(1) | \
- perl -ne 'if(/^AD_(\w+):$$/){$$var=$$1}else{/^\W\.word\W(.*)$$/ && $$var && print "\#define $$var $$1\n";$$var=0}' > $2)
+ perl -ne 'if(/^_?AD_(\w+):$$/){$$var=$$1}elsif($$var){/^\W\.(?:word|long)\W(.*)$$/ && print "\#define $$var $$1\n";$$var=0}' > $2)
c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1))))