mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
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
This commit is contained in:
parent
75b27eaacc
commit
54715e6d07
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(
|
||||||
grep -v '^\#' | grep -v "^$$" > $(2))
|
grep -v '^\#' | grep -v "^$$" > $(2))
|
||||||
|
|
||||||
asmdefs2file = $(shell $(CC) $(PPCFLAGS) $(3) -S -x c -o - -include config.h $(1) | \
|
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))))
|
c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue