summaryrefslogtreecommitdiffstats
path: root/tools/functions.make
diff options
context:
space:
mode:
Diffstat (limited to 'tools/functions.make')
-rw-r--r--tools/functions.make6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/functions.make b/tools/functions.make
index 518b945320..d9acbba2ba 100644
--- a/tools/functions.make
+++ b/tools/functions.make
@@ -15,11 +15,11 @@
# The sed line is to prepend the directory to all source files
preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c -include config.h $(1) | \
- grep -v '^\#' | grep -v "^ *$$" | \
+ grep -v '^#' | grep -v "^ *$$" | \
sed -e 's:^..*:$(dir $(1))&:')
-preprocess2file = $(SILENT)$(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \
- grep -v '^\#' | grep -v "^$$" > $(2)
+preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \
+ grep -v '^#' | grep -v "^$$" > $(2))
asmdefs2file = $(SILENT)$(CC) $(PPCFLAGS) $(3) -S -x c -o - -include config.h $(1) | \
perl -ne 'if(/^_?AD_(\w+):$$/){$$var=$$1}else{/^\W\.(?:word|long)\W(.*)$$/ && $$var && print "\#define $$var $$1\n";$$var=0}' > $(2)