diff options
| author | Revo <projectrevotpp@hotmail.com> | 2020-06-08 09:47:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-08 09:47:57 -0400 |
| commit | 7594546ee990c55b5427a7f5bfc62263dc53ae5f (patch) | |
| tree | c32b3d1ce1eef47c5388925c2a45ed435f99bc51 /Makefile | |
| parent | a9a1e08acac9dab227f0421be5f42128a9fd2537 (diff) | |
| parent | 43fc22bcacb17d515e7993acc0b61b7369d18d98 (diff) | |
Merge pull request #149 from mid-kid/master
Pass down host variables
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 @: |
