From 09c16421d8f8f412bab23d014c630ada8017f83f Mon Sep 17 00:00:00 2001 From: Ash Logan Date: Tue, 9 Apr 2019 20:44:54 +1000 Subject: [PATCH] samples: Add explicit rules for .elf intermediates --- samples/make/helloworld/Makefile | 5 +++-- samples/make/helloworld_cpp/Makefile | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/samples/make/helloworld/Makefile b/samples/make/helloworld/Makefile index 17aab4c9..05868daa 100644 --- a/samples/make/helloworld/Makefile +++ b/samples/make/helloworld/Makefile @@ -106,7 +106,7 @@ $(BUILD): #------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).rpx + @rm -fr $(BUILD) $(TARGET).rpx $(TARGET).elf #------------------------------------------------------------------------------- else @@ -119,7 +119,8 @@ DEPENDS := $(OFILES:.o=.d) #------------------------------------------------------------------------------- all : $(OUTPUT).rpx -$(OUTPUT).rpx : $(OFILES) +$(OUTPUT).rpx : $(OUTPUT).elf +$(OUTPUT).elf : $(OFILES) $(OFILES_SRC) : $(HFILES_BIN) diff --git a/samples/make/helloworld_cpp/Makefile b/samples/make/helloworld_cpp/Makefile index 17aab4c9..05868daa 100644 --- a/samples/make/helloworld_cpp/Makefile +++ b/samples/make/helloworld_cpp/Makefile @@ -106,7 +106,7 @@ $(BUILD): #------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).rpx + @rm -fr $(BUILD) $(TARGET).rpx $(TARGET).elf #------------------------------------------------------------------------------- else @@ -119,7 +119,8 @@ DEPENDS := $(OFILES:.o=.d) #------------------------------------------------------------------------------- all : $(OUTPUT).rpx -$(OUTPUT).rpx : $(OFILES) +$(OUTPUT).rpx : $(OUTPUT).elf +$(OUTPUT).elf : $(OFILES) $(OFILES_SRC) : $(HFILES_BIN)