1
2
3
4
asmdefs2file = $(shell $(CC) \
        $(PPCFLAGS) $(3) -S -x c -include config.h $(1) | \
        perl -ne 'if (/^AD_(\w+):$/) {$var=$1} else { /^\W\.word\W(.*)$/ && $var && print "#define $var $1\n" ; $var="" }' \
        < $2)