diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-07-14 21:52:22 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-07-14 21:52:22 +0000 |
commit | 54715e6d074d352f3b231fb20d28491b365db88c (patch) | |
tree | 2f821c91e01b691d86c9bd3db3abf1d4cfb9864b /tools/functions.make | |
parent | 75b27eaacc07ea14abf937e89cee0f337f3001fc (diff) | |
download | rockbox-54715e6d074d352f3b231fb20d28491b365db88c.tar.gz rockbox-54715e6d074d352f3b231fb20d28491b365db88c.tar.bz2 rockbox-54715e6d074d352f3b231fb20d28491b365db88c.zip |
Small fix for asmdefs, make sure $var is cleared the line after it is read, so that value *must* follow label immediately.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21876 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/functions.make')
-rw-r--r-- | tools/functions.make | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/functions.make b/tools/functions.make index 00d37c2373..d08742a133 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}elsif($$var){/^\W\.(?:word|long)\W(.*)$$/ && print "\#define $$var $$1\n";$$var=0}' > $2) + perl -ne 'if(/^_?AD_(\w+):$$/){$$var=$$1}else{/^\W\.(?:word|long)\W(.*)$$/ && $$var && print "\#define $$var $$1\n";$$var=0}' > $2) c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1)))) |