diff options
Diffstat (limited to 'tools/functions.make')
-rw-r--r-- | tools/functions.make | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/functions.make b/tools/functions.make index 66354ebc18..ba444267c4 100644 --- a/tools/functions.make +++ b/tools/functions.make | |||
@@ -25,6 +25,9 @@ preprocess = $(shell $(CC) $(PPCFLAGS) $(2) -E -P -x c -include config.h $(1) | | |||
25 | preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \ | 25 | preprocess2file = $(shell $(CC) $(PPCFLAGS) $(3) -E -P -x c -include config.h $(1) | \ |
26 | grep -v '^\#' | grep -v "^$$" > $(2)) | 26 | grep -v '^\#' | grep -v "^$$" > $(2)) |
27 | 27 | ||
28 | asmdefs2file = $(shell $(CC) $(PPCFLAGS) $(3) -S -x c -o - -include config.h $(1) | \ | ||
29 | perl -ne 'if(/^AD_(\w+):$$/){$$var=$$1}else{/^\W\.word\W(.*)$$/ && $$var && print "\#define $$var $$1\n";$$var=0}' > $2) | ||
30 | |||
28 | c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1)))) | 31 | c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1)))) |
29 | 32 | ||
30 | # calculate dependencies for a list of source files $(2) and output them | 33 | # calculate dependencies for a list of source files $(2) and output them |
@@ -32,6 +35,7 @@ c2obj = $(addsuffix .o,$(basename $(subst $(ROOTDIR),$(BUILDDIR),$(1)))) | |||
32 | mkdepfile = $(shell \ | 35 | mkdepfile = $(shell \ |
33 | $(CC) $(PPCFLAGS) $(OTHER_INC) -MG -MM -include config.h $(2) | \ | 36 | $(CC) $(PPCFLAGS) $(OTHER_INC) -MG -MM -include config.h $(2) | \ |
34 | sed -e "s: lang.h: lang/lang_core.o:" \ | 37 | sed -e "s: lang.h: lang/lang_core.o:" \ |
38 | -e 's:_asmdefs.o:_asmdefs.h:' \ | ||
35 | -e "s: max_language_size.h: lang/max_language_size.h:" | \ | 39 | -e "s: max_language_size.h: lang/max_language_size.h:" | \ |
36 | $(TOOLSDIR)/addtargetdir.pl $(ROOTDIR) $(BUILDDIR) \ | 40 | $(TOOLSDIR)/addtargetdir.pl $(ROOTDIR) $(BUILDDIR) \ |
37 | >> $(1)_) | 41 | >> $(1)_) |