Removed reference to CC65_HOME.

Now that we're pretty much independent from CC65_HOME
it doesn't make sense anymore to look for it in the Makefiles.

So rather dynamically check if there are "local" binaries in the
../bin directory. If there are "local" binaries use them - and
otherwise rely on "installed" binaries found in the path.
This commit is contained in:
Oliver Schmidt 2013-05-07 17:58:56 +02:00
parent 969c3b7488
commit 717121a7cf

View file

@ -181,19 +181,11 @@ endef
$(foreach drvtype,$(DRVTYPES),$(eval $(call DRVTYPE_template,$(drvtype)))) $(foreach drvtype,$(DRVTYPES),$(eval $(call DRVTYPE_template,$(drvtype))))
ifdef CC65_HOME AR = $(if $(wildcard ../bin/ar65*),../bin/ar65,ar65)
AR = $(CC65_HOME)/bin/ar65 CA = $(if $(wildcard ../bin/ca65*),../bin/ca65,ca65)
CA = $(CC65_HOME)/bin/ca65 CC = $(if $(wildcard ../bin/cc65*),../bin/cc65,cc65)
CC = $(CC65_HOME)/bin/cc65 CO = $(if $(wildcard ../bin/co65*),../bin/co65,co65)
CO = $(CC65_HOME)/bin/co65 LD = $(if $(wildcard ../bin/ld65*),../bin/ld65,ld65)
LD = $(CC65_HOME)/bin/ld65
else
AR = ../bin/ar65
CA = ../bin/ca65
CC = ../bin/cc65
CO = ../bin/co65
LD = ../bin/ld65
endif
../wrk/$(TARGET)/%.o: %.s | ../wrk/$(TARGET) ../wrk/$(TARGET)/%.o: %.s | ../wrk/$(TARGET)
@echo $(TARGET) - $< @echo $(TARGET) - $<