-all: make-simavr make-tests make-examples
+all: $(MAKE)-simavr $(MAKE)-tests $(MAKE)-examples
-make-simavr:
- make -C simavr
+$(MAKE)-simavr:
+ $(MAKE) -C simavr
-make-tests: make-simavr
- make -C tests
+$(MAKE)-tests: $(MAKE)-simavr
+ $(MAKE) -C tests
-make-examples: make-simavr
- make -C examples
+$(MAKE)-examples: $(MAKE)-simavr
+ $(MAKE) -C examples
clean:
- make -C simavr clean
- make -C tests clean
- make -C examples clean
+ $(MAKE) -C simavr clean
+ $(MAKE) -C tests clean
+ $(MAKE) -C examples clean
RANLIB ?= ranlib
MKDIR ?= mkdir -p
INSTALL ?= install
+SHELL := ${shell which bash}
# simavr directory
SIMAVR ?= ${shell for p in . .. ../.. ../../..;do test -d $$p/simavr/sim && echo $$p/simavr; done}
endif
all:
- for bi in ${boards}; do make -C $$bi; done
+ for bi in ${boards}; do $(MAKE) -C $$bi; done
clean:
- for bi in ${boards}; do make -C $$bi clean; done
+ for bi in ${boards}; do $(MAKE) -C $$bi clean; done
firmware = ${firm_src:.c=.axf}
simavr = ../../
-SHELL = /bin/bash
-
IPATH = .
IPATH += ../parts
IPATH += ${simavr}/include
firmware = ${firm_src:.c=.axf}
simavr = ../..
-SHELL = /bin/bash
-
IPATH = .
IPATH += ${simavr}/examples/shared
IPATH += ${simavr}/examples/parts
firmware = ${firm_src:.c=.axf}
simavr = ../../
-SHELL = /bin/bash
-
IPATH = .
IPATH += ../parts
IPATH += ${simavr}/include
firmware = ${firm_src:.c=.hex}
simavr = ../../
-SHELL = /bin/bash
-
IPATH = .
IPATH += src
IPATH += ../parts
firmware = ${firm_src:.c=.hex}
simavr = ../../
-SHELL = /bin/bash
-
IPATH = .
IPATH += ../parts
IPATH += ${simavr}/include
firmware = ${firm_src:.c=.axf}
simavr = ../../
-SHELL = /bin/bash
-
IPATH = .
IPATH += ../parts
IPATH += ${simavr}/include
firmware = ${firm_src:.c=.hex}
simavr = ../../
-SHELL = /bin/bash
-
IPATH = .
IPATH += ../parts
IPATH += ../vhci/include
../vhci/lib/libusb_vhci.a:
@echo -n "BUILDIN $@ "
- @{ make -j -C ../vhci >/tmp/vhci.build.log 2>&1 || \
+ @{ $(MAKE) -j -C ../vhci >/tmp/vhci.build.log 2>&1 || \
{ echo "ERROR check /tmp/vhci.build.log"; exit 1; }; } && \
echo " Done"
vhci : ../vhci/lib/libusb_vhci.a
clean-vhci:
- make -C ../vhci clean
+ $(MAKE) -C ../vhci clean
${target}: vhci ${board}
@echo $@ done
module: vhci-hcd-$(HCD_V)/usb-vhci-hcd.ko
vhci-hcd-$(HCD_V)/usb-vhci-hcd.ko: vhci-hcd-$(HCD_V)
- make -C vhci-hcd-$(HCD_V) \
+ $(MAKE) -C vhci-hcd-$(HCD_V) \
KDIR=/lib/modules/${shell uname -r}/build \
CORE_INCLUDE_DIR=$(PWD)/vhci-hcd-$(HCD_V)/linux/2.6.32/drivers/usb/core
ln -snf vhci-hcd-$(HCD_V) linux && \
cd libusb_vhci-$(VHCI_V) && \
./configure --prefix=$(PWD) CPPFLAGS="-I$(PWD)" --enable-static --disable-shared && \
- make -j && make install
+ $(MAKE) -j && $(MAKE) install
libusb_vhci-$(VHCI_V).tar.bz2:
wget $(BASE_URL)/native%20libraries/libusb_vhci-$(VHCI_V).tar.bz2
SIMAVR_VERSION = 1.0a10
SIMAVR_REVISION = 1
-SHELL=/bin/bash
target = run_avr
# You should have received a copy of the GNU General Public License
# along with simavr. If not, see <http://www.gnu.org/licenses/>.
-
-SHELL = /bin/bash
-
sources := $(wildcard at*.c)
simavr = ..