From 5c6a127eb0cad10e45e2cad8cd245f85469994aa Mon Sep 17 00:00:00 2001 From: klueska Date: Fri, 16 May 2008 22:10:21 +0000 Subject: [PATCH] Allow the build directory to be customized --- support/make/avr/avr.rules | 2 +- support/make/msp/msp.rules | 2 +- support/make/null/null.rules | 2 +- support/make/pxa27x/pxa27x.rules | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/support/make/avr/avr.rules b/support/make/avr/avr.rules index f9230bb2..7d18ede8 100644 --- a/support/make/avr/avr.rules +++ b/support/make/avr/avr.rules @@ -41,7 +41,7 @@ AMADDR = ActiveMessageAddressC\$$addr # patch. This needs nesc 1.2.8 or newer (1.2.9 is recommended). #PFLAGS += -fnesc-separator=__ #AMADDR = ActiveMessageAddressC__addr -BUILDDIR = build/$(PLATFORM) +BUILDDIR ?= build/$(PLATFORM) MAIN_EXE = $(BUILDDIR)/main.exe MAIN_SREC = $(BUILDDIR)/main.srec MAIN_IHEX = $(BUILDDIR)/main.ihex diff --git a/support/make/msp/msp.rules b/support/make/msp/msp.rules index 6a434f87..f1d4e6ae 100644 --- a/support/make/msp/msp.rules +++ b/support/make/msp/msp.rules @@ -40,7 +40,7 @@ NCC = ncc LIBS = -lm AMADDR = ActiveMessageAddressC\$$addr -BUILDDIR = build/$(PLATFORM) +BUILDDIR ?= build/$(PLATFORM) MAIN_EXE = $(BUILDDIR)/main.exe MAIN_IHEX = $(BUILDDIR)/main.ihex INSTALL_IHEX = $(MAIN_IHEX).out$(if $(NODEID),-$(NODEID),) diff --git a/support/make/null/null.rules b/support/make/null/null.rules index 32513386..685ed657 100644 --- a/support/make/null/null.rules +++ b/support/make/null/null.rules @@ -15,7 +15,7 @@ OBJDUMP = objdump NCC = ncc LIBS = -lm -BUILDDIR = build/$(PLATFORM) +BUILDDIR ?= build/$(PLATFORM) MAIN_EXE = $(BUILDDIR)/main.exe MAIN_SREC = $(BUILDDIR)/main.srec MAIN_IHEX = $(BUILDDIR)/main.ihex diff --git a/support/make/pxa27x/pxa27x.rules b/support/make/pxa27x/pxa27x.rules index b57fcdb2..eea096cb 100644 --- a/support/make/pxa27x/pxa27x.rules +++ b/support/make/pxa27x/pxa27x.rules @@ -25,7 +25,7 @@ NCC = ncc LIBS = -lm AMADDR = ActiveMessageAddressC\$$addr -BUILDDIR = build/$(PLATFORM) +BUILDDIR ?= build/$(PLATFORM) MAIN_EXE = $(BUILDDIR)/main.exe MAIN_BIN = $(BUILDDIR)/main.bin INSTALL_BIN = $(MAIN_BIN).out$(if $(NODEID),-$(NODEID),) -- 2.39.2