summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/functions.make6
-rw-r--r--tools/makesrc.inc2
2 files changed, 4 insertions, 4 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 @@
15# The sed line is to prepend the directory to all source files 15# The sed line is to prepend the directory to all source files
16 16
17preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c -include config.h $(1) | \ 17preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c -include config.h $(1) | \
18 grep -v '^\#' | grep -v "^ *$$" | \ 18 grep -v '^#' | grep -v "^ *$$" | \
19 sed -e 's:^..*:$(dir $(1))&:') 19 sed -e 's:^..*:$(dir $(1))&:')
20 20
21preprocess2file = $(SILENT)$(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \ 21preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \
22 grep -v '^\#' | grep -v "^$$" > $(2) 22 grep -v '^#' | grep -v "^$$" > $(2))
23 23
24asmdefs2file = $(SILENT)$(CC) $(PPCFLAGS) $(3) -S -x c -o - -include config.h $(1) | \ 24asmdefs2file = $(SILENT)$(CC) $(PPCFLAGS) $(3) -S -x c -o - -include config.h $(1) | \
25 perl -ne 'if(/^_?AD_(\w+):$$/){$$var=$$1}else{/^\W\.(?:word|long)\W(.*)$$/ && $$var && print "\#define $$var $$1\n";$$var=0}' > $(2) 25 perl -ne 'if(/^_?AD_(\w+):$$/){$$var=$$1}else{/^\W\.(?:word|long)\W(.*)$$/ && $$var && print "\#define $$var $$1\n";$$var=0}' > $(2)
diff --git a/tools/makesrc.inc b/tools/makesrc.inc
index 846df8cb9e..55c1bbe98d 100644
--- a/tools/makesrc.inc
+++ b/tools/makesrc.inc
@@ -11,4 +11,4 @@
11 11
12SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ 12SRC := $(shell cat SOURCES | $(CC) -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
13$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - 2>/dev/null \ 13$(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - 2>/dev/null \
14| grep -v "^\#") 14| grep -v "^#")