From: Nathael Pajani Date: Wed, 9 Sep 2015 20:11:58 +0000 (+0200) Subject: Modify all base apps Makefiles according to the new subdirectory scheme X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=b8c4c75b47a299dee28f2d095195cdeaf64ba935;p=soft%2Flpc122x%2Fexamples Modify all base apps Makefiles according to the new subdirectory scheme --- diff --git a/cc1101/Makefile b/cc1101/Makefile index 86e0d12..954c63f 100644 --- a/cc1101/Makefile +++ b/cc1101/Makefile @@ -1,11 +1,13 @@ -# Makefile for GPIO Demo Module apps +# Makefile for "base" apps +# This includes apps for the GPIO Demo Module and for the LPC1224-BO board. +MODULE = $(shell basename $(shell cd .. && pwd && cd -)) NAME = $(shell basename $(CURDIR)) .PHONY: $(NAME).bin $(NAME).bin: - @make -C ../.. --no-print-directory NAME=$(NAME) apps/$(NAME)/$@ + @make -C ../../.. --no-print-directory NAME=$(NAME) MODULE=$(MODULE) apps/$(MODULE)/$(NAME)/$@ clean mrproper: - @make -C ../.. --no-print-directory $@ + @make -C ../../.. --no-print-directory $@