From e10d3136c85c997ef03c42d23b86da68487415c7 Mon Sep 17 00:00:00 2001 From: Jonathan Bastien-Filiatrault Date: Mon, 15 Oct 2012 21:16:25 -0400 Subject: [PATCH] Create an explicit rule for building applet/Marlin.cpp. It would seem that the pattern matches do not work when the source file is created when make is running. The result of this is that it is necessary to run "make" twice to build the firmware. This adds an explicit rule without a pattern match for building applet/Marlin.cpp it corrects the make behaviour at the cost of adding a little redundancy in the Makefile. --- Marlin/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Marlin/Makefile b/Marlin/Makefile index 940bb168b..818b8b96f 100644 --- a/Marlin/Makefile +++ b/Marlin/Makefile @@ -277,6 +277,10 @@ applet/%.o: %.c Configuration.h Configuration_adv.h $(MAKEFILE) $(Pecho) " CC $@" $P $(CC) -MMD -c $(ALL_CFLAGS) $< -o $@ +applet/Marlin.o: applet/Marlin.cpp Configuration.h Configuration_adv.h $(MAKEFILE) + $(Pecho) " CXX $@" + $P $(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@ + applet/%.o: %.cpp Configuration.h Configuration_adv.h $(MAKEFILE) $(Pecho) " CXX $@" $P $(CXX) -MMD -c $(ALL_CXXFLAGS) $< -o $@