diff options
author | PikalaxALT <PikalaxALT@users.noreply.github.com> | 2019-08-06 20:16:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 20:16:36 -0400 |
commit | ca8048c300f7df74e46ade85b1a7f3adbf34522a (patch) | |
tree | a76d164bd08fb82a9001e08ecc4d2c18890102c1 /Makefile | |
parent | 2a0517f0fdfe0ce8f2395f6572bf43190ecbe611 (diff) | |
parent | e28cf5406b25707338458a3f49125b38750c8627 (diff) |
Merge pull request #771 from aaaaaa123456789/master
Fix Makefiles to account for the $CC and $CXX environment variables
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -1,4 +1,17 @@ TOOLCHAIN := $(DEVKITARM) + +ifeq ($(CC),) +HOSTCC := gcc +else +HOSTCC := $(CC) +endif + +ifeq ($(CXX),) +HOSTCXX := g++ +else +HOSTCXX := $(CXX) +endif + ifneq (,$(wildcard $(TOOLCHAIN)/base_tools)) include $(TOOLCHAIN)/base_tools else @@ -136,7 +149,7 @@ all: rom tools: $(TOOLDIRS) $(TOOLDIRS): - @$(MAKE) -C $@ + @$(MAKE) -C $@ CC=$(HOSTCC) CXX=$(HOSTCXX) rom: $(ROM) |