diff options
| author | Cleverking2003 <30466983+Cleverking2003@users.noreply.github.com> | 2020-06-08 17:07:26 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-08 17:07:26 +0300 |
| commit | 5bd65c61af7865f213ae142aa369c41ed272d24c (patch) | |
| tree | 1fc64a437d7305403a2115ece9f044550ddc987f /Makefile | |
| parent | 59508fe7f84b67d7920a3cbc0df3cd6fe6cec71a (diff) | |
| parent | 7594546ee990c55b5427a7f5bfc62263dc53ae5f (diff) | |
Merge branch 'master' into master
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -3,10 +3,11 @@ include config.mk include filesystem.mk -HOSTCC := $(CC) -HOSTCXX := $(CXX) +HOSTCC = $(CC) +HOSTCXX = $(CXX) HOSTCFLAGS = $(CFLAGS) HOSTCXXFLAGS = $(CXXFLAGS) +HOST_VARS := CC=$(HOSTCC) CXX=$(HOSTCXX) CFLAGS='$(HOSTCFLAGS)' CXXFLAGS='$(HOSTCXXFLAGS)' .PHONY: clean tidy all default patch_mwasmarm @@ -219,7 +220,7 @@ infoshell = $(foreach line, $(shell $1 | sed "s/ /__SPACE__/g"), $(info $(subst # Build tools when building the rom # Disable dependency scanning for clean/tidy/tools ifeq (,$(filter-out all,$(MAKECMDGOALS))) -$(call infoshell, $(MAKE) tools patch_mwasmarm) +$(call infoshell, $(HOST_VARS) $(MAKE) tools patch_mwasmarm) else NODEP := 1 endif @@ -256,7 +257,7 @@ tidy: tools: $(TOOLDIRS) $(TOOLDIRS): - @$(MAKE) -C $@ + @$(HOST_VARS) $(MAKE) -C $@ $(MWASMARM): patch_mwasmarm @: |
